Merge pull request #1497 from hackerrdave/invoiceregistry-comment-updates

update comment for AddInvoice
This commit is contained in:
Olaoluwa Osuntokun 2018-07-03 22:05:24 -05:00 committed by GitHub
commit 9815142922
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -55,10 +55,10 @@ func newInvoiceRegistry(cdb *channeldb.DB) *invoiceRegistry {
} }
} }
// addDebugInvoice adds a debug invoice for the specified amount, identified // AddDebugInvoice adds a debug invoice for the specified amount, identified
// by the passed preimage. Once this invoice is added, subsystems within the // by the passed preimage. Once this invoice is added, subsystems within the
// daemon add/forward HTLCs are able to obtain the proper preimage required // daemon add/forward HTLCs that are able to obtain the proper preimage
// for redemption in the case that we're the final destination. // required for redemption in the case that we're the final destination.
func (i *invoiceRegistry) AddDebugInvoice(amt btcutil.Amount, preimage chainhash.Hash) { func (i *invoiceRegistry) AddDebugInvoice(amt btcutil.Amount, preimage chainhash.Hash) {
paymentHash := chainhash.Hash(sha256.Sum256(preimage[:])) paymentHash := chainhash.Hash(sha256.Sum256(preimage[:]))