Transaction splitting *seems* to be working!!!

This commit is contained in:
tom
2014-06-16 21:52:06 -04:00
committed by Thomas Winget
parent 9bfe0b9b6c
commit 62109840d6
2 changed files with 24 additions and 6 deletions
+3
View File
@@ -23,6 +23,7 @@
#include "wallet_errors.h"
#include <iostream>
#define DEFAULT_TX_SPENDABLE_AGE 10
#define WALLET_RCP_CONNECTION_TIMEOUT 200000
@@ -329,6 +330,8 @@ namespace tools
THROW_WALLET_EXCEPTION_IF(needed_money < dt.amount, error::tx_sum_overflow, dsts, fee);
}
std::cout << "Attempting to create transaction, needed money = " << needed_money << std::endl;
// randomly select inputs for transaction
// throw if requested send amount is greater than amount available to send
std::list<transfer_container::iterator> selected_transfers;