mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-25 18:21:12 +02:00
invoices: add RegistryConfig struct
This commit is contained in:
@@ -790,9 +790,12 @@ func newMockRegistry(minDelta uint32) *mockInvoiceRegistry {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
finalCltvRejectDelta := int32(5)
|
||||
|
||||
registry := invoices.NewRegistry(cdb, finalCltvRejectDelta)
|
||||
registry := invoices.NewRegistry(
|
||||
cdb,
|
||||
&invoices.RegistryConfig{
|
||||
FinalCltvRejectDelta: 5,
|
||||
},
|
||||
)
|
||||
registry.Start()
|
||||
|
||||
return &mockInvoiceRegistry{
|
||||
|
Reference in New Issue
Block a user