Neil Booth
8785b65a1f
Remove need for coin chooser to take a wallet
9 years ago
Neil Booth
a6ea9a0c71
Simplify interface to make_tx in coin chooser
Makes the coin chooser code simpler and easier to understand.
9 years ago
Neil Booth
90dee43998
Move estimated_fee to Transaction class
It's not a function of the wallet but of the transaction
so it more naturally belongs there.
9 years ago
Neil Booth
e9061ea371
Move coin choosing logic to own class
This contains no change in logic, but is preparation for cleanup
and possible alternative strategies.
9 years ago
ThomasV
175fdbcac6
Disentangle plugins and window management; use Qt signals
9 years ago
Neil Booth
0dcaa13d31
Show the wallet path in -v output
9 years ago
ThomasV
86a0103a7f
increase min_relay_tx_fee, and make dust_threshold a function
9 years ago
Neil Booth
206e38fb7c
Make use of trigger_callback easier to understand
9 years ago
Neil Booth
8cc3b58364
Allow syncronizer to be GC-ed
Proper fix for #1525 .
Using python's GC module, I've verified that the daemon, when running,
now releases all verifiers, synchronizers and wallets - all the resources
we care about releasing.
9 years ago
Neil Booth
d612684196
Attempt at fixing issue 1525
The main problem is, I think, that the synchronizer and wallet
still exist in the daemon process, and updates to things like
TXI and TXO are made but never saved (as client exit is what
saves the wallet).
I suspect fixing the lingering objects is hard; this is a short
term fix to ensure that when internal wallet state is updated,
the wallet is written to disk, so later daemon clients pick up
the correct state.
9 years ago
ThomasV
2a3c97813d
wallet.get_max_amount method, used by qt and kivy
9 years ago
ThomasV
079cb311ec
call wallet.wait_until_synchronized before commands
9 years ago
ThomasV
052d8b236e
fix #1494
9 years ago
ThomasV
2a23aab24b
workaround #1513
9 years ago
ThomasV
26682491b2
generic restore from command line
9 years ago
Neil Booth
97568bedf5
Default to unused address for privkey sweeps
Fixes #1506
- New function wallet.get_unused_addresses
- Have wallet.get_unused_address use it
- Use it for the sweep key dialog
9 years ago
ThomasV
171363aa86
minor fix (import stat)
9 years ago
ThomasV
a9f451decd
preserve file permissions when saving wallet
9 years ago
Chris Beaven
fc141cba28
Fix KeyErrror typo
9 years ago
ThomasV
fbda9dac79
fix #1479
9 years ago
ThomasV
0fe410d7e6
restore lock in storage.write (follow up to b5e0363f
)
9 years ago
Neil Booth
b5e0363f85
Only save wallet if modified
9 years ago
Neil Booth
f710d872c7
When using labels plugin write wallet once
Poor hook coupling would cause the wallet to be written
twice unnecessarily when using the labels plugin and changing
a label
9 years ago
Neil Booth
886192aba7
Make trustedcoin.py multi-window compatible
9 years ago
Neil Booth
39615333c0
Attribute more diagnostic messages
9 years ago
Neil Booth
1171a25815
Genericize plugin handling of thread jobs
Move it to the Plugins class so all plugins get it for
free.
9 years ago
Neil Booth
89fbda30e0
Labels plugin now working for multiple windows
9 years ago
ThomasV
9d76bf6828
temporary fix wallet constructors
9 years ago
Neil Booth
7a55d02654
Fix 992c70a688
This works for ordinary wallets at least; cannot test hardware.
But after staring for ages I think it's right.
9 years ago
ThomasV
992c70a688
detect available hardware wallets before listing them in wizard
10 years ago
Neil Booth
351272f0b6
Small optimization for large wallets
Previously the verifier job would scan all transactions in
unverified_tx each time it ran.
Nothing was ever removed from this map; it would essentially
be the full set of transactions.
As the job runs about 10 times a second, for a wallet with 500 txs
this would be 5,000 useless loops a second.
This patch makes unverified_tx be simply the set of confirmed
transactions that haven't yet been verified. txs are added once
confirmed, and removed once verified. Hence it will almost always be
empty.
10 years ago
Neil Booth
478bde8afa
Access to unverified_tx no longer needs a lock
Once the proxy thread jobs are created only they access this,
and they all run under the proxy thread, so there is no contention.
10 years ago
ThomasV
578a83fa30
show error message raised during sign_transaction. see issue #1422
10 years ago
Neil Booth
b64c42b1eb
Make the verifier a thread job instead of a thread
The verifier, like the synchronizer, now runs as part of the
network proxy thread.
10 years ago
Neil Booth
01491dd1d0
Have network_proxy use ThreadJob framework
Rename WalletSynchronizer to Synchronizer so that diagnostic messages,
which are based on class name, still refer to Synchronizer.
10 years ago
ThomasV
bfae04e6f0
Improved in network callbacks:
* Pass arguments
* Don't redraw history when a tx is verified.
* Fix new tx notifications.
10 years ago
ThomasV
e0939348c3
minimize calls to estimated_fee
10 years ago
ThomasV
6232a0b76c
speedup fee computation when collecting small inputs
10 years ago
ThomasV
d69da1ef43
add/remove transaction: remove unused tx_height parameter
10 years ago
ThomasV
6b87256795
sign tx with empty scriptSig inputs
10 years ago
ThomasV
714445aba8
fix: wallet.is_used
10 years ago
ThomasV
43880d452e
dynamic fees
10 years ago
ThomasV
e9f5e6866d
check www dir on daemon start
10 years ago
ThomasV
3da148f406
use local copy of javascript files
10 years ago
ThomasV
41d9c94821
don't add bip70 suffixes
10 years ago
ThomasV
8960b16e09
more sanitization
10 years ago
ThomasV
acbd434f76
cleanup request signing
10 years ago
ThomasV
a6c65b8997
change internal format of requests
10 years ago
ThomasV
380e072842
fix bug with import_key
10 years ago
ThomasV
da55d9ed6e
payment requests: cmdline fixes
10 years ago