Support transaction signing by heterogenous lists of keypairs (bp #8342) (#8362)

automerge
This commit is contained in:
mergify[bot]
2020-02-20 14:02:14 -08:00
committed by GitHub
parent b4eb81546e
commit 9dffc3abe4
16 changed files with 191 additions and 81 deletions

View File

@@ -384,7 +384,7 @@ impl Archiver {
);
let message =
Message::new_with_payer(vec![ix], Some(&archiver_keypair.pubkey()));
if let Err(e) = client.send_message(&[&archiver_keypair], message) {
if let Err(e) = client.send_message(&[archiver_keypair.as_ref()], message) {
error!("unable to redeem reward, tx failed: {:?}", e);
} else {
info!(
@@ -671,7 +671,7 @@ impl Archiver {
blockhash,
);
if let Err(err) = client.send_and_confirm_transaction(
&[&archiver_keypair, &storage_keypair],
&[archiver_keypair.as_ref(), storage_keypair.as_ref()],
&mut transaction,
10,
0,