invoices: add processAMP

This commit is contained in:
Conner Fromknecht committed 2021-04-07 12:08:34 -07:00
1 parent 3fb70dd936
commit 88b72ab398
4 files changed
+127 -14

No files matched your search

+10 -8
View File
@@ -46,6 +46,16 @@ func (p *mockPayload) CustomRecords() record.CustomSet {
return p.customRecords
}
const (
testHtlcExpiry = uint32(5)
testInvoiceCltvDelta = uint32(4)
testFinalCltvRejectDelta = int32(4)
testCurrentHeight = int32(1)
)
var (
testTimeout = 5 * time.Second
@@ -55,14 +65,6 @@ var (
testInvoicePaymentHash = testInvoicePreimage.Hash()
testHtlcExpiry = uint32(5)
testInvoiceCltvDelta = uint32(4)
testFinalCltvRejectDelta = int32(4)
testCurrentHeight = int32(1)
testPrivKeyBytes, _ = hex.DecodeString(
"e126f68f7eafcc8b74f54d269fe206be715000f94dac067d1c04a8ca3b2db734")