aboutsummaryrefslogtreecommitdiffstats
path: root/p2p
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-11-15 13:30:50 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-06-12 17:27:18 +0800
commitdbb3d8fd30bd33df37f13048dc334ead8d335ddc (patch)
tree7f22be12a919cacdc79912444b34d20523448582 /p2p
parent281bf328e19274e21416ecbbc5c01f6243c1ad6f (diff)
downloadgo-tangerine-dbb3d8fd30bd33df37f13048dc334ead8d335ddc.tar
go-tangerine-dbb3d8fd30bd33df37f13048dc334ead8d335ddc.tar.gz
go-tangerine-dbb3d8fd30bd33df37f13048dc334ead8d335ddc.tar.bz2
go-tangerine-dbb3d8fd30bd33df37f13048dc334ead8d335ddc.tar.lz
go-tangerine-dbb3d8fd30bd33df37f13048dc334ead8d335ddc.tar.xz
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 'p2p')
-rw-r--r--p2p/server.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/p2p/server.go b/p2p/server.go
index 8cd2863b3..36b1721a5 100644
--- a/p2p/server.go
+++ b/p2p/server.go
@@ -33,13 +33,13 @@ import (
"github.com/dexon-foundation/dexon/crypto"
"github.com/dexon-foundation/dexon/event"
"github.com/dexon-foundation/dexon/log"
+ "github.com/dexon-foundation/dexon/p2p/discover"
"github.com/dexon-foundation/dexon/p2p/discv5"
"github.com/dexon-foundation/dexon/p2p/enode"
"github.com/dexon-foundation/dexon/p2p/enr"
"github.com/dexon-foundation/dexon/p2p/nat"
"github.com/dexon-foundation/dexon/p2p/netutil"
"github.com/dexon-foundation/dexon/rlp"
- "github.com/ethereum/go-ethereum/p2p/discover"
)
const (