1
0
Files
electrum/electrum
SomberNight 197933debf adb.get_tx_height: return "LOCAL" height if missing full signed tx
get_tx_height previously did not consider whether the walletDB has the full tx for
the corresponding txid, and could consider a tx even "mined" and spv-ed, even if
we were missing the raw tx.
Now if the full tx is missing or the tx in the db is partial,
get_tx_height considers it to be LOCAL.

In particular the txbatcher, in `run_iteration`,
- first saves a tx as local *unsigned* (to reserve UTXOs),
- then signs it and tries to broadcast it.

The history tx will later transition to local and signed,
after we get back the broadcasted tx via the Synchronizer dance.
In the meantime there is a race where we have an unsigned tx in the history,
but the txid could already transition to mempool or even to mined,
before we download the full raw tx from the server.
During that time window, it makes the adb state more consistent
to just consider the history tx to be local, as done here.
2025-05-26 16:57:51 +00:00
..
2024-09-18 15:48:38 +00:00
2025-02-04 09:43:40 +01:00
2025-05-20 13:52:30 +02:00
2022-07-07 18:29:01 +02:00
2022-10-20 18:43:54 +00:00
2024-05-30 13:08:13 +00:00
2025-02-10 14:22:50 +01:00
2024-10-22 09:26:36 +02:00
2025-05-26 15:31:08 +00:00
2025-02-19 14:29:02 +01:00
2025-04-02 16:21:59 +00:00
2025-04-23 16:09:31 +02:00
2021-03-21 00:36:23 -04:00
2024-11-29 17:09:29 +08:00
2022-10-31 16:13:22 +00:00
2024-05-22 15:26:26 +00:00
2023-04-24 12:58:26 +00:00
2022-10-31 16:13:22 +00:00
2024-04-24 14:14:31 +00:00
2024-05-20 16:57:11 +02:00
2023-12-04 14:15:39 +08:00
2025-04-23 16:09:31 +02:00
2025-02-28 16:46:29 +00:00
2025-04-23 16:09:31 +02:00