ThomasV
acbe67fd1f
separation between RPC and non-RPC commands.
9 years ago
Neil Booth
72fdf0cd21
Better error when opening a non-wallet file
Also window modality fixes for __init__.py
9 years ago
Neil Booth
e1c0298fc2
Write the wallet less often
This should speed up synchronization / restoration of large wallets.
Wallets are written only when they switch to up_to_date state, or
when stop_threads() is called when closing the daemon, or when
a command line command finishes.
9 years ago
Neil Booth
0a3d74de8f
Avoid index-out-of-range
Also add sanity assertion
9 years ago
Neil Booth
25a2ceda23
Fix copyright.
9 years ago
Neil Booth
5c3a6db445
Fix negative amounts assertion
Change amounts could be negative after deducting the cost of the extra
change output; floor them at zero. Move the assertion to the main
code. Simplify rounding logic.
9 years ago
ThomasV
3bed2e3106
don't wait for wallet sync in rpc commands; instead, show wallet status in status command
9 years ago
ThomasV
026f9312a7
fix more type errors caused by jsonrpc (parsing floats and transactions)
9 years ago
ThomasV
b3ef2249b5
add more features to settings dialog
9 years ago
ThomasV
30ace570d3
kivy: choice_dialog and load_wallet_by_name
9 years ago
ThomasV
9d3162b1a1
simplify get_label
9 years ago
ThomasV
6ad3f47640
don't rewrite index.html everytime
9 years ago
ThomasV
679efe2a66
don't use floats because of rounding errors
9 years ago
Neil Booth
cead9cd7c6
Ensure zeroes is always non-empty.
9 years ago
ThomasV
f30149ad49
fix #1579
9 years ago
Kirill Fomichev
d344ee0474
Small blockchain changes
9 years ago
Neil Booth
06eb3142c4
Oldest First
9 years ago
Neil Booth
52fc739052
Update default chooser name too.
9 years ago
Neil Booth
1c528af433
Description tweaks.
Mention loss of priority, and rename Classic to Oldest First.
9 years ago
Neil Booth
36aaad392d
Fix docstring display.
9 years ago
Neil Booth
2763b0feea
Improved change handling for Privacy chooser
Breaks up large change in such a way as to make it
unclear what the real send might be.
Fixes #1203
9 years ago
Neil Booth
ea49e8dc96
Remove unneeded buckets for Privacy coin chooser
Commonize the code with the classic chooser and simplify.
9 years ago
ThomasV
0cef063ee2
add payment requests to kivy
9 years ago
ThomasV
2a1fbf01fe
simplify blockchain.py
9 years ago
ThomasV
81f070c83b
fix bug in get_target
9 years ago
ThomasV
b7cef8dd58
follow up to 74a9e2296c
9 years ago
Neil Booth
75b3ecee49
Add coin chooser to try and minimize loss of privacy.
9 years ago
ThomasV
de964f4033
plugins: on_close method
9 years ago
ThomasV
6770834d06
daemon: use available port
9 years ago
ThomasV
becfe13df2
decrease daemon timeout
9 years ago
ThomasV
9ec4cbeed1
fix issue #1572
9 years ago
Neil Booth
50dcee69d0
Clean up imports in daemon.py
9 years ago
Neil Booth
03b4868bf8
Handle JSON RPC server timeouts differently
Prior method was causing issues on Python 2.7.10 on DragonFlyBSD at
least.
9 years ago
ThomasV
74a9e2296c
separate Network and Plugins
9 years ago
ThomasV
deefd74c37
labels sync for kivy
9 years ago
ThomasV
afae9a097e
add php example
9 years ago
ThomasV
95393656aa
rename command: notify
9 years ago
Neil Booth
3eca419ef3
Fix typo.
One character makes all the difference.
9 years ago
ThomasV
9b5b9849d7
add watchaddress command
9 years ago
ThomasV
3c11c63289
fix daemon: don't oad wallet if there is a gui
9 years ago
ThomasV
4682d95a76
merge jsonrpc gui and daemon
9 years ago
Neil Booth
e302dbc71c
Move debug output to end of function.
9 years ago
Neil Booth
9a6dcf7b1e
Use bucketing to choose coins
Bucketing is generalization of coin chooser logic that makes it easy
to implement other algorithms.
- Put core coin chooser functionality in base class.
- Specialize derived class to implement classic electrum algorithm of
oldest coins first. One bucket per output.
No intended change in behaviour.
Coin chooser now sorts the coins as it wants; remove redundant sorting
from get_spendable_coins().
9 years ago
Neil Booth
93bb09230c
Track tx size directly; calculate fees from that
This has several advantages. Fee calculation is now very fast,
as we don't need to keep reserializing the tx. Another is that
we can reason about the fees after adding a change output without
having to add it, recalculate the tx fee, and remove it again.
9 years ago
Neil Booth
a4dd5acc48
Prepare to calculate tx fee given a tx size
9 years ago
Neil Booth
d97106f17d
Don't keep dust change in any case
9 years ago
Neil Booth
530dc16ed2
Remove unused import
9 years ago
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