Skip to content

unstake hangs forever; local nonce state is out of sync with the blockchain #4826

@attila-lendvai

Description

@attila-lendvai

Summary

i initiate unstaking using curl -s -X DELETE localhost:1708/stake | jq. after 20+ minutes the curl call is still pending.

$ curl -s -X GET localhost:1708/transactions | jq
{
  "pendingTransactions": [
    {
      "transactionHash": "[...]",
      "to": "0xdbf3ea6f5bee45c02255b2c26a16f300502f68da",
      "nonce": 18,
      "gasPrice": "2460000007",
      "gasLimit": 65000,
      "gasTipBoost": 0,
      "gasTipCap": "1230000000",
      "gasFeeCap": "2460000007",
      "data": "[...]",
      "created": "2024-09-15T15:46:50+02:00",
      "description": "Approve tokens for stake deposit operations",
      "value": "0"
    }
  ]
}

i cannot find this txHash in https://gnosisscan.io/ i'm not sure whether that is to be expected or not.

republishing doesn't change much:

$ curl -s -X POST localhost:1708/transactions/[...] | jq
{
  "transactionHash": "[...]"
}

i tried using 3 different gnosis endpoints with the same results:

Expected behavior

unstaking finishes in less than a minute.

Actual behavior

the unstaking tx is not getting incorporated into the blockchain, because the nonce of the generated tx is not in sync with the blockchain state.

the logs didn't help much, not even on debug level. all i see is this:

2024-09-15 16:10:24 "time"="2024-09-15 16:10:24.660915" "level"="debug" "logger"="node/transaction" "msg"="prepare transaction" "sender_address"="[...]" "gas_price"="1200000007" "gas_max_fee"="2400000007" "gas_max_tip"="1200000000"

Steps to reproduce

i didn't do anything special, just followed the release notes to unstake before updating to the 2.2.0 release.

for now i still have a few nodes in a state like this.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions