diff options
author | Wei-Ning Huang <w@cobinhood.com> | 2018-10-15 15:50:20 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-03-12 12:19:09 +0800 |
commit | e24fd2ae239abd401337ba32c57f20203119d0e9 (patch) | |
tree | b7bd370477706ee1e76bce1de01330641f2b389d | |
parent | 0f42ef1eb32ee96d1d97d6950ddf20242e0625f4 (diff) | |
download | dexon-e24fd2ae239abd401337ba32c57f20203119d0e9.tar dexon-e24fd2ae239abd401337ba32c57f20203119d0e9.tar.gz dexon-e24fd2ae239abd401337ba32c57f20203119d0e9.tar.bz2 dexon-e24fd2ae239abd401337ba32c57f20203119d0e9.tar.lz dexon-e24fd2ae239abd401337ba32c57f20203119d0e9.tar.xz dexon-e24fd2ae239abd401337ba32c57f20203119d0e9.tar.zst dexon-e24fd2ae239abd401337ba32c57f20203119d0e9.zip |
dex: run consensus core on Start
-rw-r--r-- | dex/backend.go | 1 | ||||
-rw-r--r-- | params/bootnodes.go | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/dex/backend.go b/dex/backend.go index bb524f171..c0cfe3d7f 100644 --- a/dex/backend.go +++ b/dex/backend.go @@ -199,6 +199,7 @@ func (s *Dexon) Start(srvr *p2p.Server) error { s.protocolManager.Start(srvr, maxPeers) s.protocolManager.addSelfMeta() + go s.consensus.Run() return nil } diff --git a/params/bootnodes.go b/params/bootnodes.go index b946dad00..31dda1fd4 100644 --- a/params/bootnodes.go +++ b/params/bootnodes.go @@ -19,13 +19,13 @@ package params // MainnetBootnodes are the enode URLs of the P2P bootstrap nodes running on // the main Ethereum network. var MainnetBootnodes = []string{ - "enode://0478aa13c91aa0db8e93b668313b7eb0532fbdb24f64772375373b14dbe326c238ad09ab4469f6442c9a9753f1275aeec2e531912c14a958ed1feb4ae7e227ef@35.201.201.33:30301", + "enode://0478aa13c91aa0db8e93b668313b7eb0532fbdb24f64772375373b14dbe326c238ad09ab4469f6442c9a9753f1275aeec2e531912c14a958ed1feb4ae7e227ef@10.17.1.70:30301", } // TestnetBootnodes are the enode URLs of the P2P bootstrap nodes running on the // Ropsten test network. var TestnetBootnodes = []string{ - "enode://0478aa13c91aa0db8e93b668313b7eb0532fbdb24f64772375373b14dbe326c238ad09ab4469f6442c9a9753f1275aeec2e531912c14a958ed1feb4ae7e227ef@35.201.201.33:30301", + "enode://0478aa13c91aa0db8e93b668313b7eb0532fbdb24f64772375373b14dbe326c238ad09ab4469f6442c9a9753f1275aeec2e531912c14a958ed1feb4ae7e227ef@10.17.1.70:30301", } // RinkebyBootnodes are the enode URLs of the P2P bootstrap nodes running on the |