Function grin_wallet_impls::test_framework::award_block_to_wallet
source · pub fn award_block_to_wallet<'a, L, C, K>(
chain: &Chain,
txs: &[Transaction],
wallet: Arc<Mutex<Box<dyn WalletInst<'a, L, C, K> + 'a>>>,
keychain_mask: Option<&SecretKey>
) -> Result<(), Error>
Expand description
adds a reward output to a wallet, includes that reward in a block, mines the block and adds it to the chain, with option transactions included. Helpful for building up precise wallet balances for testing.