Optional OP_RETURN in z_sendmany

This commit is contained in:
Duke
2023-03-24 10:22:31 -07:00
parent 63ad87f69b
commit 8126e706c6
3 changed files with 23 additions and 5 deletions

View File

@@ -62,7 +62,9 @@ public:
std::vector<SendManyRecipient> zOutputs,
int minDepth,
CAmount fee = ASYNC_RPC_OPERATION_DEFAULT_MINERS_FEE,
UniValue contextInfo = NullUniValue);
UniValue contextInfo = NullUniValue,
CScript opret = CScript()
);
virtual ~AsyncRPCOperation_sendmany();
// We don't want to be copied or moved around
@@ -92,6 +94,7 @@ private:
CTxDestination fromtaddr_;
PaymentAddress frompaymentaddress_;
SpendingKey spendingkey_;
CScript opret_ = CScript();
uint256 joinSplitPubKey_;
unsigned char joinSplitPrivKey_[crypto_sign_SECRETKEYBYTES];