fixed one of tree route cases

This commit is contained in:
debris 2015-12-18 11:34:55 +01:00
parent e591738157
commit c2a799064d
1 changed files with 1 additions and 1 deletions

View File

@ -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();