• zelig's avatar
    introduce peers registry on nodes · f546b486
    zelig authored
    - 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
    f546b486
Name
Last commit
Last update
..
test Loading commit data...
blockpool.go Loading commit data...
blockpool_test.go Loading commit data...
blockpool_util_test.go Loading commit data...
config_test.go Loading commit data...
errors_test.go Loading commit data...
peers.go Loading commit data...
peers_test.go Loading commit data...
section.go Loading commit data...
status.go Loading commit data...
status_test.go Loading commit data...