From c98ab6c6dcf7ee6bb1bdb90046fec8e9006939e9 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Wed, 7 Jul 2021 17:42:03 +0000 Subject: [PATCH] Record parent slot to reconstruct fork tree from influxdb (#18482) (#18488) (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 80855b9719..1e9fa91359 100644 --- a/runtime/src/bank.rs +++ b/runtime/src/bank.rs @@ -1229,7 +1229,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), ); let mut ancestors = Vec::with_capacity(1 + new.parents().len());