From 015bc034a5fe556471d50f2b11d074715a4b56f4 Mon Sep 17 00:00:00 2001 From: "Jeff Washington (jwash)" <75863576+jeffwashington@users.noreply.github.com> Date: Mon, 19 Apr 2021 08:55:01 -0500 Subject: [PATCH] improve failing assert (#16581) --- runtime/src/accounts_index.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/runtime/src/accounts_index.rs b/runtime/src/accounts_index.rs index 65cdafd9b2..d78fa87b81 100644 --- a/runtime/src/accounts_index.rs +++ b/runtime/src/accounts_index.rs @@ -209,7 +209,12 @@ impl RollingBitField { self.count == 0 || (self.max.saturating_sub(key) <= self.max_width as u64 && key.saturating_sub(self.min) < self.max_width as u64), - "out of range" + "out of range: count: {}, min: {}, max: {}, width: {}, key: {}", + self.count, + self.min, + self.max, + self.max_width, + key ); }