mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 18:10:34 +01:00
17 lines
317 B
Go
17 lines
317 B
Go
|
package lnmock
|
||
|
|
||
|
import (
|
||
|
"bytes"
|
||
|
|
||
|
"github.com/lightningnetwork/lnd/lnwire"
|
||
|
)
|
||
|
|
||
|
// MockOnion returns a mock onion payload.
|
||
|
func MockOnion() [lnwire.OnionPacketSize]byte {
|
||
|
var onion [lnwire.OnionPacketSize]byte
|
||
|
onionBlob := bytes.Repeat([]byte{1}, lnwire.OnionPacketSize)
|
||
|
copy(onion[:], onionBlob)
|
||
|
|
||
|
return onion
|
||
|
}
|