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 /eth | |
parent | 61c27beb30c6b8919e3f83bee490bc75426dfa48 (diff) | |
download | dexon-adb04994560c2558fc93c85ea5976b3744ca6b6b.tar.gz 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 'eth')
-rw-r--r-- | eth/backend.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/eth/backend.go b/eth/backend.go index c10f0138d..5e6d50ab1 100644 --- a/eth/backend.go +++ b/eth/backend.go @@ -171,7 +171,7 @@ func New(ctx *node.ServiceContext, config *Config) (*Ethereum, error) { if config.TxPool.Journal != "" { config.TxPool.Journal = ctx.ResolvePath(config.TxPool.Journal) } - eth.txPool = core.NewTxPool(config.TxPool, eth.chainConfig, eth.blockchain) + eth.txPool = core.NewTxPool(config.TxPool, eth.chainConfig, eth.blockchain, false) if eth.protocolManager, err = NewProtocolManager(eth.chainConfig, config.SyncMode, config.NetworkId, eth.eventMux, eth.txPool, eth.engine, eth.blockchain, chainDb, config.Whitelist); err != nil { return nil, err |