program-test: Fix getting new blockhash post-warp (#20710)

This commit is contained in:
Jon Cinque
2021-10-15 14:58:09 +02:00
committed by GitHub
parent 4ec65b6531
commit 0419e6c22e
3 changed files with 39 additions and 7 deletions

View File

@@ -240,10 +240,7 @@ impl Banks for BanksServer {
let blockhash = &transaction.message.recent_blockhash;
let last_valid_block_height = self
.bank_forks
.read()
.unwrap()
.root_bank()
.bank(commitment)
.get_blockhash_last_valid_block_height(blockhash)
.unwrap();
let signature = transaction.signatures.get(0).cloned().unwrap_or_default();