context.index.list(OutPoint::new(txid, 0)).unwrap().unwrap(), List::Unspent(vec![ (50 * COIN_VALUE, 100 * COIN_VALUE), (100 * COIN_VALUE, 150 * COIN_VALUE) ]), ); } #[test] fn list_fee_paying_transaction_range() { let context = Context::builder().arg("--index-sats").build(); context.mine_blocks(1); let fee_paying_tx = TransactionTemplate { inputs: &[(1, 0, 0, Default::default())], outputs: 2, fee: 10, ..Default::default() }; let txid = context.rpc_server.broadcast_tx(fee_paying_tx); let coinbase_txid = context.mine_blocks(1)[0].txdata[0].txid(); assert_eq!( context.index.list(OutPoint::new(txid, 0)).unwrap().unwrap(), List::Unspent(vec![(50 * COIN_VALUE, 7499999995)]), ); assert_eq!( context.index.list(OutPoint::new(txid, 1)).unwrap().unwrap(), List::Unspent(vec![(7499999995, 9999999990)]), ); assert_eq!( context .index .list(OutPoint::new(coinbase_txid, 0))
Inscription number 44,983,500
Genesis block 819,060
File type text
File size 1.01 KB
Creation date