dcrd icon indicating copy to clipboard operation
dcrd copied to clipboard

multi: integrate ban manager.

Open dnldd opened this issue 4 years ago • 1 comments

This integrates the ban manager into lifecycle management for peers with regards to tracking, updating ban scores as well as banning peers.

dnldd avatar Dec 14 '21 00:12 dnldd

2021-12-13 23:47:05.194 [DBG] PEER: Received getinitstate (types [headblocks headblockvotes tspends]) from 127.0.0.1:50414 (inbound)
2021-12-13 23:47:05.194 [DBG] PEER: Sending headers (num 1, final hash 0e2cda36e9ffcce74456d173ce7c7bdcd43f3e3cd4289288b175cdd666157cb4, height 2) to 127.0.0.1:50414 (inbound)
2021-12-13 23:47:05.211 [DBG] PEER: Received sendheaders from 127.0.0.1:50414 (inbound)
2021-12-13 23:47:05.211 [DBG] PEER: Sending initstate (blockHashes 0, voteHashes 0, tspendHashes 0) to 127.0.0.1:50414 (inbound)
2021-12-13 23:47:05.211 [DBG] PEER: Received headers (num 1, final hash 0e2cda36e9ffcce74456d173ce7c7bdcd43f3e3cd4289288b175cdd666157cb4, height 2) from 127.0.0.1:50414 (inbound)
2021-12-13 23:47:05.211 [DBG] PEER: Received initstate (blockHashes 0, voteHashes 0, tspendHashes 0) from 127.0.0.1:50414 (inbound)
2021-12-13 23:47:07.212 [INF] BMGR: Banned peer 127.0.0.1 (inbound) for 10s
2021-12-13 23:47:07.217 [WRN] SYNC: No sync peer candidates available
2021-12-13 23:47:07.217 [DBG] SRVR: Removed peer 127.0.0.1:50414 (inbound)
2021-12-13 23:47:12.289 [DBG] PEER: Received version (agent /dcrwire:1.0.0/dcrd:1.7.0(pre)/, pver 8, block 2) from 127.0.0.1:50415 (inbound)
2021-12-13 23:47:12.306 [DBG] PEER: Negotiated protocol version 8 for peer 127.0.0.1:50415 (inbound)
2021-12-13 23:47:12.306 [DBG] CHAN: Added time sample of 0s (total: 200)
2021-12-13 23:47:12.307 [DBG] PEER: Sending version (agent /dcrwire:1.0.0/dcrd:1.7.0(pre)/, pver 8, block 2) to 127.0.0.1:50415 (inbound)
2021-12-13 23:47:12.307 [DBG] PEER: Connected to 127.0.0.1:50415
2021-12-13 23:47:12.307 [INF] BMGR: Peer 127.0.0.1 is banned for another 4.9095715s 
2021-12-13 23:47:17.314 [DBG] PEER: Received version (agent /dcrwire:1.0.0/dcrd:1.7.0(pre)/, pver 8, block 2) from 127.0.0.1:50417 (inbound)
2021-12-13 23:47:17.314 [DBG] PEER: Negotiated protocol version 8 for peer 127.0.0.1:50417 (inbound)
2021-12-13 23:47:17.314 [DBG] CHAN: Added time sample of 0s (total: 200)
2021-12-13 23:47:17.314 [DBG] PEER: Sending version (agent /dcrwire:1.0.0/dcrd:1.7.0(pre)/, pver 8, block 2) to 127.0.0.1:50417 (inbound)
2021-12-13 23:47:17.314 [DBG] PEER: Connected to 127.0.0.1:50417
2021-12-13 23:47:17.314 [INF] BMGR: Peer 127.0.0.1 is no longer banned
2021-12-13 23:47:17.314 [DBG] PEER: Sending verack to 127.0.0.1:50417 (inbound)
2021-12-13 23:47:17.314 [DBG] SRVR: New peer 127.0.0.1:50417 (inbound)
2021-12-13 23:47:17.314 [INF] SYNC: New valid peer 127.0.0.1:50417 (inbound) (/dcrwire:1.0.0/dcrd:1.7.0(pre)/)
2021-12-13 23:47:17.314 [DBG] PEER: Sending getheaders (locator 1adfece3b73a440b7d555a695b109b2fe10939d44a82c8ecb21dac9a6689a053, stop 0000000000000000000000000000000000000000000000000000000000000000) to 127.0.0.1:50417 (inbound)

dnldd avatar Dec 14 '21 00:12 dnldd