From 21cac8ef18bf024ffd391dad45d706a885608fd5 Mon Sep 17 00:00:00 2001 From: Don Park Date: Wed, 9 Nov 2022 16:12:44 -0800 Subject: [PATCH] add missing epoch_transition to stack-node calls to event observer --- testnet/stacks-node/src/event_dispatcher.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/testnet/stacks-node/src/event_dispatcher.rs b/testnet/stacks-node/src/event_dispatcher.rs index a3af3f528..24fac732e 100644 --- a/testnet/stacks-node/src/event_dispatcher.rs +++ b/testnet/stacks-node/src/event_dispatcher.rs @@ -473,7 +473,8 @@ impl BlockEventDispatcher for EventDispatcher { parent_burn_block_timestamp: u64, anchored_consumed: &ExecutionCost, mblock_confirmed_consumed: &ExecutionCost, - epoch_id: StacksEpochId + epoch_id: StacksEpochId, + epoch_transition: bool, ) { self.process_chain_tip( block, @@ -489,6 +490,7 @@ impl BlockEventDispatcher for EventDispatcher { anchored_consumed, mblock_confirmed_consumed, epoch_id, + epoch_transition, ) } @@ -680,6 +682,7 @@ impl EventDispatcher { anchored_consumed: &ExecutionCost, mblock_confirmed_consumed: &ExecutionCost, epoch_id: StacksEpochId, + epoch_transition: bool, ) { let boot_receipts = if metadata.stacks_block_height == 1 { let mut boot_receipts_result = self @@ -747,6 +750,7 @@ impl EventDispatcher { anchored_consumed, mblock_confirmed_consumed, epoch_id, + epoch_transition, ); } }