Skip to content

Commit 3b4e296

Browse files
committed
cmd: update CLI tool with latest API changes
1 parent 41ff4a6 commit 3b4e296

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

cmd/main.go

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,7 @@ func parseOnionSpec(spec OnionSpec) (*sphinx.PaymentPath, *btcec.PrivateKey, err
6565
hop.Payload, err)
6666
}
6767

68-
hopPayload, err := sphinx.NewHopPayload(
69-
byte(hop.Realm), nil, payload,
70-
)
68+
hopPayload, err := sphinx.NewHopPayload(nil, payload)
7169
if err != nil {
7270
log.Fatalf("unable to make payload: %v", err)
7371
}
@@ -132,11 +130,11 @@ func main() {
132130
}
133131

134132
privkey, _ := btcec.PrivKeyFromBytes(btcec.S256(), binKey)
135-
replay_log := sphinx.NewMemoryReplayLog()
136-
s := sphinx.NewRouter(privkey, &chaincfg.TestNet3Params, replay_log)
133+
replayLog := sphinx.NewMemoryReplayLog()
134+
s := sphinx.NewRouter(privkey, &chaincfg.TestNet3Params, replayLog)
137135

138-
replay_log.Start()
139-
defer replay_log.Stop()
136+
replayLog.Start()
137+
defer replayLog.Stop()
140138

141139
var packet sphinx.OnionPacket
142140
err = packet.Decode(bytes.NewBuffer(binMsg))

0 commit comments

Comments
 (0)