From b26e4c9adaa2952a63bf811f991a3e6fb9fc5646 Mon Sep 17 00:00:00 2001 From: Wei-Ning Huang Date: Thu, 15 Nov 2018 13:30:50 +0800 Subject: 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. --- core/types/block.go | 1 + 1 file changed, 1 insertion(+) (limited to 'core/types') diff --git a/core/types/block.go b/core/types/block.go index fefcbad83..8947c3a17 100644 --- a/core/types/block.go +++ b/core/types/block.go @@ -64,6 +64,7 @@ func (n *BlockNonce) UnmarshalText(input []byte) error { return hexutil.UnmarshalFixedText("BlockNonce", input, n[:]) } +// WitnessData represents the witness data. type WitnessData struct { Root common.Hash TxHash common.Hash -- cgit v1.2.3