From 631977bac2c72b24662ea204c49e47a73087f5a2 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Wed, 30 Jul 2014 18:15:20 -0700 Subject: [PATCH] setup a SignedTransaction from PaymentManager --- interface/src/PaymentManager.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/interface/src/PaymentManager.cpp b/interface/src/PaymentManager.cpp index 4baf11386b..b8af43ec67 100644 --- a/interface/src/PaymentManager.cpp +++ b/interface/src/PaymentManager.cpp @@ -9,9 +9,12 @@ // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // +#include #include #include +#include "SignedWalletTransaction.h" + #include "PaymentManager.h" PaymentManager& PaymentManager::getInstance() { @@ -22,5 +25,11 @@ PaymentManager& PaymentManager::getInstance() { void PaymentManager::sendSignedPayment(qint64 satoshiAmount, const QUuid& nodeUUID, const QUuid& destinationWalletUUID) { qDebug() << "Paying" << satoshiAmount << "satoshis to" << destinationWalletUUID << "via" << nodeUUID; + // setup a signed wallet transaction + const qint64 DEFAULT_TRANSACTION_EXPIRY_SECONDS = 60; + qint64 currentTimestamp = QDateTime::currentDateTimeUtc().toTime_t(); + SignedWalletTransaction newTransaction(destinationWalletUUID, satoshiAmount, + currentTimestamp, DEFAULT_TRANSACTION_EXPIRY_SECONDS); + // send the signed transaction to the redeeming node } \ No newline at end of file