diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-11-15 13:30:50 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2018-12-19 20:54:27 +0800 |
commit | adb04994560c2558fc93c85ea5976b3744ca6b6b (patch) | |
tree | 6fb38620a06572fc5d51eefbee2e2646b807449f /dex/config.go | |
parent | 61c27beb30c6b8919e3f83bee490bc75426dfa48 (diff) | |
download | dexon-adb04994560c2558fc93c85ea5976b3744ca6b6b.tar dexon-adb04994560c2558fc93c85ea5976b3744ca6b6b.tar.gz dexon-adb04994560c2558fc93c85ea5976b3744ca6b6b.tar.bz2 dexon-adb04994560c2558fc93c85ea5976b3744ca6b6b.tar.lz dexon-adb04994560c2558fc93c85ea5976b3744ca6b6b.tar.xz dexon-adb04994560c2558fc93c85ea5976b3744ca6b6b.tar.zst dexon-adb04994560c2558fc93c85ea5976b3744ca6b6b.zip |
core: refactor validator and fix light node sync (#25)
Remove custom Dexon validator by adding a new `ValidateWitnessData`
method into the validator interface. This allow us to properly detect
know blocks. This also allow other gdex "light" client to sync
compaction chain. Also, setup a standalone RPC node for handling RPC
reqeusts.
Diffstat (limited to 'dex/config.go')
-rw-r--r-- | dex/config.go | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/dex/config.go b/dex/config.go index 2b8669fde..e78a698a9 100644 --- a/dex/config.go +++ b/dex/config.go @@ -46,10 +46,11 @@ var DefaultConfig = Config{ Blocks: 20, Percentile: 60, }, - DefaultGasPrice: big.NewInt(params.GWei), - GasFloor: 8000000, - GasCeil: 8000000, - GasLimitTolerance: 1000000, + BlockProposerEnabled: false, + DefaultGasPrice: big.NewInt(params.GWei), + GasFloor: 8000000, + GasCeil: 8000000, + GasLimitTolerance: 1000000, } func init() { @@ -106,6 +107,9 @@ type Config struct { // Gas Price Oracle options GPO gasprice.Config + // BlockProposer options + BlockProposerEnabled bool + // Enables tracking of SHA3 preimages in the VM EnablePreimageRecording bool |