inputs: &[( 2, 0, 0, inscription("text/plain;charset=utf-8", "hello").to_witness(), )], ..Default::default() }); let second_id = InscriptionId { txid, index: 0 }; let second_location = SatPoint { outpoint: OutPoint { txid, vout: 0 }, offset: 0, }; context.mine_blocks(1); context .index .assert_inscription_location(second_id, second_location, Some(100 * COIN_VALUE)); context.rpc_server.invalidate_tip(); context.mine_blocks(2); context .index .assert_inscription_location(first_id, first_location, Some(50 * COIN_VALUE)); assert!(!context.index.inscription_exists(second_id).unwrap()); } } #[test] fn recover_from_3_block_deep_and_consecutive_reorg() { for mut context in Context::configurations() { context.index.set_durability(redb::Durability::Immediate); context.mine_blocks(1); let txid = context.rpc_server.broadcast_tx(TransactionTemplate {