tiny fix double validation

This commit is contained in:
AnilChinchwale 2018-11-09 16:39:14 +05:30
parent 1396b1a10f
commit 03c07f37b4

View file

@ -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