Skip to content

Commit 1a063df

Browse files
committed
fix: getblocktime
1 parent 6e86024 commit 1a063df

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

go.sum

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ contrib.go.opencensus.io/exporter/ocagent v0.6.0/go.mod h1:zmKjrJcdo0aYcVS7bmEeS
55
github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=
66
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
77
github.com/DataDog/zstd v1.4.5 h1:EndNeuB0l9syBZhut0wns3gV1hL8zX8LIu6ZiVHWLIQ=
8-
github.com/Gearbox-protocol/sdk-go v0.0.0-20250122115256-18609468d2fb h1:VOscfelZwW1RJd6vCWpGguhTPSYrHwDXQQXryEYcxqQ=
9-
github.com/Gearbox-protocol/sdk-go v0.0.0-20250122115256-18609468d2fb/go.mod h1:jRBSOG94bpGc5ci8EWIPUVXZdaGEaekMNmhajbmWFVU=
108
github.com/Gearbox-protocol/sdk-go v0.0.0-20250123064548-2b5926faf8ae h1:rJcrgNitrwMs4Ln7qP1C5w3TUxvyJKGI0s63tyB16CY=
119
github.com/Gearbox-protocol/sdk-go v0.0.0-20250123064548-2b5926faf8ae/go.mod h1:jRBSOG94bpGc5ci8EWIPUVXZdaGEaekMNmhajbmWFVU=
1210
github.com/Microsoft/go-winio v0.6.1 h1:9/kr64B9VUZrLm5YYwbGtUJnMgqWVOdUAXu6Migciow=

repository/handlers/blocks.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ func (repo *BlocksRepo) _fetchBlockTime(blockNum int64) (uint64, error) {
114114
func (repo *BlocksRepo) fetchBlockTime(blockNum int64) uint64 {
115115
bTime, err := repo._fetchBlockTime(blockNum)
116116
msg := ""
117-
if err != nil && strings.Contains(err.Error(), "not found") {
117+
if err != nil && (strings.Contains(err.Error(), "not found") || strings.Contains(err.Error(), "required field 'maxPriorityFeePerGas'")) {
118118
time.Sleep(5 * time.Second)
119119
bTime, err = repo._fetchBlockTime(blockNum)
120120
msg = "tried again"

0 commit comments

Comments
 (0)