From 83ab3151e877882286afa071046d8b56dd495938 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Sun, 17 Jul 2016 10:02:20 +0100 Subject: [PATCH] wallet2_api: zero amounts are now allowed with rct --- src/wallet/api/wallet.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/wallet/api/wallet.cpp b/src/wallet/api/wallet.cpp index 71d740ff..f8704fde 100644 --- a/src/wallet/api/wallet.cpp +++ b/src/wallet/api/wallet.cpp @@ -489,12 +489,6 @@ PendingTransaction *WalletImpl::createTransaction(const string &dst_addr, const } de.amount = amount; - if (de.amount <= 0) { - m_status = Status_Error; - m_errorString = "Invalid amount"; - break; - } - dsts.push_back(de); //std::vector ptx_vector;