mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-20 13:44:31 +00:00
tiny fix double validation
This commit is contained in:
parent
1396b1a10f
commit
03c07f37b4
1 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue