mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-04-03 17:40:38 +02:00
for testing, destAddr is just some string
This commit is contained in:
parent
15fd3085dd
commit
e1c165a373
@ -12,7 +12,6 @@ import (
|
||||
"github.com/btcsuite/btcd/btcec"
|
||||
"github.com/btcsuite/btcd/chaincfg"
|
||||
"github.com/btcsuite/btcutil"
|
||||
"github.com/btcsuite/btcutil/base58"
|
||||
)
|
||||
|
||||
const (
|
||||
@ -448,10 +447,11 @@ func (s *SphinxNode) ProcessForwardingMessage(fwdMsg *ForwardingMessage) (*proce
|
||||
case nullDest: // We're the exit node for a forwarding message.
|
||||
onionCore := lionessDecode(generateKey("pi", sharedSecret), onionMsg)
|
||||
// TODO(roasbeef): check ver and reject if not our net.
|
||||
destAddr, _, _ := base58.CheckDecode(string(onionCore[securityParameter : securityParameter*2]))
|
||||
/*if err != nil {
|
||||
/*destAddr, _, _ := base58.CheckDecode(string(onionCore[securityParameter : securityParameter*2]))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}*/
|
||||
destAddr := onionCore[securityParameter : securityParameter*2]
|
||||
msg := onionCore[securityParameter*2:]
|
||||
return &processMsgAction{
|
||||
action: ExitNode,
|
||||
|
Loading…
x
Reference in New Issue
Block a user