Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
krish-nr committed Oct 22, 2024
1 parent 9082f55 commit aa33787
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/txpool/legacypool/legacypool.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (
"math"
"math/big"
"sort"
"strings"
"sync"
"sync/atomic"
"time"
Expand Down Expand Up @@ -358,7 +359,7 @@ func (pool *LegacyPool) Init(gasTip uint64, head *types.Header, reserve txpool.A
log.Error("error 1.1")
statedb, err = pool.chain.StateAt(types.EmptyRootHash)
}
if err != nil {
if err != nil && !strings.Contains(err.Error(), "state is not available") {
log.Error("error 1.2")
return err
}
Expand Down

0 comments on commit aa33787

Please sign in to comment.