From b45d208b31be48ac54fcf8e244aab8188f29fa7b Mon Sep 17 00:00:00 2001 From: NikVolf Date: Thu, 17 Nov 2016 18:00:56 +0300 Subject: [PATCH] fix tabs & height --- db/src/storage.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/db/src/storage.rs b/db/src/storage.rs index 4a6fc78e..1b8e3de5 100644 --- a/db/src/storage.rs +++ b/db/src/storage.rs @@ -224,7 +224,7 @@ impl Reorganization { #[derive(Debug)] pub enum BlockInsertedChain { - Disconnected, + Disconnected, Main, Side, Rorganized(Reorganization), @@ -546,6 +546,7 @@ impl Storage { // finaly canonizing the top block we are reorganizing to try!(self.canonize_block(context, now_best + 1, hash)); reorganization.push_canonized(&hash); + reorganization.height = now_best + 1; Ok(Some(reorganization)) }