lntypes/preimage: add MakePreimage initializer

This commit is contained in:
Conner Fromknecht
2019-02-19 17:05:45 -08:00
parent e8b7f1fca3
commit 2d8bc99d9e
3 changed files with 16 additions and 16 deletions

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()