1
0
Files
electrum/electrum
SomberNight 81772faf6c wallet: add_input_info to no longer do network requests
- wallet.add_input_info() previously had a fallback to download parent
  prev txs from the network (after a lookup in wallet.db failed).
  wallet.add_input_info() is not async, so the network request cannot
  be done cleanly there and was really just a hack.
- tx.add_info_from_wallet() calls wallet.add_input_info() on each txin,
  in which case these network requests were done sequentially, not concurrently
- the network part of wallet.add_input_info() is now split out into new method:
  txin.add_info_from_network()
- in addition to tx.add_info_from_wallet(), there is now also tx.add_info_from_network()
  - callers of old tx.add_info_from_wallet() should now called either
    - tx.add_info_from_wallet(), then tx.add_info_from_network(), preferably in that order
    - tx.add_info_from_wallet() alone is sufficient if the tx is complete,
      or typically when not in a signing context
- callers of wallet.bump_fee and wallet.dscancel are now expected to have already
  called tx.add_info_from_network(), as it cannot be done in a non-async context
  (but for the common case of all-inputs-are-ismine, bump_fee/dscancel should work regardless)
- PartialTxInput.utxo was moved to the baseclass, TxInput.utxo
2023-03-12 00:21:57 +00:00
..
2022-07-07 18:29:01 +02:00
2023-02-17 11:43:11 +00:00
2022-10-20 18:43:54 +00:00
2023-02-17 11:43:11 +00:00
2023-02-17 11:43:11 +00:00
2021-04-08 19:49:43 +02:00
2023-02-17 11:43:11 +00:00
2022-10-31 16:13:22 +00:00
2023-02-17 11:43:11 +00:00
2023-02-17 11:43:11 +00:00
2023-02-17 11:43:11 +00:00
2021-07-15 14:52:25 +00:00
2023-02-17 11:43:11 +00:00
2023-02-17 11:43:11 +00:00
2023-02-17 11:43:11 +00:00
2022-11-06 06:22:50 +00:00
2023-02-17 11:43:11 +00:00
2021-07-16 11:27:36 +02:00
2021-03-21 00:36:23 -04:00
2023-02-17 11:43:11 +00:00
2022-10-31 16:13:22 +00:00
2022-04-11 17:40:22 +02:00
2022-10-31 16:13:22 +00:00
2022-10-31 16:13:22 +00:00
2022-11-18 23:13:25 +01:00
2021-06-22 19:24:16 +02:00
2023-02-17 11:43:11 +00:00
2023-02-17 11:43:11 +00:00
2023-01-26 17:11:49 +01:00
2023-02-17 11:43:11 +00:00