}); let inscription_id = InscriptionId { txid, index: 0 }; context.mine_blocks(1); let (inscriptions, more) = context.index.get_inscriptions_paginated(100, 0).unwrap(); assert_eq!(inscriptions, &[inscription_id]); assert!(!more); } } #[test] fn unsynced_index_fails() { for context in Context::configurations() { let mut entropy = [0; 16]; rand::thread_rng().fill_bytes(&mut entropy); let mnemonic = Mnemonic::from_entropy(&entropy).unwrap(); crate::subcommand::wallet::initialize_wallet(&context.options, mnemonic.to_seed("")).unwrap(); context.rpc_server.mine_blocks(1); assert_regex_match!( context .index .get_unspent_outputs(Wallet::load(&context.options).unwrap()) .unwrap_err() .to_string(), r"output in Bitcoin Core wallet but not in ord index: [[:xdigit:]]{64}:\d+" ); } } #[test] fn unrecognized_even_field_inscriptions_are_cursed_and_unbound() { for context in Context::configurations() {