Consume Bank in BankClient
This will allow BankClient to spin up a thread to use the Bank. It'll also ease the transaction from BankClient to ThinClient since it won't let you depend on Bank. Drawback, you the transition from Bank to BankClient will be harder because the Bank methods are inaccessible.
This commit is contained in:
@ -12,7 +12,7 @@ use solana_sdk::transaction::TransactionError;
|
||||
fn test_program_native_failure() {
|
||||
let (genesis_block, alice_keypair) = GenesisBlock::new(50);
|
||||
let bank = Bank::new(&genesis_block);
|
||||
let bank_client = BankClient::new(&bank);
|
||||
let bank_client = BankClient::new(bank);
|
||||
|
||||
let program = "solana_failure_program".as_bytes().to_vec();
|
||||
let program_id = load_program(&bank_client, &alice_keypair, &native_loader::id(), program);
|
||||
|
Reference in New Issue
Block a user