bitcoin::secp256k1::rand::{self, RngCore}, }; #[test] fn height_limit() { { let context = Context::builder().args(["--height-limit", "0"]).build(); context.mine_blocks(1); assert_eq!(context.index.block_height().unwrap(), None); assert_eq!(context.index.block_count().unwrap(), 0); } { let context = Context::builder().args(["--height-limit", "1"]).build(); context.mine_blocks(1); assert_eq!(context.index.block_height().unwrap(), Some(Height(0))); assert_eq!(context.index.block_count().unwrap(), 1); } { let context = Context::builder().args(["--height-limit", "2"]).build(); context.mine_blocks(2); assert_eq!(context.index.block_height().unwrap(), Some(Height(1))); assert_eq!(context.index.block_count().unwrap(), 2); } } #[test] fn inscriptions_below_first_inscription_height_are_skipped() { let inscription = inscription("text/plain;charset=utf-8", "hello"); let template = TransactionTemplate {

Inscription #44989708

ID

553648f1a0...9808fe1ci0

Detail

History

Action
Price
Marketplace
From
To
Time

INSCRIBED

-

-

-awh7

9 months

Sign Up for our Newsletter

And be the first to know about any updates!

OrdinalHub logo

All Rights Reserved OrdinalHub.com 2024

Support

Follow Us