Revert "channeldb: explicitly store the FinalCltvDelta within the ContractTerm struct"
This reverts commit 8dcfeeaef5.
This commit is contained in:
1 parent
076fc71261
commit
e5f802c33c
2 files changed
+3
-24
No files matched your search
@@ -3,7 +3,6 @@ package channeldb
|
||||
import (
|
||||
"crypto/rand"
|
||||
"crypto/sha256"
|
||||
prand "math/rand"
|
||||
"reflect"
|
||||
"testing"
|
||||
"time"
|
||||
@@ -25,7 +24,6 @@ func randInvoice(value lnwire.MilliSatoshi) (*Invoice, error) {
|
||||
Terms: ContractTerm{
|
||||
PaymentPreimage: pre,
|
||||
Value: value,
|
||||
FinalCltvDelta: uint16(prand.Int31()),
|
||||
},
|
||||
}
|
||||
i.Memo = []byte("memo")
|
||||
@@ -68,7 +66,6 @@ func TestInvoiceWorkflow(t *testing.T) {
|
||||
fakeInvoice.PaymentRequest = []byte("")
|
||||
copy(fakeInvoice.Terms.PaymentPreimage[:], rev[:])
|
||||
fakeInvoice.Terms.Value = lnwire.NewMSatFromSatoshis(10000)
|
||||
fakeInvoice.Terms.FinalCltvDelta = uint16(prand.Int31())
|
||||
|
||||
// Add the invoice to the database, this should succeed as there aren't
|
||||
// any existing invoices within the database with the same payment
|
||||
|
||||
Reference in new issue
Block a user