MarkPeerAsGood marks the given peer as good when it did something useful like contributed to consensus.
(peer Peer)
| 484 | // MarkPeerAsGood marks the given peer as good when it did something useful |
| 485 | // like contributed to consensus. |
| 486 | func (sw *Switch) MarkPeerAsGood(peer Peer) { |
| 487 | if sw.addrBook != nil { |
| 488 | sw.addrBook.MarkGood(peer.ID()) |
| 489 | } |
| 490 | } |
| 491 | |
| 492 | //--------------------------------------------------------------------- |
| 493 | // Dialing |
no test coverage detected