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
ThomasV
39af17bc23
load wallets in daemon
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
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
0c20e737a9
fix missing import
9 years ago
ThomasV
00f298d3b1
revert e9c101f
9 years ago
ThomasV
90a2a049f4
network fix: callbacks were not called
9 years ago
ThomasV
e9c101f0c8
daemon: use daemon threads
9 years ago
ThomasV
9782734f4c
plugins: trustedcoin fixes
9 years ago
ThomasV
042f8ef832
network: cache subscription responses
9 years ago
ThomasV
43df795b1f
network: separate callbacks from unanswered_requests
9 years ago
ThomasV
d8ca881457
remove unused setting
9 years ago
ThomasV
ed2ab5e3c1
websockets: minor fix
9 years ago
ThomasV
1207ad3ba4
fix: websocket uses network object
9 years ago
ThomasV
2a29d1e5e7
fix syntax error
9 years ago
ThomasV
2934fd17be
fix websockets
9 years ago
Neil Booth
cf23127ac1
Preserve alphabetical ordering...
And 2 is the default anyway as for most western currencies.
9 years ago
ThomasV
b5a210fac3
add missing module electrum_plugins
9 years ago
ThomasV
7d760898c7
add kivy apk script
9 years ago
ThomasV
19533dda15
load wallet in ElectrumWindow constructor
9 years ago
ThomasV
f09d80459d
fix #1564
9 years ago
ThomasV
c6780cce84
add Bitso exchange rate
9 years ago
ThomasV
9ba75b80e2
increase version number
9 years ago
ThomasV
ba2c737a21
finish separation between plugins and GUIs
9 years ago
ThomasV
2c0489c809
plugins: separate GUIs using child classes
9 years ago
ThomasV
175fdbcac6
Disentangle plugins and window management; use Qt signals
9 years ago
ThomasV
b727824eed
fix #1554 : use AF_INET instead of AF_UNIX, and write port number to lockfile
9 years ago
ThomasV
34c2010e63
tweak build-wine script
9 years ago
ThomasV
7641137ecc
simplify get_daemon
9 years ago
Neil Booth
3211d752c7
Need to set p.wallet unfortunately
Fixes #1553
9 years ago
ThomasV
47e5bd653a
add a color pair for qr code
9 years ago
ThomasV
88c238dda7
fix Settings dialog in text gui
9 years ago
Neil Booth
0dcaa13d31
Show the wallet path in -v output
9 years ago
Neil Booth
e9384f15ed
Plugins manage their own wallet tracking
9 years ago
Neil Booth
53f6fb9876
Add a GC debugger
Add commented-out GC debugging step
9 years ago
Neil Booth
50755d7db3
Use weakref for tabs in QShortCut lambdas
Unfortunately we have no way to directly destroy or remove the
lambdas embedded in the QShortcut objects, so this is the
only solution to avoid leaking references. As the QShortcut
objects have the window as parent, they are destroyed with the
window so dangling refs to the destroyed window can't happen.
This and 91349d109e
fix #1549 .
9 years ago
Neil Booth
91349d109e
Add explanatory comment.
9 years ago
Neil Booth
ae4cfc9f0b
Unregister network callbacks from QT gui
Rework the callback system in QT to make this easy, and avoid
leaking window references that prevent the window from being
GC-ed on close
9 years ago
ThomasV
0d4de870a5
prepare 2.5.4 release
9 years ago
ThomasV
ae42576423
Merge branch 'master' of git://github.com/spesmilo/electrum
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
51ebdc5ce8
Remove another non-existent callback
9 years ago