question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug] Transaction hash changed to another after some time

See original GitHub issue

What happened?

2022-06-22 about 17:30 i sent some Chia to address: xch1uk9a4fdyhacrg9y8kqqan3rw4fwefzszyjpzruj7tmuhm32h0ksq59xwkz

Then the transaction hash was as follows: 0x22240f1ce00cef8d2f8c89e85f79c2d9657108772485fb2f9f55ce31e86a8dbc Now after a few days Chia wallet shows different hash for the same transaction: 0x9a968ba9f2a0f552e4c0d845fae4f682d1f845930a3bd016b8ac0b8b21a610c4

The transaction is still visible in the block explorer under the old hash, and there is no information about the new one. So why has the hash changed over time? How can we uniquely identify a given transaction if the transaction hash is not reliable?

Version

latest

What platform are you using?

Linux

What ui mode are you using?

CLI

Relevant log output

$ chia wallet get_transactions
(...)

Transaction 9a968ba9f2a0f552e4c0d845fae4f682d1f845930a3bd016b8ac0b8b21a610c4
Status: Confirmed
Amount received: 0.22887 XCH
To address: xch1uk9a4fdyhacrg9y8kqqan3rw4fwefzszyjpzruj7tmuhm32h0ksq59xwkz
Created at: 2022-06-22 17:21:14

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
emlowecommented, Jun 30, 2022

Did you resync the wallet DB in the meantime?

Chia doesn’t have transactions per se - it has coins. For record-keeping, the notion of a transaction is solely a local wallet construct and represents the hash of the entire spendbundle submitted to the chain. The chain itself (and the various explorers) do not allow viewing this spendbundle hash as a transaction. You cannot view this transaction on chain, you can only view coins

However, if you do chia wallet send... that transaction id (and spendbundle) is stored in the wallet DB and shouldn’t change - however, this spendbundle as submitted to the chain is ONLY stored in the wallet db . It should remain there and allow you to query it based on the ID, as long as you do not resync the wallet. Once you resync the wallet however, you lose all the information about these spendbundles and the transaction id will no longer be available.

0reactions
github-actions[bot]commented, Jul 22, 2022

This issue was automatically closed because it has been flagged as stale, and subsequently passed 7 days with no further activity from the submitter or watchers.

Read more comments on GitHub >

github_iconTop Results From Across the Web

go ethereum - Chain Reorganization (TX HASH Change)
If the chain is reorganised then any transactions contained within blocks in the 'old' chain will not exist.
Read more >
How to Fix a Pending / Stuck Transaction on Ethereum
UPDATE: I forgot to show how to enable Customize Nonce in the video. Go to Settings - Advanced - Customize Nonce and turn...
Read more >
What the 'Bitcoin Bug' Means: A Guide to Transaction ...
It's an attack that lets someone change the unique ID of a bitcoin transaction before it is confirmed on the bitcoin network.
Read more >
Canceling or Replacing a Transaction After it's Been Sent
Head to Etherscan.io, Ethplorer.io, or EthVM. Step 2. Paste your transaction hash. If it says pending, you can still try to cancel it....
Read more >
"transaction_id" value is changed … | Apple Developer Forums
After some investigation it turns out that after the next request to Apple's verification server some transactions in "latest_receipt_info" changed their ids! ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found