Skip to content

Commit c198f68

Browse files
committed
[BDAP] Fix issue where bdap_link_accept was not being seen by original requestor
1 parent 84385df commit c198f68

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/bdap/rpclinking.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -395,9 +395,9 @@ static UniValue SendLinkAccept(const JSONRPCRequest& request)
395395

396396
// Create OP Script with destination address
397397
bool fStealthAddress = false;
398-
CTxDestination dest = DecodeDestination(entryAcceptor.GetLinkAddress().ToString());
398+
CTxDestination dest = DecodeDestination(entryRequestor.GetLinkAddress().ToString());
399399
if (!IsValidDestination(dest))
400-
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, strprintf("Invalid destination address %s", entryAcceptor.GetLinkAddress().ToString()));
400+
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, strprintf("Invalid destination address %s", entryRequestor.GetLinkAddress().ToString()));
401401

402402
CScript scriptDest;
403403
std::vector<uint8_t> vStealthData;
@@ -407,7 +407,7 @@ static UniValue SendLinkAccept(const JSONRPCRequest& request)
407407
std::string sError;
408408
if (0 != PrepareStealthOutput(sxAddr, scriptDest, vStealthData, sError)) {
409409
LogPrintf("%s -- PrepareStealthOutput failed. Error = %s\n", __func__, sError);
410-
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, strprintf("Invalid stealth destination address %s", entryAcceptor.GetLinkAddress().ToString()));
410+
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, strprintf("Invalid stealth destination address %s", entryRequestor.GetLinkAddress().ToString()));
411411
}
412412
fStealthAddress = true;
413413
}

0 commit comments

Comments
 (0)