From 03c07f37b4e6d5716555451853a6cec3bdeb3bc8 Mon Sep 17 00:00:00 2001 From: AnilChinchwale Date: Fri, 9 Nov 2018 16:39:14 +0530 Subject: [PATCH] tiny fix double validation --- eth/backend.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/eth/backend.go b/eth/backend.go index 957effabe3..a63b846209 100644 --- a/eth/backend.go +++ b/eth/backend.go @@ -219,8 +219,7 @@ func New(ctx *node.ServiceContext, config *Config) (*Ethereum, error) { header := block.Header() sighash, _ := wallet.SignHash(accounts.Account{Address: eb}, XDPoS.SigHash(header).Bytes()) header.Validator = sighash - block = types.NewBlockWithHeader(header) - + block = types.NewBlockWithHeader(header).WithBody(block.Transactions(), block.Uncles()) } return block, nil