diff options
author | Wei-Ning Huang <w@dexon.org> | 2019-03-17 10:43:10 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 21:32:58 +0800 |
commit | 64f26af59d24881bcdd49bbdd291c1a21a12b82d (patch) | |
tree | 4968dc2006c6cabd118fc200b85bd05dc180efd0 /dex/backend.go | |
parent | 2818ad97f5b302f76e3296195bf8daae1868c435 (diff) | |
download | go-tangerine-64f26af59d24881bcdd49bbdd291c1a21a12b82d.tar go-tangerine-64f26af59d24881bcdd49bbdd291c1a21a12b82d.tar.gz go-tangerine-64f26af59d24881bcdd49bbdd291c1a21a12b82d.tar.bz2 go-tangerine-64f26af59d24881bcdd49bbdd291c1a21a12b82d.tar.lz go-tangerine-64f26af59d24881bcdd49bbdd291c1a21a12b82d.tar.xz go-tangerine-64f26af59d24881bcdd49bbdd291c1a21a12b82d.tar.zst go-tangerine-64f26af59d24881bcdd49bbdd291c1a21a12b82d.zip |
core: fill in genesis timstamp and remove dMoment from protocol handshake (#263)
Fill in dmoment as genesis block timestamp. This allow us to remove
dMoment check from protocol handshake since genesis block hash itself
will protect us against different dMoment.
Diffstat (limited to 'dex/backend.go')
-rw-r--r-- | dex/backend.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dex/backend.go b/dex/backend.go index 6ee1a5fa1..0f68163c0 100644 --- a/dex/backend.go +++ b/dex/backend.go @@ -172,8 +172,8 @@ func New(ctx *node.ServiceContext, config *Config) (*Dexon, error) { } pm, err := NewProtocolManager(dex.chainConfig, config.SyncMode, - config.NetworkId, chainConfig.DMoment, dex.eventMux, dex.txPool, dex.engine, - dex.blockchain, chainDb, config.BlockProposerEnabled, dex.governance, dex.app) + config.NetworkId, dex.eventMux, dex.txPool, dex.engine, dex.blockchain, + chainDb, config.BlockProposerEnabled, dex.governance, dex.app) if err != nil { return nil, err } |