Skip to content

Commit 108ddc8

Browse files
committed
fix comments
fix
1 parent e8ca9c7 commit 108ddc8

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

core/rawdb/accessors_skipped_txs.go

+5
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,13 @@ func WriteSkippedTransaction(db ethdb.Database, tx *types.Transaction, traces *t
199199
}
200200
}
201201

202+
// ResetSkippedTransactionTracesByHash resets the traces stored in local db, by reading the tx and its associated fields,
203+
// and overwritting it with empty trace
202204
func ResetSkippedTransactionTracesByHash(db ethdb.Database, txHash common.Hash) {
203205
stx := ReadSkippedTransaction(db, txHash)
206+
if stx == nil {
207+
return
208+
}
204209
writeSkippedTransaction(db, stx.Tx, nil, stx.Reason, stx.BlockNumber, stx.BlockHash)
205210
}
206211

eth/api.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,7 @@ func (api *ScrollAPI) ResetSkippedTransactionsTraces(ctx context.Context, from u
781781
return hashes, nil
782782
}
783783

784-
// ResetSkippedTransactionTracesByHash reset a specified skipped tx's traces stored in db.
784+
// ResetSkippedTransactionTracesByHash resets a specified skipped tx's traces stored in db.
785785
func (api *ScrollAPI) ResetSkippedTransactionTracesByHash(ctx context.Context, hash common.Hash) error {
786786
rawdb.ResetSkippedTransactionTracesByHash(api.eth.ChainDb(), hash)
787787
return nil

params/version.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
const (
2525
VersionMajor = 4 // Major version component of the current release
2626
VersionMinor = 4 // Minor version component of the current release
27-
VersionPatch = 5 // Patch version component of the current release
27+
VersionPatch = 10 // Patch version component of the current release
2828
VersionMeta = "sepolia" // Version metadata to append to the version string
2929
)
3030

0 commit comments

Comments
 (0)