Merge pull request #236 from nguyenbatam/tiny_fix_double_validation

tiny fix double validation
This commit is contained in:
Tuna 2018-10-25 11:46:23 +07:00 committed by GitHub
commit 7c561e5117
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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