ThomasV
2b8d801b36
if possible, batch new transaction with existing rbf transaction
6 years ago
SomberNight
99d18a48f2
types: make some import conditional
6 years ago
SomberNight
81cc20039e
more type annotations in core lib
6 years ago
SomberNight
10a4c7a6ed
wallet.mktx: add new args: rbf, nonlocal_only
used on lightning branch
6 years ago
SomberNight
e3b372946a
rm aiosafe decorator. instead: log_exceptions and ignore_exceptions
6 years ago
SomberNight
02f108d927
restructure synchronizer
fix CLI notify cmd. fix merchant websockets.
6 years ago
SomberNight
4d43d12abf
transaction: don't convert p2pk to p2pkh address when displaying
also closes #4742
6 years ago
SomberNight
96b699e534
synchronizer: fix refresh bug
6 years ago
SomberNight
fef15f9c02
wallet: minor opt in get_history
6 years ago
SomberNight
01246b0d97
wallet/verifier: when adding into unverified_tx, don't remove from verifier
Not needed since aee2d8e120
And was never really working I guess (race..)
Also, during normal initial history sync, it caused the verifier to request
proofs multiple times.
6 years ago
SomberNight
c8f82c71c9
wallet: small perf optimisation in add_transaction
6 years ago
SomberNight
11bf084a1f
network triggers: 'verified' notification now includes wallet
this is a performance optimisation.
measurements using a large wallet with 11k txns:
syncing XPUB for the first time takes 10 seconds. leaving window open, and
syncing same XPUB again in new window takes 30 seconds. in third window,
it takes ~50 seconds. then ~70s. presumably scaling linearly.
this is due to the history_list.update_item call being CPU-heavy.
now all of them take 10 seconds.
6 years ago
SomberNight
435efb47d0
wallet: lock in get_addr_io, get_tx_delta, get_tx_value
probably fixes #4716
6 years ago
SomberNight
aee2d8e120
verifier: fix a race during reorgs
related: 41e088693d
If our guess of a txn getting confirmed at the same height in the new chain
as it was at in the old chain is incorrect, there is a race between the
verifier and the synchronizer. If the verifier wins, the exception will cause
us to disconnect.
6 years ago
SomberNight
e7fa42ce3e
wallet: don't write to disk when switching servers
6 years ago
SomberNight
47a97279af
rename CustomTaskGroup to SilentTaskGroup
6 years ago
SomberNight
e829d6bbcf
wallet: put Sync and Verifier in their own TaskGroup, and that into interface.group
6 years ago
SomberNight
136df7e5ee
wallet: recreate Synchronizer and Verifier when switching servers
not that nice but solves races
6 years ago
SomberNight
26172686b8
restructure synchronizer/verifier <--> interface coupling
7 years ago
SomberNight
4d95452ae7
wallet: partial fix for race in on_default_server_changed
7 years ago
Janus
c89020725b
address synchronizer: fetch initial addresses from wallet
7 years ago
Janus
8f36c9167d
aiorpcx: remove callback based code, add session to Interface
7 years ago
Janus
b120584f97
aiorpcx address synchronizer
7 years ago
Janus
97ea0fc439
aiorpcx: replace network loop with asyncio and try to maintain ten sessions
7 years ago
SomberNight
1e3c3a528c
attempt at fixing wallet syncing crash
fix #3998
fix #4689
7 years ago
SomberNight
3089edd3a2
wallet: remove method get_num_tx
7 years ago
SomberNight
f7166e95c4
wallet: move get_depending_transactions to AddressSynchronizer
and resolve TODO
7 years ago
SomberNight
7307c800d7
small optimisations for history tab refresh (and related)
7 years ago
SomberNight
6b42e8448c
address_synchronizer: cache local_height in some cases
7 years ago
SomberNight
cf14d7b346
wallet: change meaning of is_used
7 years ago
SomberNight
2eb72d496f
transaction: introduce TxOutput namedtuple
7 years ago
SomberNight
a29e2218c8
wallet: introduce namedtuples TxMinedStatus and VerifiedTxInfo
7 years ago
SomberNight
41e088693d
verifier: better handle reorgs (and storage upgrade)
7 years ago
SomberNight
597295e359
address_synchronizer fixes
is_mine: wallet expects get_address_index to work
imported wallets: history did not include addr keys after creation
deterministic wallets: get_addresses() should be sorted in derivation order
7 years ago
SomberNight
cc77ba523f
fix minor undefined stuff in address_synchronizer
7 years ago
ThomasV
b96b5af101
fix imports
7 years ago
ThomasV
0025073b24
move more methods from wallet to address_synchronizer
7 years ago
ThomasV
e3888752d6
separate address synchronizer from wallet
7 years ago