From 50393adadd4345ff80de9fe5e1177a1e895f2975 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Thu, 8 Jul 2021 02:53:08 +0000 Subject: [PATCH] Record parent slot to reconstruct fork tree from influxdb (#18482) (#18487) (cherry picked from commit d69f469b83322035a12b527bf934a032d5120758) Co-authored-by: Ryo Onodera --- runtime/src/bank.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/runtime/src/bank.rs b/runtime/src/bank.rs index 93e2469809..ad5303a3a3 100644 --- a/runtime/src/bank.rs +++ b/runtime/src/bank.rs @@ -1116,7 +1116,8 @@ impl Bank { datapoint_info!( "bank-new_from_parent-heights", ("slot_height", slot, i64), - ("block_height", new.block_height, i64) + ("block_height", new.block_height, i64), + ("parent_slot_height", parent.slot(), i64), ); new.ancestors.insert(new.slot(), 0);