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:
Greg Fitzgerald
2019-04-11 11:29:59 -07:00
parent 0aa05158c9
commit a28c3b0e9a
10 changed files with 48 additions and 47 deletions

View File

@ -284,7 +284,7 @@ mod tests {
// Fund to account to bypass AccountNotFound error
let bank = Bank::new(&genesis_block);
let bank_client = BankClient::new(&bank);
let bank_client = BankClient::new(bank);
bank_client
.transfer(50, &alice_keypair, &mallory_pubkey)
.unwrap();