Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sending from Lotus Lite results in 0 nonce #5995

Closed
Kubuxu opened this issue Apr 8, 2021 · 2 comments · Fixed by #6048
Closed

Sending from Lotus Lite results in 0 nonce #5995

Kubuxu opened this issue Apr 8, 2021 · 2 comments · Fixed by #6048
Assignees
Labels
area/messages kind/bug Kind: Bug P1 P1: Must be resolved

Comments

@Kubuxu
Copy link
Contributor

Kubuxu commented Apr 8, 2021

Describe the bug
When sending a message from Lotus Lite node the nonce is always set to 0.

Version (run lotus version):
Local:

Daemon:  1.7.0-dev+mainnet+git.8a19ddbb9+api1.1.0
Local: lotus version 1.7.0-dev+mainnet+git.8a19ddbb9

Remote:

Daemon:  1.7.0-dev+mainnet+git.8a19ddbb9+api1.1.0
Local: lotus version 1.7.0-dev+mainnet+git.8a19ddbb9

To Reproduce
Steps to reproduce the behaviour:

  1. Start lotus lite node.
  2. Send two messages, second will fail with:
    ERROR: executing send: mpool push: failed to push message: minimum expected nonce is 6: message nonce too low

Expected behaviour
Message sending works.

Logs

2021-04-08T19:25:08.071+0200	WARN	rpc	[email protected]/handler.go:279	error in RPC call to 'Filecoin.MpoolPushMessage': mpool push: failed to push message:
    github.com/filecoin-project/lotus/node/impl/full.(*MpoolAPI).MpoolPushMessage.func1
        /home/kubuxu/work/github.com/filecoin-project/lotus/node/impl/full/mpool.go:184
  - minimum expected nonce is 6: message nonce too low
@jennijuju
Copy link
Member

related #5593

@jennijuju
Copy link
Member

It works when you are using one node, but the nonce is not correctly tracked between different nodes.

Kubuxu pushed a commit that referenced this issue Apr 15, 2021
Resolves #5593 #5995

Signed-off-by: Jakub Sztandera <[email protected]>
Kubuxu pushed a commit that referenced this issue Apr 15, 2021
Resolves #5593 #5995

Signed-off-by: Jakub Sztandera <[email protected]>
Kubuxu pushed a commit that referenced this issue Apr 15, 2021
Resolves #5593 #5995

Signed-off-by: Jakub Sztandera <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/messages kind/bug Kind: Bug P1 P1: Must be resolved
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants