Skip to content

Commit 9d68daa

Browse files
committed
fixup! sphinx_test: add test for blinded route processing
1 parent 0c036fa commit 9d68daa

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

path_test.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,8 @@ func TestOnionMessageRouteBlinding(t *testing.T) {
401401
// peelOnion is a helper closure that can be used to set up a Router
402402
// and use it to process the given onion packet.
403403
peelOnion := func(key *btcec.PrivateKey,
404-
blindingPoint *btcec.PublicKey) *ProcessedPacket {
404+
blindingPoint *btcec.PublicKey,
405+
onionPacket *OnionPacket) *ProcessedPacket {
405406

406407
r := NewRouter(&PrivKeyECDH{PrivKey: key}, NewMemoryReplayLog())
407408

@@ -469,7 +470,9 @@ func TestOnionMessageRouteBlinding(t *testing.T) {
469470
// functional option WithBlindingPoint) and we expect that the
470471
// onion message packet for this hop is processed without error,
471472
// otherwise peelOnion fails the test.
472-
processedPkt := peelOnion(priv, blindingPoint)
473+
processedPkt := peelOnion(
474+
priv, blindingPoint, currentOnionPacket,
475+
)
473476

474477
// We derive the next blinding point from the current blinding
475478
// point and the private key of the current hop. The new

0 commit comments

Comments
 (0)