TransactionId WalletLegacy::sendTransaction(const WalletLegacyTransfer& transfer, uint64_t fee, const std::string& extra, uint64_t mixIn, uint64_t unlockTimestamp) { std::vector<WalletLegacyTransfer> transfers; transfers.push_back(transfer); throwIfNotInitialised(); return sendTransaction(transfers, fee, extra, mixIn, unlockTimestamp); }
int main( int argc, char *argv[] ) { int status = 0; if( argc < 8 ) { printf( "\r\nNative Webpay Client Test\r\n" ); printf( "=========================\r\n" ); printf( "usage: BaseTest.exe <serverlist> <port> <clientid> <cert path> " ); printf( "<cert pass> <ca_file> <num_iters> {\"debug\" or \"no debug\"}>\r\n" ); status = 1; } else { // send a repeated number of transactions int i, numIters = atoi( argv[7] ); for ( i = 0; i < numIters; i++ ) { sendTransaction( argc, argv ); } // free the webpay client resources free_client( ); } return 0; }
TransactionId Wallet::sendTransaction(const Transfer& transfer, uint64_t fee, const std::string& extra, uint64_t mixIn, uint64_t unlockTimestamp) { std::vector<Transfer> transfers; transfers.push_back(transfer); return sendTransaction(transfers, fee, extra, mixIn, unlockTimestamp); }