rpc_server.mine_blocks(1);
assert_eq!(rpc_server.descriptors().len(), 0);
create_wallet(&rpc_server);
let output = CommandBuilder::new("wallet inscribe --fee-rate 2.1 --batch batch.yaml --dry-run")
.write("inscription.txt", "Hello World")
.write(
"batch.yaml",
"mode: shared-output\ninscriptions:\n- file: inscription.txt\n",
)
.rpc_server(&rpc_server)
.run_and_deserialize_output::<Inscribe>();
rpc_server.mine_blocks(1);
assert!(rpc_server.mempool().is_empty());
let request = TestServer::spawn_with_args(&rpc_server, &[])
.request(format!("/content/{}", output.inscriptions[0].id));
assert_eq!(request.status(), 404);
}
#[test]
fn batch_in_same_output_but_different_satpoints() {
let rpc_server = test_bitcoincore_rpc::spawn();
rpc_server.mine_blocks(1);
create_wallet(&rpc_server);
let output = CommandBuilder::new("wallet inscribe --fee-rate 1 --batch batch.yaml")
.write("inscription.txt", "Hello World")
.write("tulip.png", [0; 555])
.write("meow.wav", [0; 2048])