SomberNight
5b88b8667e
also grind ecdsa low R when using libsecp256k1, and fix tests
...
note: low R grinding would not have to be duplicated if we trusted the caller
to have done it already (as is the case with the classes in ecc.py), and if
we propagated the choice of "random_k" as part of the nonce_function passed
to libsecp256k1 (which is not currently done)
6 years ago
SomberNight
c0b5ebcc5d
tests: fix testcase test_restoring_wallet_with_manual_delete
6 years ago
ThomasV
06589df812
simplify add_transaction
6 years ago
SomberNight
6573e7f1f3
test_wallet_vertical: add test for manual coinjoin
6 years ago
SomberNight
8e09d429c0
psbt: "updater" must swap NON_WITNESS_UTXO for WITNESS_UTXO if txin is segwit
6 years ago
SomberNight
c077d77316
psbt: test_wallet_vertical: add asserts to avoid silent breakage of psbts we create
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
04edad9984
config: no longer singleton. it is passed to Wallet.__init__
...
The few other cases that used SimpleConfig.get_instance() now
either get passed a config instance, or they try to get a reference
to something else that has a reference to a config.
(see lnsweep, qt/qrcodewidget, qt/qrtextedit)
6 years ago
SomberNight
9eee36fe00
follow-up prev
6 years ago
SomberNight
098636c69a
fix tests
6 years ago
ThomasV
cefa4762ba
do not create multiple instances of SimpleConfig ( fix #5629 ). Add config field to wallet
6 years ago
SomberNight
aadde9be17
transaction: fix remove_signatures
...
closes #5491
7 years ago
SomberNight
94b721baa4
wallet: fix type error in _bump_fee_through_decreasing_outputs
...
fixes #5483
7 years ago
SomberNight
e0b1bbfc46
tests: new tests for bump_fee and rbf_batching
7 years ago
SomberNight
0c20fcb6b3
tests: fix existing bump_fee tests
7 years ago
SomberNight
d0a43662bd
wallet: make "increase fee" RBF logic smarter
...
There are now two internal strategies to bump the fee of a txn.
bump fee method 1: keep all inputs, keep all not is_mine outputs,
allow adding new inputs
bump fee method 2: keep all inputs, no new inputs are added,
allow decreasing and removing outputs (change is decreased first)
Method 2 is less "safe" as it might end up decreasing e.g. a payment to a merchant;
but e.g. if the user has sent "Max" previously, this is the only way to RBF.
We try method 1 first, and fail-over to method 2.
Previous versions always used method 2.
fixes #3652
7 years ago
SomberNight
e3c26d7c7a
json_db: fix remove_spent_outpoint
...
method should make sure prevout_n is str...
also wrote failing test
7 years ago
ThomasV
d74f0c0947
storage_db: fix tests, add modified flag to db class
7 years ago
SomberNight
b39c51adf7
mv "electrum seed" stuff from bitcoin.py to mnemonic.py
7 years ago
SomberNight
d820f9ad37
transaction: change default version to 2
7 years ago
ghost43
dc19cf1fa1
wallet: randomise locktime of transactions a bit. also check if stale. ( #4967 )
7 years ago
SomberNight
0657bb1b36
test_wallet_vertical: add segwit 2fa test
7 years ago
ThomasV
df59a43300
fix test
7 years ago
ThomasV
5a93bf054e
2fa segwit (from ghost43's PR)
7 years ago
SomberNight
e8a8a17217
test_wallet_vertical: offline sign with old seed
7 years ago
SomberNight
f767d41409
tests: spanish test case for mnemonic.py, and refactoring
7 years ago
SomberNight
7d114ff32d
cpfp: don't reuse address
7 years ago
SomberNight
34569d172f
wallet: make importing thousands of addr/privkeys fast
...
fixes #3101
closes #3106
closes #3113
7 years ago
SomberNight
626828e980
fix sweeping
7 years ago
SomberNight
999ae1f713
test_mnemonic: add foreign lang tests
7 years ago
Dzhelil Rufat
c9ffffc526
Remove unneccessary imports from the unit testing directory. ( #4699 )
7 years ago
SomberNight
2eb72d496f
transaction: introduce TxOutput namedtuple
7 years ago
SomberNight
aa86440866
fix #4566 : bip39 passphrases with multiple spaces
8 years ago
ThomasV
e3888752d6
separate address synchronizer from wallet
8 years ago
Janus
097ac144d9
file reorganization with top-level module
8 years ago
SomberNight
170f41f50d
tests: sweeping p2pk
8 years ago
SomberNight
6297996d12
tests: (tx signing) offline hd multisig, online address
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
SomberNight
d150f0dfc0
tests: rbf and cpfp
8 years ago
SomberNight
5d7157451f
tests: TestWalletOfflineSigning
8 years ago
SomberNight
e8b5bcf31e
fix incorrect txid for partial segwit txns
...
follow-up #4405
8 years ago
SomberNight
a0ba5a7962
change partial txn format: add header. only parse inputs and witness for partial txns.
8 years ago
SomberNight
141994ed1b
tests: TestWalletSending - also test raw_tx and wtxid
8 years ago
SomberNight
deb945d810
tests: TestWalletHistory_EvilGapLimit
8 years ago
SomberNight
7218bf1d14
tests: bip32 extended version bytes
8 years ago
SomberNight
16e4827e8c
use libsecp256k1 if available. abstract away ecc stuff. move symmetric crypto and hash functions to crypto.py
8 years ago
SomberNight
c113232e8b
tests: TestWalletHistory
...
check if wallet logic calculates correct balance regardless of the order in which we receive transactions from the server
8 years ago
SomberNight
7c7aa5828b
tests: added p2wpkh-p2sh wallet to TestWalletSending
8 years ago
SomberNight
fad25af204
fix tests for travis. follow-up 68d8919416
8 years ago