From 62e6a70cead6f8d1f62ccdc4d9193d3829657941 Mon Sep 17 00:00:00 2001 From: Boyu Yang Date: Wed, 20 Mar 2024 07:43:55 +0800 Subject: [PATCH] test: add another test case of real main-chain reorg --- tests/data | 2 +- .../contracts/ckb_bitcoin_spv_type_lock/reorg.rs | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/tests/data b/tests/data index bf2f225..5e608d2 160000 --- a/tests/data +++ b/tests/data @@ -1 +1 @@ -Subproject commit bf2f2254286bfe069f92665f29c81748fb853b40 +Subproject commit 5e608d2e5b516bafd10beb5078cd94747e87157c diff --git a/tests/src/contracts/ckb_bitcoin_spv_type_lock/reorg.rs b/tests/src/contracts/ckb_bitcoin_spv_type_lock/reorg.rs index dddea82..9c903d7 100644 --- a/tests/src/contracts/ckb_bitcoin_spv_type_lock/reorg.rs +++ b/tests/src/contracts/ckb_bitcoin_spv_type_lock/reorg.rs @@ -27,6 +27,19 @@ fn normal_case_1() { test_normal(case); } +#[test] +fn normal_case_2() { + let case = NormalCase { + headers_path: "case-0822528_0830592", + start_height: 828576, + stale_height: 829613, + clients_count: 20, + stale_client_id: 1, + reorg_clients_count: 12, + }; + test_normal(case); +} + struct NormalCase<'a> { headers_path: &'a str, start_height: u32,