bee icon indicating copy to clipboard operation
bee copied to clipboard

Stuck pending transaction - logs indicate cancellation, but it seems successful

Open Cafe137 opened this issue 6 months ago • 1 comments

Context

Version: 2.6.0-rc7-027599b3a Full node, mainnet

Summary

The http://localhost:1633/transactions endpoint lists one pending transaction:

{
"transactionHash": "0xb1cf93a719435aa6118e783441a61d4d08282ac7c7b7e46d4f962d86496f8abf",
"to": "0xdbf3ea6f5bee45c02255b2c26a16f300502f68da",
"nonce": 22,
"gasPrice": "1500001548",
"gasLimit": 77728,
"gasTipBoost": 25,
"gasTipCap": "1500000000",
"gasFeeCap": "1500001548",
"data": "0x095ea7b300000000000000000000000045a1502382541cd610cc9068e88727426b6962930000000000000000000000000000000000000000000000000000452432000000",
"created": "2025-06-24T00:03:36+02:00",
"description": "Approve tokens for postage operations",
"value": "0"
}

The Bee logs indicate that this transaction is cancelled:

"time"="2025-06-24 00:04:44.811867" "level"="warning" "logger"="node/transaction" "msg"="pending transaction cancelled" "sender_address"="0x7a093dE3383d22D9CB2AA1e26328478E81a37072" "tx"="0xb1cf93a719435aa6118e783441a61d4d08282ac7c7b7e46d4f962d86496f8abf"

However, on Gnosisscan, the transaction is successful:

https://gnosisscan.io/tx/0xb1cf93a719435aa6118e783441a61d4d08282ac7c7b7e46d4f962d86496f8abf

After restarting the Bee node, the pending transaction is cleared.

Expected behavior

  1. If cancelled, clear transaction
  2. But since this seems to be successful, why the cancellation in logs?

Actual behavior

Please see description.

Steps to reproduce

The tx was possibly created by an attempt to create a postage batch.

Possible solution

N/A

Cafe137 avatar Jun 23 '25 22:06 Cafe137

I could reproduce this by depositing 1 PLUR to the chequebook.

The transaction correctly appears under pending transactions.

{
"transactionHash": "0x5238112041503c37ddc03594a58b17cf4c68c85e74d59184c328f5dede820eeb",
"to": "0xdbf3ea6f5bee45c02255b2c26a16f300502f68da",
"nonce": 23,
"gasPrice": "1500256298",
"gasLimit": 90000,
"gasTipBoost": 25,
"gasTipCap": "1500000000",
"gasFeeCap": "1500256298",
"data": "0xa9059cbb00000000000000000000000036cb25a10472127cb2eb14606a0b0503b6d64ae70000000000000000000000000000000000000000000000000000000000000001",
"created": "2025-06-24T00:27:27+02:00",
"description": "token transfer",
"value": "0"
}

I see the cancellation message:

"time"="2025-06-24 00:28:39.789425" "level"="warning" "logger"="node/transaction" "msg"="pending transaction cancelled" "sender_address"="0x7a093dE3383d22D9CB2AA1e26328478E81a37072" "tx"="0x5238112041503c37ddc03594a58b17cf4c68c85e74d59184c328f5dede820eeb"

But tx is successful:

https://gnosisscan.io/tx/0x5238112041503c37ddc03594a58b17cf4c68c85e74d59184c328f5dede820eeb/

It is even credited in my chequebook:

Before:

Chequebook
Available xBZZ: 0.5106778288056953
Total xBZZ: 0.5429205288099753

After:

Chequebook
Available xBZZ: 0.5106778288056954
Total xBZZ: 0.5429205288099754

Tx is stuck in pending transactions again, until a Bee restart.

Cafe137 avatar Jun 23 '25 22:06 Cafe137