diff options
author | zelig <viktor.tron@gmail.com> | 2015-04-08 10:34:20 +0800 |
---|---|---|
committer | zelig <viktor.tron@gmail.com> | 2015-04-09 20:58:35 +0800 |
commit | f546b486bf444d9601cf97b934b2974a9b4d58f8 (patch) | |
tree | 17d53a2c6719d7c147854197fb25d3d2a01b5525 /blockpool/errors_test.go | |
parent | 42fb9652f56321d2752ffe7773806df11f3087b8 (diff) | |
download | dexon-f546b486bf444d9601cf97b934b2974a9b4d58f8.tar dexon-f546b486bf444d9601cf97b934b2974a9b4d58f8.tar.gz dexon-f546b486bf444d9601cf97b934b2974a9b4d58f8.tar.bz2 dexon-f546b486bf444d9601cf97b934b2974a9b4d58f8.tar.lz dexon-f546b486bf444d9601cf97b934b2974a9b4d58f8.tar.xz dexon-f546b486bf444d9601cf97b934b2974a9b4d58f8.tar.zst dexon-f546b486bf444d9601cf97b934b2974a9b4d58f8.zip |
introduce peers registry on nodes
- TestPeerPromotionByTdOnBlock renamed and skipped for now test should pass iff
if TD is updated based on an agreement
- senders register in AddBlock, flag records if they are coming from newblock
message (and therefore advertise their TD with the block) or block message
(TODO: latter are stored on the cache and updated by checkTD call;
protocol should also call AddBlock on newblock messages by non-best peers)
- remove TD update from optional TD field in addBlock: this is no longer part of
the eth protocol spec -> TODO: reflect in wiki
- only initialise peer map if at least two
Diffstat (limited to 'blockpool/errors_test.go')
0 files changed, 0 insertions, 0 deletions