mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 21:31:37 +00:00
remove useless code
This commit is contained in:
parent
0064693228
commit
25f010b5ab
1 changed files with 1 additions and 7 deletions
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
// Copyright 2014 The go-ethereum Authors
|
||||
// This file is part of the go-ethereum library.
|
||||
//
|
||||
|
|
@ -201,16 +200,11 @@ func New(ctx *node.ServiceContext, config *Config) (*Ethereum, error) {
|
|||
log.Error("Cannot get etherbase for append m2 header", "err", err)
|
||||
return block, fmt.Errorf("etherbase missing: %v", err)
|
||||
}
|
||||
// Get m1.
|
||||
snap, err := c.GetSnapshot(eth.blockchain, eth.blockchain.CurrentHeader())
|
||||
if err != nil {
|
||||
return block, fmt.Errorf("can't get snapshot: %v", err)
|
||||
}
|
||||
m1, err := c.RecoverSigner(block.Header())
|
||||
if err != nil {
|
||||
return block, fmt.Errorf("can't get block creator: %v", err)
|
||||
}
|
||||
m2, err := c.GetValidator(m1, snap, eth.blockchain, block.Header())
|
||||
m2, err := c.GetValidator(m1, eth.blockchain, block.Header())
|
||||
if err != nil {
|
||||
return block, fmt.Errorf("can't get block validator: %v", err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue