File tree Expand file tree Collapse file tree 3 files changed +6
-7
lines changed
Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ module github.com/Gearbox-protocol/third-eye
33go 1.20
44
55require (
6- github.com/Gearbox-protocol/sdk-go v0.0.0-20250123064548-2b5926faf8ae
6+ github.com/Gearbox-protocol/sdk-go v0.0.0-20250123154742-e3f31a6a1d51
77 github.com/ethereum/go-ethereum v1.13.14
88 github.com/go-playground/validator/v10 v10.4.1
99 github.com/google/go-cmp v0.5.9
@@ -82,6 +82,6 @@ require (
8282
8383replace github.com/btcsuite/btcd => github.com/btcsuite/btcd v0.22.1
8484
85- replace github.com/Gearbox-protocol/sdk-go v0.0.0-20241126153159-4d2505d49944 => ../sdk-go
85+ replace github.com/Gearbox-protocol/sdk-go v0.0.0-20250123064548-2b5926faf8ae => ../sdk-go
8686
8787replace github.com/ethereum/go-ethereum v1.13.14 => github.com/OffchainLabs/go-ethereum v1.13.4-0.20240313010929-e5d8587e7227
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ contrib.go.opencensus.io/exporter/ocagent v0.6.0/go.mod h1:zmKjrJcdo0aYcVS7bmEeS
55github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ =
66github.com/BurntSushi/toml v0.3.1 /go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU =
77github.com/DataDog/zstd v1.4.5 h1:EndNeuB0l9syBZhut0wns3gV1hL8zX8LIu6ZiVHWLIQ =
8- github.com/Gearbox-protocol/sdk-go v0.0.0-20250123064548-2b5926faf8ae h1:rJcrgNitrwMs4Ln7qP1C5w3TUxvyJKGI0s63tyB16CY =
9- github.com/Gearbox-protocol/sdk-go v0.0.0-20250123064548-2b5926faf8ae /go.mod h1:jRBSOG94bpGc5ci8EWIPUVXZdaGEaekMNmhajbmWFVU =
8+ github.com/Gearbox-protocol/sdk-go v0.0.0-20250123154742-e3f31a6a1d51 h1:X1oIZ15BgVHqXgnG/43Q9kTDKcopF2IjtxNvsxR1kgc =
9+ github.com/Gearbox-protocol/sdk-go v0.0.0-20250123154742-e3f31a6a1d51 /go.mod h1:jRBSOG94bpGc5ci8EWIPUVXZdaGEaekMNmhajbmWFVU =
1010github.com/Microsoft/go-winio v0.6.1 h1:9/kr64B9VUZrLm5YYwbGtUJnMgqWVOdUAXu6Migciow =
1111github.com/Microsoft/go-winio v0.6.1 /go.mod h1:LRdKpFKfdobln8UmuiYcKPot9D2v6svN5+sAH+4kjUM =
1212github.com/OffchainLabs/go-ethereum v1.13.4-0.20240313010929-e5d8587e7227 h1:+/3TrD+q+BP36jGj2Bycdmrc/joKLNbc5ImePQzKRLM =
Original file line number Diff line number Diff line change @@ -100,7 +100,6 @@ func (repo *BlocksRepo) _fetchBlockTime(blockNum int64) (uint64, error) {
100100 // return
101101 // }
102102 if err != nil {
103-
104103 if strings .Contains (err .Error (), "invalid transaction v, r, s values" ) && ds .IsTestnet (repo .client ) {
105104 b , err := repo .client .BlockByNumber (context .Background (), big .NewInt (blockNum - 1 ))
106105 log .CheckFatal (err )
@@ -114,13 +113,13 @@ func (repo *BlocksRepo) _fetchBlockTime(blockNum int64) (uint64, error) {
114113func (repo * BlocksRepo ) fetchBlockTime (blockNum int64 ) uint64 {
115114 bTime , err := repo ._fetchBlockTime (blockNum )
116115 msg := ""
117- if err != nil && (strings .Contains (err .Error (), "not found" ) || strings . Contains ( err . Error (), "required field 'maxPriorityFeePerGas'" ) ) {
116+ if err != nil && (strings .Contains (err .Error (), "not found" )) {
118117 time .Sleep (5 * time .Second )
119118 bTime , err = repo ._fetchBlockTime (blockNum )
120119 msg = "tried again"
121120 }
122121 if err != nil {
123- log .Fatalf ("%s: %d" , err , blockNum , msg )
122+ log .Fatalf ("%s: %d. %s " , err , blockNum , msg )
124123 }
125124 return bTime
126125}
You can’t perform that action at this time.
0 commit comments