From 830ef2bae459b81f16546260a15d203f3c841dd5 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Fri, 12 Feb 2021 08:15:48 -0800 Subject: [PATCH] Log validator root slot --- stake-o-matic/src/main.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/stake-o-matic/src/main.rs b/stake-o-matic/src/main.rs index 7355e2043d..5e12eb15b0 100644 --- a/stake-o-matic/src/main.rs +++ b/stake-o-matic/src/main.rs @@ -714,8 +714,8 @@ fn main() -> Result<(), Box> { .unwrap(); debug!( - "\nidentity: {}\n - vote address: {}\n - baseline stake: {}\n - bonus stake: {}", - node_pubkey, vote_pubkey, baseline_stake_address, bonus_stake_address + "\nidentity: {}\n - vote address: {}\n - root slot: {}\n - baseline stake: {}\n - bonus stake: {}", + node_pubkey, vote_pubkey, root_slot, baseline_stake_address, bonus_stake_address ); // Transactions to create the baseline and bonus stake accounts @@ -839,6 +839,7 @@ fn main() -> Result<(), Box> { ("cluster", config.cluster, String), ("id", node_pubkey.to_string(), String), ("slot", epoch_info.absolute_slot, i64), + ("root-slot", *root_slot, i64), ("ok", true, bool) ); @@ -947,6 +948,7 @@ fn main() -> Result<(), Box> { ("cluster", config.cluster, String), ("id", node_pubkey.to_string(), String), ("slot", epoch_info.absolute_slot, i64), + ("root-slot", *root_slot, i64), ("ok", false, bool) ); } else { @@ -956,6 +958,7 @@ fn main() -> Result<(), Box> { ("cluster", config.cluster, String), ("id", node_pubkey.to_string(), String), ("slot", epoch_info.absolute_slot, i64), + ("root-slot", *root_slot, i64), ("ok", true, bool) ); }