From effd8005882df324a5278ea73b59cef61c3b2d62 Mon Sep 17 00:00:00 2001 From: alex Date: Fri, 1 Mar 2013 20:47:08 +0400 Subject: [PATCH] Cleanup --- src/bitcoinrpc.cpp | 37 ------------------------------------- 1 files changed, 0 insertions(+), 37 deletions(-) diff --git a/src/bitcoinrpc.cpp b/src/bitcoinrpc.cpp index 4239f3f..755ac7d 100644 --- a/src/bitcoinrpc.cpp +++ b/src/bitcoinrpc.cpp @@ -1568,43 +1568,6 @@ Value listsinceblock(const Array& params, bool fHelp) return ret; } -/* -Value gettransaction(const Array& params, bool fHelp) -{ - if (fHelp || params.size() != 1) - throw runtime_error( - "gettransaction \n" - "Get detailed information about "); - - uint256 hash; - hash.SetHex(params[0].get_str()); - - Object entry; - - if (!pwalletMain->mapWallet.count(hash)) - throw JSONRPCError(-5, "Invalid or non-wallet transaction id"); - const CWalletTx& wtx = pwalletMain->mapWallet[hash]; - - int64 nCredit = wtx.GetCredit(); - int64 nDebit = wtx.GetDebit(); - int64 nNet = nCredit - nDebit; - int64 nFee = (wtx.IsFromMe() ? wtx.GetValueOut() - nDebit : 0); - - entry.push_back(Pair("amount", ValueFromAmount(nNet - nFee))); - if (wtx.IsFromMe()) - entry.push_back(Pair("fee", ValueFromAmount(nFee))); - - WalletTxToJSON(pwalletMain->mapWallet[hash], entry); - - Array details; - ListTransactions(pwalletMain->mapWallet[hash], "*", 0, false, details); - entry.push_back(Pair("details", details)); - - return entry; -} -*/ - - Value gettransaction(const Array& params, bool fHelp) { if (fHelp || params.size() != 1) -- 1.7.1