Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: improve faucet reliability #1974

Merged
merged 51 commits into from
Jan 13, 2022
Merged

Conversation

lumtis
Copy link
Contributor

@lumtis lumtis commented Jan 6, 2022

  • batch all coin transfers into one transaction
  • avoid concurrent transfer
  • add integration tests for faucet
  • fix TotalTransferredAmount that was returning 0 with coins with multiple denoms
  • wait transfer to be mined for faucet to complete

ilgooz and others added 12 commits December 17, 2021 16:33
Copy link
Member

@ilgooz ilgooz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking a lead on this. 🙌

The base branch had some changes, can we rebase it again?

@lumtis lumtis requested a review from Pantani as a code owner January 7, 2022 10:06
@lumtis
Copy link
Contributor Author

lumtis commented Jan 7, 2022

Open for reviews :)
Don't be surprised with the commits, I messed up a bit with git

@lumtis lumtis requested a review from ilgooz January 10, 2022 12:42
Copy link
Member

@ilgooz ilgooz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a few more feedbacks 👍

@lumtis lumtis requested a review from ilgooz January 11, 2022 17:18
Copy link
Member

@ilgooz ilgooz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the API has changed can you please update the /openapi/openapi.yml.tmpl spec as well? After updating, sending tokens from the Swagger UI needs to work OK.

@lumtis
Copy link
Contributor Author

lumtis commented Jan 12, 2022

Since the API has changed can you please update the /openapi/openapi.yml.tmpl spec as well? After updating, sending tokens from the Swagger UI needs to work OK.

Good point. I also removed Coins from the response since it doesn't add value. Either all coins or not are successful sent

@lumtis
Copy link
Contributor Author

lumtis commented Jan 12, 2022

Small update: added a check for the tx successful completion 08190a4

@lumtis lumtis requested a review from ilgooz January 12, 2022 16:39
@ilgooz ilgooz merged commit b81c51b into release/v0.19.2 Jan 13, 2022
@ilgooz ilgooz deleted the fix/faucet-account-sequence-2 branch January 13, 2022 11:36
Jchicode pushed a commit to Jchicode/cli that referenced this pull request Aug 9, 2023
* feat(changelog): reset `Unreleased` section (ignite#1946)

* fix(docs): change lazy ledger to celestia (ignite#1952)

* (docs): fix typo in hello.md (ignite#1951)

Co-authored-by: Danilo Pantani <danpantani@gmail.com>

* Minor grammar fix (ignite#1950)

Grammar fix at line 7.

Co-authored-by: Danilo Pantani <danpantani@gmail.com>

* Minor grammar fix (ignite#1949)

Grammar fix at line 55.

Co-authored-by: Danilo Pantani <danpantani@gmail.com>

* docs: add v0.19 to the readme (ignite#1956)

* Single transfer

* initialize faucet tests

* transfer mutex

* batch request test

* Fix total transfer

* Add wait tx

* lint

* use http client

* move test

* Refacto faucet served

* use cosmosclient

* remove coins

* Single transfer

* initialize faucet tests

* transfer mutex

* batch request test

* Fix total transfer

* Add wait tx

* lint

* use http client

* move test

* Refacto faucet served

* use cosmosclient

* remove coins

* Update integration/faucet/faucet_test.go

Co-authored-by: İlker G. Öztürk <ilkergoktugozturk@gmail.com>

* Update integration/faucet/faucet_test.go

Co-authored-by: İlker G. Öztürk <ilkergoktugozturk@gmail.com>

* remove must

* Revert "feat(changelog): reset `Unreleased` section (ignite#1946)"

This reverts commit 3aa7d47.

* Revert "fix(docs): change lazy ledger to celestia (ignite#1952)"

This reverts commit e826818.

* Revert "(docs): fix typo in hello.md (ignite#1951)"

This reverts commit 78e098a.

* Revert "Minor grammar fix (ignite#1950)"

This reverts commit 3577095.

* Revert "Minor grammar fix (ignite#1949)"

This reverts commit 56a27d0.

* Revert "docs: add v0.19 to the readme (ignite#1956)"

This reverts commit 9176081.

* suggestion

* update openapi

* add tx code check

* update test

* lint

* Ensure JSON encoding on tx parsing

Co-authored-by: İlker G. Öztürk <ilkergoktugozturk@gmail.com>
Co-authored-by: 0xkrane <89357497+0xkrane@users.noreply.github.com>
Co-authored-by: Danilo Pantani <danpantani@gmail.com>
Co-authored-by: sgmoore <git-sgmoore@users.noreply.github.com>
Co-authored-by: Denis Fadeev <denis@fadeev.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants