diff options
author | zelig <viktor.tron@gmail.com> | 2015-03-21 04:52:29 +0800 |
---|---|---|
committer | zelig <viktor.tron@gmail.com> | 2015-03-22 10:02:24 +0800 |
commit | 95038fc62dc73da3f04bd37c0bdc29170eec0169 (patch) | |
tree | a15ca6c085ac20e201eef3f386521ab1df9eed14 /miner/miner.go | |
parent | 7f85608f30a2e34005c8d15566849229c758c2f1 (diff) | |
download | dexon-95038fc62dc73da3f04bd37c0bdc29170eec0169.tar dexon-95038fc62dc73da3f04bd37c0bdc29170eec0169.tar.gz dexon-95038fc62dc73da3f04bd37c0bdc29170eec0169.tar.bz2 dexon-95038fc62dc73da3f04bd37c0bdc29170eec0169.tar.lz dexon-95038fc62dc73da3f04bd37c0bdc29170eec0169.tar.xz dexon-95038fc62dc73da3f04bd37c0bdc29170eec0169.tar.zst dexon-95038fc62dc73da3f04bd37c0bdc29170eec0169.zip |
Idle too long error incorrectly triggered even when peer sending new blocks
- fix status chain map uses common.Hash as key
- add badPeers increment to IncorrectTD errors (forgotten)
- signal head info update to head section process even if parent hash is not in pool (inserted), so that idle timer can be set to nil
- suicideC -> peer.headInfoTimer
- quit -> peer.bestIdleTimer
- and they are properly set from within getBlockHashes and handleSection
Diffstat (limited to 'miner/miner.go')
0 files changed, 0 insertions, 0 deletions