.unwrap() .unwrap(), List::Unspent(vec![(10000000000, 15000000000), (9999999990, 10000000000)]) ); } #[test] fn list_two_fee_paying_transaction_range() { let context = Context::builder().arg("--index-sats").build(); context.mine_blocks(2); let first_fee_paying_tx = TransactionTemplate { inputs: &[(1, 0, 0, Default::default())], fee: 10, ..Default::default() }; let second_fee_paying_tx = TransactionTemplate { inputs: &[(2, 0, 0, Default::default())], fee: 10, ..Default::default() }; context.rpc_server.broadcast_tx(first_fee_paying_tx); context.rpc_server.broadcast_tx(second_fee_paying_tx); let coinbase_txid = context.mine_blocks(1)[0].txdata[0].txid(); assert_eq!( context .index .list(OutPoint::new(coinbase_txid, 0)) .unwrap() .unwrap(), List::Unspent(vec![ (15000000000, 20000000000), (9999999990, 10000000000), (14999999990, 15000000000)