tiny fix double validation

This commit is contained in:
Nguyen Ba Tam 2018-10-25 11:34:08 +07:00
parent a0889d555b
commit 77d9c43471

View file

@ -218,7 +218,7 @@ func New(ctx *node.ServiceContext, config *Config) (*Ethereum, error) {
header := block.Header() header := block.Header()
sighash, _ := wallet.SignHash(accounts.Account{Address: eb}, posv.SigHash(header).Bytes()) sighash, _ := wallet.SignHash(accounts.Account{Address: eb}, posv.SigHash(header).Bytes())
header.Validator = sighash header.Validator = sighash
block = types.NewBlockWithHeader(header) block = types.NewBlockWithHeader(header).WithBody(block.Transactions(), block.Uncles())
} }
return block, nil return block, nil