-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
token-cli: --blockhash does nothing #3442
Comments
Thanks for writing this up, I definitely broke this 😓 We definitely need this, since even offline nonce transactions require a blockhash provided from the outside. Check out the example and writeup here: https://spl.solana.com/token#example-offline-signing-with-multisig Let's fix this the right way, by adding a nonblocking version of Alternatively, if you want to do it the DRY way, you can reuse the runtime from within the blocking RPC client in the blocking BlockhashQuery, and on the inside call the nonblocking But that seems like overkill. What do you think? |
cooool, im gonna look into copying the nonblocking client approach for a nonblocking this is another thing we are gonna have to pass in to |
Hm, might be worth implementing that no-op client to make this a bit simpler... I can get a draft PR up with it to show what I mean. |
should we rename these? all the fee calculator stuff is going away so the only difference in functionality now is:
none/fee/all referred to which of the hash/fee pair it fetched. maybe edit: by "rename" i mean in the nonblocking version, existing api will be unchanged |
update, i landed this: solana-labs/solana#27040 in the monorepo to provide a nonblocking blockhash client. its been backported to 1.11 so once we have a next release of that i can update versions and do this |
This comment was marked as abuse.
This comment was marked as abuse.
fixed by #3449 |
this is a regression introduced when the cli was converted to async.
BlockhashQuery
is a client wrapper that can be instantiated with a static blockhash which it always returns, a client that fetches a blockhash, or a static blockhash that it verifies before returning. it was removed for the nonblocking client and an unconditional call toget_latest_blockhash
i found this by accident when dumping a transaction, and im opening an issue instead of fixing it because:
@joncinque thoughts?
The text was updated successfully, but these errors were encountered: