OSDN Git Service

Add subnet having the same network ID isolation function (#57)
authoryahtoo <yahtoo.ma@gmail.com>
Tue, 14 May 2019 09:19:14 +0000 (17:19 +0800)
committerPaladz <yzhu101@uottawa.ca>
Tue, 14 May 2019 09:19:14 +0000 (17:19 +0800)
commit2ffd5b239ec0ed7c96f789362d8b986834ae227f
treeef2ee21a56403f78720016e1d2980de3cd5752b8
parentcb120a52d80aaf7c52f101644b5aa2f521588382
Add subnet having the same network ID isolation function (#57)

* Network isolation main chain and side chain

* Add test cases

* Del unused code

* Uniform variable name

* Opz log

* Generate unique network ID using genesisBlock hash

* Change Bech32HRPSegwit to 'vp'

* Change netID generate method
12 files changed:
cmd/bytomd/commands/init.go
config/genesis.go
config/toml.go
consensus/general.go
netsync/handle.go
p2p/discover/dht/net.go
p2p/discover/dht/ntp.go [deleted file]
p2p/discover/dht/udp.go
p2p/discover/dht/udp_test.go [new file with mode: 0644]
p2p/node_info.go
p2p/switch.go
p2p/test_util.go