This commit is contained in:
DinhLN 2018-10-25 16:48:07 +07:00
commit b63129e07b

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