danicoin/src/wallet
moneromooo-monero 0ad87db01f
wallet: try to save large outputs when using an unneeded second input
When a single input is enough to satisfy a transfer, the code would
previously try to add a second input, to match the "canonical" makeup
of a transaction with two inputs and two outputs. This would cause
wallets to slowly merge outputs till all the monero ends up in a
single output, which causes trouble when making two transactions
one after the other, since change is locked for 10 blocks, and an
increasing portion of the remaining balance would end up locked on
each transaction.

There are two new settings (min-output-count and min-output-value)
which can control when to stop adding such unneeded second outputs.
The idea is that small "dust" outputs will still get added, but
larger ones will not.

Enable with, eg:

set min-output-count 10
set min-output-value 30

to avoid using an unneeded second output of 30 monero or more, if
there would be less than 10 such outputs left.

This does not invalidate any other reason why such outputs would
be used (ie, when they're really needed to satisfy a transfer, or
when randomly picked in the normal course of selection). This may
be improved in the future.
2017-03-24 21:04:08 +00:00
..
api Wallet API: add hard fork info functions 2017-03-24 09:59:26 +01:00
CMakeLists.txt update copyright year, fix occasional lack of newline at line end 2017-02-21 19:38:18 +02:00
node_rpc_proxy.cpp wallet: increase node_rpc_proxy timeout to match wallet2 2017-03-18 23:06:06 +00:00
node_rpc_proxy.h node_rpc_proxy: allow caching daemon RPC version 2017-02-27 17:57:18 +00:00
wallet2.cpp wallet: try to save large outputs when using an unneeded second input 2017-03-24 21:04:08 +00:00
wallet2.h wallet: try to save large outputs when using an unneeded second input 2017-03-24 21:04:08 +00:00
wallet2_api.h Wallet API: add hard fork info functions 2017-03-24 09:59:26 +01:00
wallet_args.cpp Adds a config file option to the wallet 2017-03-12 21:45:59 +01:00
wallet_args.h wallet: fix --log-file not working 2017-02-28 09:07:56 +00:00
wallet_errors.h update copyright year, fix occasional lack of newline at line end 2017-02-21 19:38:18 +02:00
wallet_rpc_server.cpp wallet rpc: enable solo mining 2017-03-20 09:47:16 +09:00
wallet_rpc_server.h wallet rpc: enable solo mining 2017-03-20 09:47:16 +09:00
wallet_rpc_server_commands_defs.h wallet rpc: enable solo mining 2017-03-20 09:47:16 +09:00
wallet_rpc_server_error_codes.h update copyright year, fix occasional lack of newline at line end 2017-02-21 19:38:18 +02:00