bytes.Equal instead of compare

This commit is contained in:
Jesse de Wit
2022-11-17 17:01:31 +01:00
parent 3d6d5bfb9d
commit 5cfcd41f32

View File

@@ -51,7 +51,7 @@ func intercept(reqPaymentHash []byte, reqOutgoingAmountMsat uint64, reqOutgoingE
if paymentSecret != nil {
if channelPoint == nil {
if bytes.Compare(paymentHash, reqPaymentHash) == 0 {
if bytes.Equal(paymentHash, reqPaymentHash) {
channelPoint, err = openChannel(client, reqPaymentHash, destination, incomingAmountMsat)
log.Printf("openChannel(%x, %v) err: %v", destination, incomingAmountMsat, err)
if err != nil {