Extend GetBlockHash RPC API to include the fee scehdule for using the returned blockhash (#4222)
This commit is contained in:
@ -50,11 +50,8 @@ pub fn create_builtin_transactions(
|
||||
.expect(&format!("{}:{}", line!(), file!()));
|
||||
|
||||
let instruction = create_invoke_instruction(rando0.pubkey(), program_id, &1u8);
|
||||
Transaction::new_signed_instructions(
|
||||
&[&rando0],
|
||||
vec![instruction],
|
||||
bank_client.get_recent_blockhash().unwrap(),
|
||||
)
|
||||
let (blockhash, _fee_calculator) = bank_client.get_recent_blockhash().unwrap();
|
||||
Transaction::new_signed_instructions(&[&rando0], vec![instruction], blockhash)
|
||||
})
|
||||
.collect()
|
||||
}
|
||||
@ -76,11 +73,8 @@ pub fn create_native_loader_transactions(
|
||||
.expect(&format!("{}:{}", line!(), file!()));
|
||||
|
||||
let instruction = create_invoke_instruction(rando0.pubkey(), program_id, &1u8);
|
||||
Transaction::new_signed_instructions(
|
||||
&[&rando0],
|
||||
vec![instruction],
|
||||
bank_client.get_recent_blockhash().unwrap(),
|
||||
)
|
||||
let (blockhash, _fee_calculator) = bank_client.get_recent_blockhash().unwrap();
|
||||
Transaction::new_signed_instructions(&[&rando0], vec![instruction], blockhash)
|
||||
})
|
||||
.collect()
|
||||
}
|
||||
|
Reference in New Issue
Block a user