aboutsummaryrefslogtreecommitdiffstats
path: root/dex
diff options
context:
space:
mode:
authorMission Liao <mission.liao@dexon.org>2019-02-25 19:08:17 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 21:32:57 +0800
commit27d1254cd5459b69217b4b7877493a008e9dbe3e (patch)
tree125e8c41dd2c5a3fbde1d968d111c2f71dcec10e /dex
parent5832a21db625bfa98a3b7909bb6996dd1fd2e4d3 (diff)
downloaddexon-27d1254cd5459b69217b4b7877493a008e9dbe3e.tar
dexon-27d1254cd5459b69217b4b7877493a008e9dbe3e.tar.gz
dexon-27d1254cd5459b69217b4b7877493a008e9dbe3e.tar.bz2
dexon-27d1254cd5459b69217b4b7877493a008e9dbe3e.tar.lz
dexon-27d1254cd5459b69217b4b7877493a008e9dbe3e.tar.xz
dexon-27d1254cd5459b69217b4b7877493a008e9dbe3e.tar.zst
dexon-27d1254cd5459b69217b4b7877493a008e9dbe3e.zip
params: add Yilan network (#207)
* Add Yilan network * Fixup: remove dummy log
Diffstat (limited to 'dex')
-rw-r--r--dex/blockproposer.go1
-rw-r--r--dex/handler.go2
2 files changed, 1 insertions, 2 deletions
diff --git a/dex/blockproposer.go b/dex/blockproposer.go
index 21b8ddbde..9827e1ed0 100644
--- a/dex/blockproposer.go
+++ b/dex/blockproposer.go
@@ -54,7 +54,6 @@ func (b *blockProposer) Start() error {
var err error
var c *dexCore.Consensus
-
if b.dMoment.After(time.Now()) {
c = b.initConsensus()
} else {
diff --git a/dex/handler.go b/dex/handler.go
index f56c6f5dc..474852913 100644
--- a/dex/handler.go
+++ b/dex/handler.go
@@ -1248,7 +1248,7 @@ func (pm *ProtocolManager) peerSetLoop() {
// NodeInfo represents a short summary of the Ethereum sub-protocol metadata
// known about the host peer.
type NodeInfo struct {
- Network uint64 `json:"network"` // DEXON network ID (237=Mainnet, 238=Taiwan, 239=Taipei)
+ Network uint64 `json:"network"` // DEXON network ID (237=Mainnet, 238=Taiwan, 239=Taipei, 240=Yilan)
Number uint64 `json:"number"` // Total difficulty of the host's blockchain
Genesis common.Hash `json:"genesis"` // SHA3 hash of the host's genesis block
Config *params.ChainConfig `json:"config"` // Chain configuration for the fork rules