Skip to content

Commit 71de8ab

Browse files
committed
Optimize default adapter option value
1 parent 3648a0b commit 71de8ab

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

blockchain/sync/core/adapter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ type AdapterOption struct {
2525

2626
// latest block number
2727
LatestBlockNumberTag string `default:"latest_state"` // latest_mined, latest_state, latest_confirmed or latest_finalized
28-
LatestBlockNumberOffset uint64 `default:"5"` // N blocks behind the `LatestBlockNumberTag`
28+
LatestBlockNumberOffset uint64 // N blocks behind the `LatestBlockNumberTag`
2929
latestEpoch *types.Epoch
3030

3131
// allow to ignore receipts and/or traces, only block and transactions are required

blockchain/sync/evm/adapter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ type AdapterOption struct {
2424

2525
// latest block number
2626
LatestBlockNumberTag int64 `default:"-1"` // -1: "latest", -3: "finalized", -4: "safe"
27-
LatestBlockNumberOffset uint64 `default:"5"` // N blocks behind the `LatestBlockNumberTag`
27+
LatestBlockNumberOffset uint64 // N blocks behind the `LatestBlockNumberTag`
2828

2929
// allow to ignore receipts and/or traces, only block and transactions are required
3030
IgnoreReceipts bool

0 commit comments

Comments
 (0)