mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-11 09:21:37 +00:00
fix ci
This commit is contained in:
parent
5b15ecb8bb
commit
b4156b31cc
1 changed files with 1 additions and 4 deletions
|
|
@ -721,10 +721,7 @@ func (bc *BlockChain) loadLastState() error {
|
||||||
// initializeHistoryPruning sets bc.historyPrunePoint based on actual DB state,
|
// initializeHistoryPruning sets bc.historyPrunePoint based on actual DB state,
|
||||||
// and prunes chain history at startup if needed.
|
// and prunes chain history at startup if needed.
|
||||||
func (bc *BlockChain) initializeHistoryPruning(latest uint64) error {
|
func (bc *BlockChain) initializeHistoryPruning(latest uint64) error {
|
||||||
freezerTail, err := bc.db.Tail()
|
freezerTail, _ := bc.db.Tail()
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
policy := bc.cfg.HistoryPolicy
|
policy := bc.cfg.HistoryPolicy
|
||||||
// Compute the current prune target from the policy.
|
// Compute the current prune target from the policy.
|
||||||
var target uint64
|
var target uint64
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue