Skip to content

Commit 484f417

Browse files
committed
docs: more info in tenure extend debug log
1 parent fdd78c5 commit 484f417

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

testnet/stacks-node/src/nakamoto_node/stackerdb_listener.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ use stacks::chainstate::stacks::events::StackerDBChunksEvent;
3232
use stacks::chainstate::stacks::Error as ChainstateError;
3333
use stacks::types::chainstate::StacksPublicKey;
3434
use stacks::types::PublicKey;
35+
use stacks::util::get_epoch_time_secs;
3536
use stacks::util::hash::{MerkleHashFunc, Sha512Trunc256Sum};
3637
use stacks::util::secp256k1::MessageSignature;
3738

@@ -530,7 +531,8 @@ impl StackerDBListenerComms {
530531
weight_sum += info.weight;
531532
if weight_sum >= weight_threshold {
532533
debug!("SignerCoordinator: 70% threshold reached for tenure extension timestamp";
533-
"timestamp" => info.timestamp,
534+
"tenure_extend_timestamp" => info.timestamp,
535+
"tenure_extend_in" => (info.timestamp - get_epoch_time_secs())
534536
);
535537
return info.timestamp;
536538
}

0 commit comments

Comments
 (0)