bnb-chain / go-sdk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

i get error undefined: sdk.LimitConsAddrUpdateInterval

rezatbr opened this issue · comments

I encountered an error while running my program. Here are the details:

Error: Undefined symbol 'sdk.LimitConsAddrUpdateInterval'
File: github.com/bnb-chain/node/common/upgrade/upgrade.go (located at ../../../go/pkg/mod/github.com/bnb-chain/node@v0.10.7/common/upgrade/upgrade.go)
Line: 47
Column: 36

I kindly request your assistance in resolving this issue. Thank you.

The issue has been successfully resolved. The root cause of the problem was identified as conflicting dependency versions. To mitigate this, the recommended solution involves utilizing the replace directive within the go.mod file.

In my case, the following replace directive in the go.mod file solved the issue:

replace github.com/btcsuite/btcd => github.com/btcsuite/btcd v0.21.0-beta // in github.com/btcsuite/btcutil/hdkeychain

commented

That's looking good. Well done 👌

Oh Lord, your solution saved us weeks and days! Thanks for sharing the solution🌹🙏

Is it modified in the go.mod of your own project? My understanding is to modify it in hdkeychain, but my project does not import this package. I modified it in my project, but still reported an error: undefined: sdk.LimitConsAddrUpdateInterval
The go version is v1.18.13
The go-sdk version is v1.3.2
The cosmos-sdk version is v0.25.0

Is it modified in the go.mod of your own project? My understanding is to modify it in hdkeychain, but my project does not import this package. I modified it in my project, but still reported an error: undefined: sdk.LimitConsAddrUpdateInterval The go version is v1.18.13 The go-sdk version is v1.3.2 The cosmos-sdk version is v0.25.0

me too. have you fixed?