#74,425,710text#74,425,709text#74,425,708text#74,425,707text#74,425,706text#74,425,705text#74,425,704text#74,425,703text#74,425,702text#74,425,701text#74,306,554text#74,306,553text#74,306,552text#74,306,551text#74,306,550text#74,306,549text#74,306,548text#74,306,547text#74,306,546text#74,306,545textInscription #73509639#73,509,639htmltransfer100.pizza#71,188,766brc-20Inscription #70017632#70,017,632htmlInscription #70017631#70,017,631htmlInscription #70017630#70,017,630html#69,933,413video#69,931,310videoInscription #65843404#65,843,404pngInscription #65668297#65,668,297svgInscription #65668296#65,668,296svgInscription #64999294#64,999,294svg#64,381,045mint750,000.gose#59,459,911brc-20transfer10,000.hubx#53,050,955brc-200#47,235,785text0#47,230,105texttransfer50.odos#45,101,306brc-20 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 { #45,003,184text test_server.mine_blocks(21); test_server.assert_response("/status", StatusCode::OK, "OK"); for _ in 0..15 { test_server.bitcoin_rpc_server.invalidate_tip(); } test_server.bitcoin_rpc_server.mine_blocks(21); test_server.assert_response_regex("/status", StatusCode::OK, "unrecoverable reorg detected.*"); } #[test] fn rare_with_sat_index() { TestServer::new_with_sat_index().assert_response( "/rare.txt", StatusCode::OK, "sat\tsatpoint 0\t4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b:0:0 ", ); } #[test] fn rare_without_sat_index() { TestServer::new().assert_response( "/rare.txt", StatusCode::OK, "sat\tsatpoint ", ); } #[test] fn show_rare_txt_in_header_with_sat_index() { TestServer::new_with_sat_index().assert_response_regex( "/", StatusCode::OK, ".* <a href=/clock title=clock>.*</a> <a href=/rare.txt title=rare>.*</a>.*", ); } #[test] fn rare_sat_location() { #44,985,697textdmt-mint.nat#44,540,499tapdmt-mint.nat#44,540,380tapdmt-mint.nat#44,540,332tapdmt-mint.nat#44,540,264tapdmt-mint.nat#44,540,132tapdmt-mint.nat#44,540,105tapdmt-mint.nat#44,540,032tapdmt-mint.nat#44,539,987tapdmt-mint.nat#44,539,977tapdmt-mint.nat#44,539,970tapdmt-mint.nat#44,537,814tapdmt-mint.nat#44,537,802tapdmt-mint.nat#44,537,801tapdmt-mint.nat#44,537,800tapdmt-mint.nat#44,537,796tapdmt-mint.nat#44,537,781tapdmt-mint.nat#44,537,758tapdmt-mint.nat#44,537,745tapdmt-mint.nat#44,537,742tapdmt-mint.nat#44,537,733tapInscription #43316702#43,316,702png