mirror of
https://github.com/alexgo-io/stacks-subnets.git
synced 2026-04-29 12:15:25 +08:00
test_mempool_mining_heuristics working
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
failures:
|
||||
chainstate::stacks::miner::test::test_build_anchored_blocks_skip_too_expensive
|
||||
chainstate::stacks::miner::test::test_build_anchored_blocks_skip_too_expensive -- passing
|
||||
chainstate::stacks::miner::test::test_mempool_mining_heuristics
|
||||
clarity_vm::clarity::tests::test_block_limit -- passing
|
||||
// net::neighbors::test::test_step_walk_2_neighbors_plain
|
||||
|
||||
@@ -2097,7 +2097,9 @@ impl SortitionDB {
|
||||
first_burn_header_hash: first_burn_hash.clone(),
|
||||
};
|
||||
|
||||
warn!("create_flag {}", create_flag);
|
||||
if create_flag {
|
||||
warn!("create_flag {}", create_flag);
|
||||
// instantiate!
|
||||
db.instantiate(
|
||||
first_block_height,
|
||||
@@ -2106,6 +2108,7 @@ impl SortitionDB {
|
||||
epochs,
|
||||
)?;
|
||||
} else {
|
||||
warn!("create_flag {}", create_flag);
|
||||
// validate -- must contain the given first block and first block hash
|
||||
let snapshot = SortitionDB::get_first_block_snapshot(db.conn())?;
|
||||
if !snapshot.is_initial()
|
||||
|
||||
@@ -9146,7 +9146,18 @@ pub mod test {
|
||||
0,
|
||||
&BurnchainHeaderHash([1; 32]),
|
||||
1,
|
||||
&StacksEpoch::unit_test_pre_2_05(0),
|
||||
&[StacksEpoch {
|
||||
epoch_id: StacksEpochId::Epoch20,
|
||||
start_height: 0,
|
||||
end_height: i64::MAX as u64,
|
||||
block_limit: ExecutionCost {
|
||||
write_length: 15_000_000, // roughly 15 mb
|
||||
write_count: 500,
|
||||
read_length: 100_000_000,
|
||||
read_count: 7_750,
|
||||
runtime: 5_000_000_000,
|
||||
},
|
||||
}],
|
||||
true,
|
||||
)
|
||||
.unwrap();
|
||||
|
||||
Reference in New Issue
Block a user