Fix incorrect method call for retrieving peer address in EncryptionDeclineChannel

This commit is contained in:
netkas 2025-03-04 13:41:22 -05:00
parent 3a5bf57ec1
commit 90324072b1

View file

@ -162,7 +162,7 @@
{
return $rpcRequest->produceError(StandardError::NOT_FOUND, 'The requested encryption channel was not found');
}
elseif($encryptionChannel->getReceivingPeerAddress() !== $receivingPeer->getAddress())
elseif($encryptionChannel->getReceivingPeerAddress() !== $receivingPeer->getPeerAddress())
{
return $rpcRequest->produceError(StandardError::UNAUTHORIZED, 'The requested encryption channel is not accessible');
}