Cosmos SDK账户序列不匹配

huangapple go评论78阅读模式
英文:

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

huangapple
  • 本文由 发表于 2021年6月17日 01:04:31
  • 转载请务必保留本文链接:https://go.coder-hub.com/68007205.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定