fixed one of tree route cases
This commit is contained in:
parent
e591738157
commit
c2a799064d
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user