wallet: do not leak owned amounts to the daemon unless --trusted-daemon

This will be slower, though more private.

New trusted_daemon parameter to the matching RPC call, false by default.
This commit is contained in:
moneromooo-monero 2016-03-26 23:22:57 +00:00
parent 12146daeed
commit 0be6e08dd0
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
5 changed files with 11 additions and 8 deletions

View file

@ -347,7 +347,7 @@ namespace tools
try
{
std::vector<wallet2::pending_tx> ptx_vector = m_wallet.create_unmixable_sweep_transactions();
std::vector<wallet2::pending_tx> ptx_vector = m_wallet.create_unmixable_sweep_transactions(req.trusted_daemon);
m_wallet.commit_tx(ptx_vector);