diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-11-15 13:30:50 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-12 17:27:18 +0800 |
commit | dbb3d8fd30bd33df37f13048dc334ead8d335ddc (patch) | |
tree | 7f22be12a919cacdc79912444b34d20523448582 /cmd | |
parent | 281bf328e19274e21416ecbbc5c01f6243c1ad6f (diff) | |
download | go-tangerine-dbb3d8fd30bd33df37f13048dc334ead8d335ddc.tar.gz go-tangerine-dbb3d8fd30bd33df37f13048dc334ead8d335ddc.tar.zst go-tangerine-dbb3d8fd30bd33df37f13048dc334ead8d335ddc.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 'cmd')
-rw-r--r-- | cmd/utils/flags.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index 0ea9761d2..514899699 100644 --- a/cmd/utils/flags.go +++ b/cmd/utils/flags.go @@ -1176,6 +1176,10 @@ func SetDexConfig(ctx *cli.Context, stack *node.Node, cfg *dex.Config) { if ctx.GlobalIsSet(NetworkIdFlag.Name) { cfg.NetworkId = ctx.GlobalUint64(NetworkIdFlag.Name) } + if ctx.GlobalIsSet(BlockProposerEnabledFlag.Name) { + cfg.BlockProposerEnabled = ctx.GlobalBool(BlockProposerEnabledFlag.Name) + } + if ctx.GlobalIsSet(CacheFlag.Name) || ctx.GlobalIsSet(CacheDatabaseFlag.Name) { cfg.DatabaseCache = ctx.GlobalInt(CacheFlag.Name) * ctx.GlobalInt(CacheDatabaseFlag.Name) / 100 } |