lntypes/preimage: add MakePreimage initializer

This commit is contained in:
Conner Fromknecht committed 2019-02-19 17:05:45 -08:00
1 parent e8b7f1fca3
commit 2d8bc99d9e
3 files changed
+16 -16

No files matched your search

+1 -1
View File
@@ -23,7 +23,7 @@ var (
// All nodes initialized with the flag active will immediately settle
// any incoming HTLC whose rHash corresponds with the debug
// preimage.
DebugPre, _ = lntypes.NewPreimage(bytes.Repeat([]byte{1}, 32))
DebugPre, _ = lntypes.MakePreimage(bytes.Repeat([]byte{1}, 32))
// DebugHash is the hash of the default preimage.
DebugHash = DebugPre.Hash()