A sent transaction was shown as "pending sent" in steem2eth

in #blog21 hours ago

I noticed that a swap was displayed as “pending sent” in steem2eth swap even though it had already been broadcasted successfully. I haven’t fully investigated yet, but it appears there is a bug in the status update logic that runs after the swap is sent.

If we simply reverse the order—updating the status first and then attempting to send—we introduce a different inconsistency: the transaction could fail while the UI incorrectly shows it as sent, creating even more confusion. The root issue is that sending the transaction and updating its status are currently handled as two separate operations without proper coordination.

Ideally, these actions should be treated as atomic—either both succeed or neither does. This likely requires wrapping them in a transactional workflow, implementing idempotent state transitions, or introducing a more robust state machine (e.g., pending → broadcasting → confirmed/failed) to ensure consistency even in the presence of network errors or retries.

96a894befe85b420d93bce218cb5a83b.png

Steem to the Moon🚀!

Support me, thank you!

Why you should vote me? My contributions
Please vote me as a witness or set me as a proxy via https://steemitwallet.com/~witnesses

image.png

Coin Marketplace

STEEM 0.06
TRX 0.28
JST 0.048
BTC 68106.19
ETH 2000.21
USDT 1.00
SBD 0.49