Closed elliott-w closed 2 years ago
Actually, looks like it's failing for you within step 2.
Now that get_fee_for_message
depends on a valid blockhash, I think we do probably need to refresh it inside fn check_spl_token_balances
.
In the meantime, you may have luck batching distributions in smaller chunks.
This issue has been automatically locked since there has not been any activity in past 7 days after it was closed. Please open a new issue for related bugs.
Problem
When running
solana-tokens distribute-spl-tokens
, getting:I believe this is because the blockhash times out between
fn build_messages
fn check_spl_token_balances
fn send_messages
Proposed Solution
I don't have that much experience with rust/solana, so this could be completely wrong, but would it be possible - between steps 2 and 3 - to loop through all the messages and re-assign them the latest blockhash?