fee: 50 * COIN_VALUE, ..Default::default() }); let inscription_id = InscriptionId { txid, index: 0 }; context.mine_blocks_with_subsidy(1, 0); context.index.assert_inscription_location( inscription_id, SatPoint { outpoint: OutPoint::null(), offset: 0, }, Some(50 * COIN_VALUE), ); } } #[test] fn lost_rare_sats_are_tracked() { let context = Context::builder().arg("--index-sats").build(); context.mine_blocks_with_subsidy(1, 0); context.mine_blocks_with_subsidy(1, 0); assert_eq!( context .index .rare_sat_satpoint(Sat(50 * COIN_VALUE)) .unwrap() .unwrap(), SatPoint { outpoint: OutPoint::null(), offset: 0, }, ); assert_eq!( context .index .rare_sat_satpoint(Sat(100 * COIN_VALUE)) .unwrap() .unwrap(), SatPoint { outpoint: OutPoint::null(), offset: 50 * COIN_VALUE,