OSDN Git Service

Add p2p security module (#143)
authoryahtoo <yahtoo.ma@gmail.com>
Mon, 10 Jun 2019 02:41:36 +0000 (10:41 +0800)
committerPaladz <yzhu101@uottawa.ca>
Mon, 10 Jun 2019 02:41:36 +0000 (10:41 +0800)
commit807d99726f6a0610fa9c835e2aabd983801d3510
tree5c91f67df3f8f068ac966686a2b082820159ed9e
parentaa87732ffe2e2418d8f1ae37da388ecf73e59621
Add p2p security module (#143)

* tmp

* Add p2p security module

* Fix review bugs
19 files changed:
netsync/chainmgr/block_keeper.go
netsync/chainmgr/handle.go
netsync/chainmgr/tool_test.go
netsync/consensusmgr/block_fetcher.go
netsync/consensusmgr/block_fetcher_test.go
netsync/consensusmgr/handle.go
netsync/peers/peer.go
p2p/node_info.go
p2p/peer_set.go
p2p/peer_test.go
p2p/security/banscore.go [moved from p2p/trust/banscore.go with 99% similarity]
p2p/security/banscore_test.go [moved from p2p/trust/banscore_test.go with 99% similarity]
p2p/security/blacklist.go [new file with mode: 0644]
p2p/security/filter.go [new file with mode: 0644]
p2p/security/score.go [new file with mode: 0644]
p2p/security/security.go [new file with mode: 0644]
p2p/switch.go
p2p/switch_test.go
p2p/test_util.go