multi: pass blinding point through to reconstruction

This commit is contained in:
Carla Kirk-Cohen
2023-11-06 15:45:27 -05:00
parent 7265e4c9b0
commit 4a93f4d8d3
4 changed files with 28 additions and 7 deletions

View File

@@ -6,6 +6,7 @@ import (
"io/ioutil"
"testing"
"github.com/btcsuite/btcd/btcec/v2"
sphinx "github.com/lightningnetwork/lightning-onion"
"github.com/lightningnetwork/lnd/chainntnfs"
"github.com/lightningnetwork/lnd/channeldb"
@@ -288,8 +289,8 @@ type mockOnionProcessor struct {
offeredOnionBlob []byte
}
func (o *mockOnionProcessor) ReconstructHopIterator(r io.Reader, rHash []byte) (
hop.Iterator, error) {
func (o *mockOnionProcessor) ReconstructHopIterator(r io.Reader, rHash []byte,
blindingPoint *btcec.PublicKey) (hop.Iterator, error) {
data, err := ioutil.ReadAll(r)
if err != nil {