diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-11-15 13:29:48 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-12 17:27:19 +0800 |
commit | 5791965d8af0b1d8d30ae7232879d063cb5cd8f0 (patch) | |
tree | 37c6a697c4b5b82eb119f5fa65748bd2765ec03b /dex | |
parent | 4c520e06a04c0b734dcc703dd007bb89cfb15a9d (diff) | |
download | go-tangerine-5791965d8af0b1d8d30ae7232879d063cb5cd8f0.tar go-tangerine-5791965d8af0b1d8d30ae7232879d063cb5cd8f0.tar.gz go-tangerine-5791965d8af0b1d8d30ae7232879d063cb5cd8f0.tar.bz2 go-tangerine-5791965d8af0b1d8d30ae7232879d063cb5cd8f0.tar.lz go-tangerine-5791965d8af0b1d8d30ae7232879d063cb5cd8f0.tar.xz go-tangerine-5791965d8af0b1d8d30ae7232879d063cb5cd8f0.tar.zst go-tangerine-5791965d8af0b1d8d30ae7232879d063cb5cd8f0.zip |
core: fix tests
Diffstat (limited to 'dex')
-rw-r--r-- | dex/config.go | 8 | ||||
-rw-r--r-- | dex/handler.go | 2 |
2 files changed, 2 insertions, 8 deletions
diff --git a/dex/config.go b/dex/config.go index b6ce76992..924e18d53 100644 --- a/dex/config.go +++ b/dex/config.go @@ -48,9 +48,6 @@ var DefaultConfig = Config{ }, BlockProposerEnabled: false, DefaultGasPrice: big.NewInt(params.GWei), - GasFloor: 80000000, - GasCeil: 80000000, - GasLimitTolerance: 1000000, } func init() { @@ -96,10 +93,7 @@ type Config struct { TrieTimeout time.Duration // For calculate gas limit - DefaultGasPrice *big.Int - GasFloor uint64 - GasCeil uint64 - GasLimitTolerance uint64 + DefaultGasPrice *big.Int // Transaction pool options TxPool core.TxPoolConfig diff --git a/dex/handler.go b/dex/handler.go index 60a5ede17..b6a75d2fd 100644 --- a/dex/handler.go +++ b/dex/handler.go @@ -1201,7 +1201,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"` // Ethereum network ID (1=Frontier, 2=Morden, Ropsten=3, Rinkeby=4) + Network uint64 `json:"network"` // DEXON network ID (237=Mainnet, 238=Taiwan, 239=Taipei) Difficulty *big.Int `json:"difficulty"` // 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 |