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

Cleanup get balance #723

Merged
merged 4 commits into from
Jul 21, 2018
Merged

Conversation

garious
Copy link
Contributor

@garious garious commented Jul 20, 2018

poll_get_balance() predates the thin client's ability to confirm a transaction. It is frequently being misused after sending a transaction to wait for the transaction to be processed, rather than its intent, which is to do retries to guard against the case where a Request UDP packet is dropped. To confirm a transaction was processed, you should confirm its signature. This PR adds a new function poll_for_signature() and uses it to update a few of the spots where poll_get_balance() was being used to confirm a transaction.

@garious garious requested a review from aeyakovenko July 20, 2018 23:29
@aeyakovenko
Copy link
Member

Awesome!

@garious garious merged commit 23428b0 into solana-labs:master Jul 21, 2018
vkomenda pushed a commit to vkomenda/solana that referenced this pull request Aug 29, 2021
…-labs#723)

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.2 to 14.14.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
lijunwangs pushed a commit to lijunwangs/solana that referenced this pull request Apr 11, 2024
…#716) (solana-labs#723)

* default staked client in LocalCluster (solana-labs#716)

* default staked client in LocalCluster

* fix underflow

(cherry picked from commit e91a5e2)

# Conflicts:
#	local-cluster/tests/local_cluster.rs

* resolve conflicts

---------

Co-authored-by: Andrew Fitzgerald <apfitzge@gmail.com>
yihau pushed a commit that referenced this pull request Apr 11, 2024
* default staked client in LocalCluster (#716)

* default staked client in LocalCluster

* fix underflow

(cherry picked from commit e91a5e2)

# Conflicts:
#	local-cluster/tests/local_cluster.rs

* resolve conflicts

---------

Co-authored-by: Andrew Fitzgerald <apfitzge@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants