SomberNight
0b0bc89083
fix tests
6 years ago
SomberNight
c02cc9bb3b
persist recent peers. implement dns seed bootstrapping.
...
dns seeds are currently disabled though, as they always seem to return mainnet nodes.
6 years ago
SomberNight
bc06ded4b9
persist nodes in channel_db on disk
6 years ago
SomberNight
5a05a92b3d
move bolt-04 onion stuff to its own module
6 years ago
Janus
9247da5203
ln: share more code with control path for failed htlc, verify ctx'es
6 years ago
Janus
3c06b3cee1
ln: use START_INDEX instead of 2**48-1
6 years ago
Janus
a841fa3602
ln: save htlc signatures
6 years ago
SomberNight
d0798c336f
channeldb: allow injecting trusted edges
6 years ago
SomberNight
a5b44d25b0
persist channel db on disk. verify channel gossip sigs.
6 years ago
Janus
9853cc6f31
ln: do not use mSAT accuracy for commitment fees
6 years ago
Janus
66e7b4d250
ln: fundee must commit to fee first
6 years ago
Janus
d740475e7a
move channel_state into HTLCStateMachine
6 years ago
Janus
35adc3231b
lightning: fixup after rebasing on restructured master
6 years ago
SomberNight
1c75d939d9
commands: change API of "make_seed" and "create" commands
...
instead of "segwit" boolean, take a "seed_type" optional arg
default seed_type to "segwit"
previously these commands created legacy seeds by defalt
6 years ago
SomberNight
aadde9be17
transaction: fix remove_signatures
...
closes #5491
7 years ago
SomberNight
cc9ad3ae90
wallet: fix restore_wallet_from_text edge case
...
closes #5490
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
SomberNight
9e21b76c91
wallet: stricter validation in export_private_key
...
fixes #5422
7 years ago
SomberNight
53d189fc7a
storage: fix some madness about get_data_ref() and put() interacting badly
...
previously load_transactions() had to be called before upgrade();
now we reverse this order.
to reproduce/illustrate issue, before this commit:
try running convert_version_17 and convert_version_18
(e.g. see testcase test_upgrade_from_client_2_9_3_old_seeded_with_realistic_history)
and then in qt console:
>> wallet.storage.db.get_data_ref('spent_outpoints') == wallet.storage.db.spent_outpoints
False
>> wallet.storage.db.get_data_ref('verified_tx3') == wallet.storage.db.verified_tx
False
7 years ago
SomberNight
30ffb3d4dc
util: add function "chunks"
...
taken from ElectrumX
67111a3c4c/electrumx/lib/util.py (L149)
7 years ago
SomberNight
6ad24ea3b3
keystore/transactions: fix overflow of derivation path indices
...
fixes #5366
7 years ago
SomberNight
fd58a0cb20
json_db: enforce order of 'load_transactions' and 'upgrade'
...
fixes #5331
7 years ago
SomberNight
808239bbcc
wallet: fix deleting address from Imported_Wallet
...
closes #4481
7 years ago
SomberNight
07ec0d41d5
fix prev
...
unintentionally committed
7 years ago
SomberNight
fd5b1acdc8
commands: fix encrypt/decrypt
...
based on Electron-Cash/Electron-Cash@62aa08a0ffde227ababe58a14285b588eab4fd15
7 years ago
SomberNight
7584cebbe3
bitcoin: stricter check on WIF for compressed pubkeys
...
fixes #5290
7 years ago
SomberNight
d4a2e9634f
bitcoin: disallow importing/sweeping segwit scripts with uncompressed pubkey
...
fixes #4638
7 years ago
SomberNight
bca6ad5241
verifier: fix logic bug. after reorg, some verifs were not undone
...
after a reorg, in a many fork/orphan chains scenario,
we would sometimes not undo SPV for enough blocks
functions in blockchain.py somewhat based on kyuupichan/bitcoinX@5126bd15ef0c9ba36e17a455513452ebed7b2328
7 years ago
SomberNight
9a71120090
blockchain: fix bug when swapping chain with parent
...
chain might become the parent of some of its former siblings
7 years ago
SomberNight
eb04551f9a
accept base43-encoded tx in Qt "Load transaction"
...
When encoding transactions as QR codes, we encode the tx bytes as base43
first. This makes it easier to load a transaction if the user manually
decodes the QR code.
7 years ago
SomberNight
94c4cb44d7
fix storage upgrade tests: "fixture 'func' not found"
7 years ago
SomberNight
9ecb504739
storage: fix convert_version_17 and add new test case
...
follow-up 121b8048b0
7 years ago
SomberNight
f85b8f349d
wallet: fix bug in restore_wallet_from_text, and write tests
7 years ago
ThomasV
d74f0c0947
storage_db: fix tests, add modified flag to db class
7 years ago
ThomasV
dbca0a0e83
fix tests for json storage
7 years ago
ThomasV
7f2083f667
separate storage and database (JsonDB)
7 years ago
SomberNight
a2047e2c68
tests: base43/base58 encoding/decoding
7 years ago
SomberNight
11733d6bc2
wizard: normalize bip32 derivation path
...
so that what gets put in storage is "canonical"
(from now on... we could storage upgrade existing wallets
but it's not critical)
7 years ago
SomberNight
85a7aa291e
bip32: refactor whole module. clean-up.
7 years ago
SomberNight
b39c51adf7
mv "electrum seed" stuff from bitcoin.py to mnemonic.py
7 years ago
SomberNight
e7f38467d7
move opcodes to bitcoin.py
7 years ago
SomberNight
38ab7ee554
network: catch untrusted exceptions from server in public methods
...
and re-raise a wrapper exception (that retains the original exc in a field)
closes #5111
7 years ago
SomberNight
d820f9ad37
transaction: change default version to 2
7 years ago
SomberNight
5fc715cdee
commands: add convert_xkey for converting between {x,y,z}|{pub,prv}
7 years ago
ghost43
dc19cf1fa1
wallet: randomise locktime of transactions a bit. also check if stale. ( #4967 )
7 years ago
SomberNight
0c9a03ac54
keystore: revert KDF change from #4838
...
making the KDF expensive is blocked on #4909
7 years ago