mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 07:06:42 +00:00
fix error check in filter test
This commit is contained in:
parent
2bb9862661
commit
7b5b9791f4
1 changed files with 3 additions and 2 deletions
|
|
@ -207,10 +207,11 @@ func (fq *filterQuery) run(client *client, historyPruneBlock *uint64) {
|
|||
Topics: fq.Topics,
|
||||
})
|
||||
if err != nil {
|
||||
if err = validateHistoryPruneErr(fq.Err, uint64(fq.FromBlock), historyPruneBlock); err != nil {
|
||||
if err = validateHistoryPruneErr(fq.Err, uint64(fq.FromBlock), historyPruneBlock); err == errPrunedHistory {
|
||||
return
|
||||
} else if err != nil {
|
||||
fmt.Printf("Filter query failed: fromBlock: %d toBlock: %d addresses: %v topics: %v error: %v\n",
|
||||
fq.FromBlock, fq.ToBlock, fq.Address, fq.Topics, err)
|
||||
return
|
||||
}
|
||||
fq.Err = err
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue