• zelig's avatar
    use own total difficulty to limit best peer · 391e89d7
    zelig authored
    - update blockpool td by subscribing to ChainHeadEvent
    - if ahead of best peer, demote it
    - addPeer now take own td as current td
    - removePeer now take own td as current td
    - add relevant tests to peers_test
    - eth: backend now calls blockpool with eth.eventMux and chainManager.Td
    391e89d7
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...