Blockchain 更新到新版本的cosmos sdk时缺少'tendermint/libs/db'
将cosmos sdk从v0.35更新到v0.36之后(cosmos-sdk@v0.36.0-rc1)()用于新功能。出现错误,因为包路径不再工作:Blockchain 更新到新版本的cosmos sdk时缺少'tendermint/libs/db',blockchain,tendermint,Blockchain,Tendermint,将cosmos sdk从v0.35更新到v0.36之后(cosmos-sdk@v0.36.0-rc1)()用于新功能。出现错误,因为包路径不再工作: Cannot load github.com/tendermint/tendermint/libs/db: cannot find module providing pacakge github.com/tendermint/tendermint/libs/db 这是因为tendermint将dbm移动到了一个单独的模块路径 做: $go get
Cannot load github.com/tendermint/tendermint/libs/db: cannot find module providing pacakge github.com/tendermint/tendermint/libs/db
这是因为tendermint将
dbm
移动到了一个单独的模块路径
做:
$go get github.com/tendermint/tm db
并替换:
dbm“github.com/tendermint/tendermint/libs/db”
其中:
dbm“github.com/tendermint/tm db”
对于您的导入我们希望能够获得cosmos network/sdk专用标签,甚至对于其他软件包/模块/依赖项,也可能有额外的步骤来完全升级到v0.36。此外,在升级sdk时,genesis文件生成器方法已从
gaiad
pacakge移到genutils
。这意味着在通过init
命令生成genesis文件时,将“github.com/cosmos/cosmos sdk/cmd/gaia/init”
导入替换为“github.com/cosmos/cosmos sdk/x/genutil”
。