|
24 | 24 | #include "primitives/transaction.h"
|
25 | 25 | #include "wallet/wallet.h"
|
26 | 26 | #include "uint256.h"
|
| 27 | +#include "utilmoneystr.h" |
27 | 28 | #include "utiltime.h"
|
28 | 29 | #include "validation.h"
|
29 | 30 |
|
@@ -265,7 +266,7 @@ static UniValue SendLinkRequest(const JSONRPCRequest& request)
|
265 | 266 | CAmount monthlyFee, oneTimeFee, depositFee;
|
266 | 267 | if (!GetBDAPFees(OP_BDAP_NEW, OP_BDAP_LINK_REQUEST, bdapType, nMonths, monthlyFee, oneTimeFee, depositFee))
|
267 | 268 | throw JSONRPCError(RPC_BDAP_FEE_UNKNOWN, strprintf("Error calculating BDAP fees."));
|
268 |
| - LogPrintf("%s -- monthlyFee %d, oneTimeFee %d, depositFee %d\n", __func__, monthlyFee, oneTimeFee, depositFee); |
| 269 | + LogPrint("bdap", "%s -- monthlyFee %d, oneTimeFee %d, depositFee %d\n", __func__, FormatMoney(monthlyFee), FormatMoney(oneTimeFee), FormatMoney(depositFee)); |
269 | 270 | // Send the transaction
|
270 | 271 | CWalletTx wtx;
|
271 | 272 | bool fUseInstantSend = false;
|
@@ -440,6 +441,7 @@ static UniValue SendLinkAccept(const JSONRPCRequest& request)
|
440 | 441 | CAmount monthlyFee, oneTimeFee, depositFee;
|
441 | 442 | if (!GetBDAPFees(OP_BDAP_NEW, OP_BDAP_LINK_ACCEPT, bdapType, nMonths, monthlyFee, oneTimeFee, depositFee))
|
442 | 443 | throw JSONRPCError(RPC_BDAP_FEE_UNKNOWN, strprintf("Error calculating BDAP fees."));
|
| 444 | + LogPrint("bdap", "%s -- monthlyFee %d, oneTimeFee %d, depositFee %d\n", __func__, FormatMoney(monthlyFee), FormatMoney(oneTimeFee), FormatMoney(depositFee)); |
443 | 445 |
|
444 | 446 | // Send the transaction
|
445 | 447 | CWalletTx wtx;
|
|
0 commit comments