diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2015-07-19 23:47:13 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2015-07-22 19:24:30 +0100 |
commit | 988fe1f843f4f95e4a9a6068d21cefbcc4ff5821 (patch) | |
tree | 53603ac51dd20d6dce15eff9029a0173900eda88 /src/wallet/wallet_rpc_server_commands_defs.h | |
parent | Merge pull request #347 (diff) | |
download | monero-988fe1f843f4f95e4a9a6068d21cefbcc4ff5821.tar.xz |
wallet: new transaction construction algorithm
It should avoid a lot of the issues sending more than half the
wallet's contents due to change.
Actual output selection is still random. Changing this would
improve the matching of transaction amounts to output sizes,
but may have non obvious effects on blockchain analysis.
Mapped to the new transfer_new command in simplewallet, and
transfer uses the existing algorithm.
To use in RPC, add "new_algorithm: true" in the transfer_split
JSON command. It is not used in the transfer command.
Diffstat (limited to 'src/wallet/wallet_rpc_server_commands_defs.h')
-rw-r--r-- | src/wallet/wallet_rpc_server_commands_defs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wallet/wallet_rpc_server_commands_defs.h b/src/wallet/wallet_rpc_server_commands_defs.h index bff2cbf93..7786ab009 100644 --- a/src/wallet/wallet_rpc_server_commands_defs.h +++ b/src/wallet/wallet_rpc_server_commands_defs.h @@ -126,6 +126,7 @@ namespace wallet_rpc uint64_t mixin; uint64_t unlock_time; std::string payment_id; + bool new_algorithm; BEGIN_KV_SERIALIZE_MAP() KV_SERIALIZE(destinations) @@ -133,6 +134,7 @@ namespace wallet_rpc KV_SERIALIZE(mixin) KV_SERIALIZE(unlock_time) KV_SERIALIZE(payment_id) + KV_SERIALIZE(new_algorithm) END_KV_SERIALIZE_MAP() }; |