diff options
author | Maran <maran.hidskes@gmail.com> | 2014-03-24 22:04:29 +0800 |
---|---|---|
committer | Maran <maran.hidskes@gmail.com> | 2014-03-24 22:04:29 +0800 |
commit | 6253d109389d49e47772597de24cd11874b91338 (patch) | |
tree | bfdee01385b3cd9814f1ac31ab13df01a58c2151 /peer.go | |
parent | ec6ec62dd4f3c4132c79b33fc20467ba98c16f10 (diff) | |
download | dexon-6253d109389d49e47772597de24cd11874b91338.tar dexon-6253d109389d49e47772597de24cd11874b91338.tar.gz dexon-6253d109389d49e47772597de24cd11874b91338.tar.bz2 dexon-6253d109389d49e47772597de24cd11874b91338.tar.lz dexon-6253d109389d49e47772597de24cd11874b91338.tar.xz dexon-6253d109389d49e47772597de24cd11874b91338.tar.zst dexon-6253d109389d49e47772597de24cd11874b91338.zip |
initial testcode for canonical chain
Diffstat (limited to 'peer.go')
-rw-r--r-- | peer.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -342,7 +342,7 @@ func (p *Peer) HandleInbound() { // We don't have this block, but we do have a block with the same prevHash, diversion time! if p.ethereum.StateManager().BlockChain().HasBlockWithPrevHash(block.PrevHash) { fmt.Printf("[PEER] Local and foreign chain have diverted after %x, we are going to get freaky with it!\n", block.PrevHash) - if p.ethereum.StateManager().BlockChain().FindCanonicalChain(msg, block.PrevHash) { + if p.ethereum.StateManager().BlockChain().FindCanonicalChainFromMsg(msg, block.PrevHash) { return } } else { |