From c2a799064d9ef5c460b3910534bd44dcc0d4efc0 Mon Sep 17 00:00:00 2001 From: debris Date: Fri, 18 Dec 2015 11:34:55 +0100 Subject: [PATCH] fixed one of tree route cases --- src/blockchain.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blockchain.rs b/src/blockchain.rs index 2c1594c9a..7669cbdbb 100644 --- a/src/blockchain.rs +++ b/src/blockchain.rs @@ -219,7 +219,7 @@ impl BlockChain { assert_eq!(from_details.number, to_details.number); // move to shared parent - while from_details.parent != to_details.parent { + while current_from != current_to { from_branch.push(current_from); current_from = from_details.parent.clone(); from_details = self.block_details(&from_details.parent).unwrap();