|
18 | 18 |
|
19 | 19 | #include <univalue.h>
|
20 | 20 |
|
21 |
| -extern void SendBDAPTransaction(const CScript& bdapDataScript, const CScript& bdapOPScript, CWalletTx& wtxNew, const CAmount& nRegFee, const CAmount& nDepositFee, const bool fUseInstantSend); |
| 21 | +extern void SendBDAPTransaction(const CScript& bdapDataScript, const CScript& bdapOPScript, CWalletTx& wtxNew, const CAmount& nDataAmount, const CAmount& nOpAmount, const bool fUseInstantSend); |
22 | 22 | extern void SendColorTransaction(const CScript& scriptColorCoins, CWalletTx& wtxNew, const CAmount& nColorAmount, const CCoinControl* coinControl, const bool fUseInstantSend, const bool fUsePrivateSend);
|
23 | 23 |
|
24 | 24 | static constexpr bool fPrintDebug = true;
|
@@ -113,7 +113,7 @@ static UniValue AddDomainEntry(const JSONRPCRequest& request, BDAP::ObjectType b
|
113 | 113 |
|
114 | 114 | // Send the transaction
|
115 | 115 | CWalletTx wtx;
|
116 |
| - SendBDAPTransaction(scriptData, scriptPubKey, wtx, monthlyFee + oneTimeFee, depositFee, fUseInstantSend); |
| 116 | + SendBDAPTransaction(scriptData, scriptPubKey, wtx, monthlyFee, oneTimeFee + depositFee, fUseInstantSend); |
117 | 117 | txDomainEntry.txHash = wtx.GetHash();
|
118 | 118 |
|
119 | 119 | UniValue oName(UniValue::VOBJ);
|
@@ -484,7 +484,7 @@ static UniValue UpdateDomainEntry(const JSONRPCRequest& request, BDAP::ObjectTyp
|
484 | 484 |
|
485 | 485 | // Send the transaction
|
486 | 486 | CWalletTx wtx;
|
487 |
| - SendBDAPTransaction(scriptData, scriptPubKey, wtx, monthlyFee + oneTimeFee, depositFee, fUseInstantSend); |
| 487 | + SendBDAPTransaction(scriptData, scriptPubKey, wtx, monthlyFee, oneTimeFee + depositFee, fUseInstantSend); |
488 | 488 | txUpdatedEntry.txHash = wtx.GetHash();
|
489 | 489 |
|
490 | 490 | UniValue oName(UniValue::VOBJ);
|
@@ -652,7 +652,7 @@ static UniValue DeleteDomainEntry(const JSONRPCRequest& request, BDAP::ObjectTyp
|
652 | 652 | // Send the transaction
|
653 | 653 | CWalletTx wtx;
|
654 | 654 | bool fUseInstantSend = false;
|
655 |
| - SendBDAPTransaction(scriptData, scriptPubKey, wtx, monthlyFee + oneTimeFee, depositFee, fUseInstantSend); |
| 655 | + SendBDAPTransaction(scriptData, scriptPubKey, wtx, monthlyFee, oneTimeFee + depositFee, fUseInstantSend); |
656 | 656 | txDeletedEntry.txHash = wtx.GetHash();
|
657 | 657 |
|
658 | 658 | UniValue oName(UniValue::VOBJ);
|
|
0 commit comments