aboutsummaryrefslogtreecommitdiffstats
path: root/eth/backend.go
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-11-15 13:30:50 +0800
committerWei-Ning Huang <w@dexon.org>2019-03-12 12:19:09 +0800
commit8150597b3878368ad090c9846cdf50dd812b2181 (patch)
treee6990143005d574424330aeb51af6dc2a193fd06 /eth/backend.go
parenta27488515c91066a30989b6c751d214544367a1a (diff)
downloaddexon-8150597b3878368ad090c9846cdf50dd812b2181.tar
dexon-8150597b3878368ad090c9846cdf50dd812b2181.tar.gz
dexon-8150597b3878368ad090c9846cdf50dd812b2181.tar.bz2
dexon-8150597b3878368ad090c9846cdf50dd812b2181.tar.lz
dexon-8150597b3878368ad090c9846cdf50dd812b2181.tar.xz
dexon-8150597b3878368ad090c9846cdf50dd812b2181.tar.zst
dexon-8150597b3878368ad090c9846cdf50dd812b2181.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/backend.go')
-rw-r--r--eth/backend.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/eth/backend.go b/eth/backend.go
index 04e4569f2..a6a558823 100644
--- a/eth/backend.go
+++ b/eth/backend.go
@@ -173,7 +173,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