英文:
Cosmos SDK account sequence mismatch
问题
我正在使用Cosmos SDK,并在创建新交易时遇到问题。
当我尝试使用CLI创建交易时,出现以下错误:
account sequence mismatch, expected 3787, got 3786: incorrect account sequence
这是在cosmoshub-testnet
上使用的Cosmos SDK版本,该版本来自于https://github.com/b-harvest/gravity-dex,其中提到了以下依赖:
github.com/tendermint/tendermint v0.34.10
github.com/cosmos/cosmos-sdk v0.42.5
module github.com/cosmos/gaia/v4
go 1.16
我不知道为什么会出现这个问题,也不知道如何解决。希望能得到帮助。
英文:
I am using the Cosmos SDK and run into an issue creating new transactions.
I get the following error when I try to create a transaction with the CLI:
account sequence mismatch, expected 3787, got 3786: incorrect account sequence
This is on the cosmoshub-testnet
, using the Cosmos SDK version from https://github.com/b-harvest/gravity-dex which mentions
github.com/tendermint/tendermint v0.34.10
github.com/cosmos/cosmos-sdk v0.42.5
module github.com/cosmos/gaia/v4
go 1.16
I do not know why this happened or how to resolve. Any help is appreciated.
答案1
得分: 2
我认为你在交易中使用了较低的序列号。你可以在CLI中使用--sequence
标志指定一个特定的序列号。
更多详细信息可以在这里找到。
英文:
I think it is that you are siging with lower sequense number in a transaction. You could assign a specified sequense number in CLI with --sequence
flag.
More details cac be seen here
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论