From 77d9c434717cb76936074367e351f59b25bd9fab Mon Sep 17 00:00:00 2001 From: Nguyen Ba Tam Date: Thu, 25 Oct 2018 11:34:08 +0700 Subject: [PATCH] tiny fix double validation --- eth/backend.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eth/backend.go b/eth/backend.go index de5a79ce07..a7a7b94364 100644 --- a/eth/backend.go +++ b/eth/backend.go @@ -218,7 +218,7 @@ func New(ctx *node.ServiceContext, config *Config) (*Ethereum, error) { header := block.Header() sighash, _ := wallet.SignHash(accounts.Account{Address: eb}, posv.SigHash(header).Bytes()) header.Validator = sighash - block = types.NewBlockWithHeader(header) + block = types.NewBlockWithHeader(header).WithBody(block.Transactions(), block.Uncles()) } return block, nil