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
@@ -318,7 +318,7 @@ func newServer(listenAddrs []net.Addr, chanDB *channeldb.DB, cc *chainControl,
// HTLCs with the debug R-Hash immediately settled.
if cfg.DebugHTLC {
kiloCoin := btcutil.Amount(btcutil.SatoshiPerBitcoin * 1000)
s.invoices.AddDebugInvoice(kiloCoin, *invoices.DebugPre)
s.invoices.AddDebugInvoice(kiloCoin, invoices.DebugPre)
srvrLog.Debugf("Debug HTLC invoice inserted, preimage=%x, hash=%x",
invoices.DebugPre[:], invoices.DebugHash[:])
}