SomberNight
01b5e3f8e0
flake8: enable more mandatory tests
3 years ago
SomberNight
9ed5b092e4
coinchooser: (trivial) add some type hints
3 years ago
SomberNight
67c6f0e1bd
wallet: make sure we don't create zero input txs
...
fixes #7207
5 years ago
Benoit Verret
f731c38293
Minor style changes
5 years ago
SomberNight
058d9ab6bb
wallet.bump_fee: add new strategy: decrease payment amounts
...
- Rename bump_fee "methods" to "strategies".
- Refactor strategies so that bump_fee can use any subset of them in any permutation.
- Adds a new strategy which decreases the payment outputs (instead of change).
5 years ago
SomberNight
eefb68c82b
transaction: change Transaction.is_segwit_input(txin) to txin.is_segwit()
5 years ago
SomberNight
154b9cab50
coinchooser: change "enable_output_value_rounding" default to True
...
see diff for rationale
6 years ago
SomberNight
5958fa8b2d
coinchooser: small clean-up re enable_output_value_rounding
6 years ago
SomberNight
04d018cd0f
test_lnpeer: some clean-up, make it easier to add "num_node>2" tests
6 years ago
SomberNight
5549f3adbe
CoinChooser: avoid NotEnoughFunds if zero buckets are sufficient
...
closes #5752
Adapted from @JeremyRand's fix
6 years ago
SomberNight
bafe8a2fff
integrate PSBT support natively. WIP
6 years ago
SomberNight
d9b5ab3086
wallet: fix bump_fee when there are only change outputs
...
closes #5718
closes #5603
6 years ago
SomberNight
94b721baa4
wallet: fix type error in _bump_fee_through_decreasing_outputs
...
fixes #5483
7 years ago
SomberNight
4f51308eab
coinchooser: clarify docs for make_tx
7 years ago
SomberNight
fd5d1dab4f
coinchooser: clear up what "fee_estimator" expects
7 years ago
SomberNight
cb69aa80f7
coinchooser: don't spend buckets with negative effective value
...
Calculate the effective value of buckets, and filter <0 out.
Note that the filtering is done on the buckets, not per-coin.
This should better preserve the user's privacy in certain cases.
When the user "sends Max", as before, all UTXOs are selected,
even if they are not economical to spend.
see #5433
7 years ago
SomberNight
e864fa5088
coinchooser: tweak heuristic scoring.
...
transactions without any change now get better scores.
transactions with really small change get worse scores.
7 years ago
SomberNight
f409b5da40
coinchooser: refactor so that penalty_func has access to change outputs
7 years ago
SomberNight
cb204dd969
coinchooser: better account for fees in penalty_func
7 years ago
SomberNight
3385a94753
logging: basics
7 years ago
SomberNight
d56917f4b1
coinchooser: improve performance significantly
...
existing code was n^2 in number of UTXOs
this is now mostly linear
(linear if shortcut is hit; otherwise in rare cases still quadratic)
tested using wallet with 800 UTXOs, most of which were needed to make payment
coinchooser.make_tx() went from 18 sec to 0.8 sec
7 years ago
SomberNight
71ac3bb305
RBF batching: some fixes
7 years ago
ThomasV
2b8d801b36
if possible, batch new transaction with existing rbf transaction
7 years ago
SomberNight
9037f25da1
kill old-style namedtuples
7 years ago
SomberNight
b7178f2d21
coinchooser: small clean-up (use TxOutput.value)
7 years ago
SomberNight
2eb72d496f
transaction: introduce TxOutput namedtuple
7 years ago
Janus
097ac144d9
file reorganization with top-level module
8 years ago
SomberNight
46fdbbbce5
change partial txn serialization format for imported addresses txins
...
offline signing with segwit WIF keys now works.
offline seed + online address signing now works.
8 years ago
Dimitris Apostolou
989c9c2b55
Fix typos
8 years ago
SomberNight
72a443b688
fix: disabling "use change addresses" did not work correctly
8 years ago
SomberNight
710eda1a56
coinchooser: make output value rounding configurable (config var, qt)
8 years ago
SomberNight
3ae1dd3e64
allow coinchooser to spend local txns
8 years ago
SomberNight
7033125186
fee ui - rounding: display info icon with tooltip. show pre-rounding values in ui.
8 years ago
SomberNight
aaf5e32207
coinchooser fee calculation now uses tx weights. more precise fee calculation for segwit and mixed-segwit txns.
8 years ago
SomberNight
2a3c41b24f
coinchooser: "privacy" policy now prefers confirmed coins. removed "priority" policy.
8 years ago
SomberNight
a2a25e4738
better segwit tx size estimation
8 years ago
Justin Turner Arthur
857eb4ac1d
Remove unused imports. Explicitly import a few deep imports.
8 years ago
Justin Turner Arthur
9a0aa9b478
Remove Python 2 support imports.
8 years ago
ThomasV
216e9403be
cleanup six (no python2 support)
8 years ago
ThomasV
e02687bcf2
python3 updates
8 years ago
ThomasV
d8e37644d3
python3 updates
8 years ago
Dmitry Sorokin
0693403358
sending fixed
8 years ago
Dmitry Sorokin
5be78950ca
py3
8 years ago
ThomasV
31cd9753aa
fix #2270 : height sorting can use negative value
9 years ago
ThomasV
43c037cc10
follow-up 0ae04a6419
10 years ago
ThomasV
0ae04a6419
fix #1703
10 years ago
ThomasV
bca0f31fca
coinchooser methods should not belong in wallet class
10 years ago
Justin Turner Arthur
46907e97c1
Remove penalty_func from CoinChooserPrivacy that is later implemented/redefined.
...
Probably a copy pasta from the development process.
10 years ago
ThomasV
305843999e
Relicensing
10 years ago
Neil Booth
97bc1b2788
Don't split small change
10 years ago