SomberNight
c017f788ac
wallet: TxMinedInfo (merged TxMinedStatus and VerifiedTxInfo)
2018-12-07 20:47:28 +01:00
SomberNight
960855d0aa
wallet history fees: only calculate fees when exporting history
...
it's expensive, and it slows down startup of large wallets a lot
2018-12-04 16:17:22 +01:00
SomberNight
e12af33626
wallet: cache more in get_tx_fee
...
closes #4879
2018-11-28 12:35:53 +01:00
SomberNight
5376d37c24
history export: include tx fee
...
closes #3504
2018-11-18 16:46:07 +01:00
SomberNight
71ac3bb305
RBF batching: some fixes
2018-11-09 17:56:42 +01:00
ThomasV
2b8d801b36
if possible, batch new transaction with existing rbf transaction
2018-11-09 16:33:29 +01:00
SomberNight
99d18a48f2
types: make some import conditional
2018-10-25 23:01:53 +02:00
SomberNight
81cc20039e
more type annotations in core lib
2018-10-22 16:41:25 +02:00
SomberNight
10a4c7a6ed
wallet.mktx: add new args: rbf, nonlocal_only
...
used on lightning branch
2018-10-19 20:48:48 +02:00
SomberNight
e3b372946a
rm aiosafe decorator. instead: log_exceptions and ignore_exceptions
2018-10-12 18:36:48 +02:00
SomberNight
02f108d927
restructure synchronizer
...
fix CLI notify cmd. fix merchant websockets.
2018-10-03 17:13:46 +02:00
SomberNight
4d43d12abf
transaction: don't convert p2pk to p2pkh address when displaying
...
also closes #4742
2018-10-01 04:58:26 +02:00
SomberNight
96b699e534
synchronizer: fix refresh bug
2018-09-19 16:35:30 +02:00
SomberNight
fef15f9c02
wallet: minor opt in get_history
2018-09-18 16:41:56 +02:00
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.
2018-09-18 03:48:14 +02:00
SomberNight
c8f82c71c9
wallet: small perf optimisation in add_transaction
2018-09-18 02:14:23 +02:00
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.
2018-09-18 01:40:34 +02:00
SomberNight
435efb47d0
wallet: lock in get_addr_io, get_tx_delta, get_tx_value
...
probably fixes #4716
2018-09-17 18:50:47 +02:00
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.
2018-09-17 03:35:25 +02:00
SomberNight
e7fa42ce3e
wallet: don't write to disk when switching servers
2018-09-12 20:25:13 +02:00
SomberNight
47a97279af
rename CustomTaskGroup to SilentTaskGroup
2018-09-12 19:24:58 +02:00
SomberNight
e829d6bbcf
wallet: put Sync and Verifier in their own TaskGroup, and that into interface.group
2018-09-11 20:24:01 +02:00
SomberNight
136df7e5ee
wallet: recreate Synchronizer and Verifier when switching servers
...
not that nice but solves races
2018-09-08 01:34:33 +02:00
SomberNight
26172686b8
restructure synchronizer/verifier <--> interface coupling
2018-09-07 19:34:28 +02:00
SomberNight
4d95452ae7
wallet: partial fix for race in on_default_server_changed
2018-09-06 14:17:44 +02:00
Janus
c89020725b
address synchronizer: fetch initial addresses from wallet
2018-09-06 14:17:43 +02:00
Janus
8f36c9167d
aiorpcx: remove callback based code, add session to Interface
2018-09-06 14:17:29 +02:00
Janus
b120584f97
aiorpcx address synchronizer
2018-09-06 14:11:36 +02:00
Janus
97ea0fc439
aiorpcx: replace network loop with asyncio and try to maintain ten sessions
2018-09-06 14:11:20 +02:00
SomberNight
1e3c3a528c
attempt at fixing wallet syncing crash
...
fix #3998
fix #4689
2018-09-05 15:22:57 +02:00
SomberNight
3089edd3a2
wallet: remove method get_num_tx
2018-08-14 21:54:11 +02:00
SomberNight
f7166e95c4
wallet: move get_depending_transactions to AddressSynchronizer
...
and resolve TODO
2018-08-14 21:53:05 +02:00
SomberNight
7307c800d7
small optimisations for history tab refresh (and related)
2018-08-03 16:12:41 +02:00
SomberNight
6b42e8448c
address_synchronizer: cache local_height in some cases
2018-08-03 16:10:36 +02:00
SomberNight
cf14d7b346
wallet: change meaning of is_used
2018-08-03 16:02:37 +02:00
SomberNight
2eb72d496f
transaction: introduce TxOutput namedtuple
2018-08-01 19:10:08 +02:00
SomberNight
a29e2218c8
wallet: introduce namedtuples TxMinedStatus and VerifiedTxInfo
2018-07-31 17:10:15 +02:00
SomberNight
41e088693d
verifier: better handle reorgs (and storage upgrade)
2018-07-31 15:51:05 +02:00
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
2018-07-19 18:16:23 +02:00
SomberNight
cc77ba523f
fix minor undefined stuff in address_synchronizer
2018-07-19 13:47:49 +02:00
ThomasV
b96b5af101
fix imports
2018-07-19 10:25:46 +02:00
ThomasV
0025073b24
move more methods from wallet to address_synchronizer
2018-07-19 10:15:22 +02:00
ThomasV
e3888752d6
separate address synchronizer from wallet
2018-07-18 11:18:57 +02:00