mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
tiny fix double validation
This commit is contained in:
parent
a0889d555b
commit
77d9c43471
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue