Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a proper payments database #885

Merged
merged 93 commits into from Apr 16, 2019
Merged
Changes from 1 commit
Commits
Show all changes
93 commits
Select commit Hold shift + click to select a range
cb486df
add a payment identifier
pm47 Mar 7, 2019
34a8ff1
add a payment identifier
pm47 Mar 7, 2019
8fc4f13
Merge branch 'payments-db-extended' into payments-db
araspitzu Mar 29, 2019
61774a3
Update websocket mocks to use the Id
araspitzu Mar 29, 2019
deb8c50
Use hardcoded uuid in auditDB test
araspitzu Mar 29, 2019
46d749a
Remove InvalidPaymentHash channel exception
araspitzu Mar 29, 2019
5b38adb
Use correct serializer in test (and avoid nasty reflection access war…
araspitzu Mar 29, 2019
ec01062
Merge branch 'extended-api-pm' into payments-db
araspitzu Mar 29, 2019
29865e3
Remove unused 'close' from paymentsDb
araspitzu Apr 1, 2019
b40611d
Introduce sent_payments in PaymentDB, bump db version
araspitzu Apr 1, 2019
c2052ab
Add query functions for payment DB sentPaymentById/sentPaymentByHash
araspitzu Apr 1, 2019
4919756
Update version of db with getVersion
araspitzu Apr 1, 2019
2aeaa02
Insert or update behavior on payment_db.addSentPayment
araspitzu Apr 1, 2019
18b8d72
Add status to Outgoing payments in paymentDB
araspitzu Apr 1, 2019
dc41eff
Bring paymentDb to PaymentInitiator/PaymentLifecycle
araspitzu Apr 1, 2019
9d2b85b
Wire payment lifecycle events to paymentDB updates
araspitzu Apr 1, 2019
5fd7db5
Return the UUID of the ongoing payment in /send API
araspitzu Apr 1, 2019
3bb1482
Add api to query payments by ID
araspitzu Apr 1, 2019
a52353d
Support one option param for /audit API
araspitzu Apr 1, 2019
76891c4
Adjust integration test to deal with the UUID from the payment initiator
araspitzu Apr 2, 2019
a964f17
Merge branch 'master' into payments-db
araspitzu Apr 3, 2019
b43ec23
Revert "Remove 'fallbackAddress' from /receive API"
araspitzu Apr 3, 2019
2bce7a6
Use setVersion for db version migration, add test.
araspitzu Apr 3, 2019
f722a34
optimized imports, added license headers
pm47 Apr 4, 2019
0746396
Add test for paymentLifecycle and paymentDB
araspitzu Apr 4, 2019
e834e1b
Merge remote-tracking branch 'origin/payments-db' into payments-db
araspitzu Apr 4, 2019
b194b8e
Extract future-option directive into its own file
araspitzu Apr 4, 2019
8aea43f
Remove default UUID for CMD_ADD_HTLC, renaming
araspitzu Apr 4, 2019
8856010
Move OutgoingPaymentStatus in companion object
araspitzu Apr 4, 2019
5cf3da4
Add createdAt timestamp to OutgoingPayment
araspitzu Apr 4, 2019
9b59b7e
Renaming in PaymentsDb
araspitzu Apr 4, 2019
bd0621e
Fix compilation errors
araspitzu Apr 4, 2019
489e75a
Fix test in PaymentLifeCycleSpec
araspitzu Apr 4, 2019
f2d41ec
Expose /paymentinfo by paymentHash
araspitzu Apr 5, 2019
8e0255e
Refactor inMemory Sqlite connection in database tests
araspitzu Apr 5, 2019
9134a66
Add id column to audit.sent table, add test for db migration
araspitzu Apr 5, 2019
d05a48c
Pass NodeParams to actor props, complete javadoc for OutgoingPayment
araspitzu Apr 5, 2019
1a26906
Renaming, API and object
araspitzu Apr 5, 2019
e0f9816
Improve flaky behavior of PaymentLifecycleSpec
araspitzu Apr 5, 2019
77e1934
Update paymentDB statuses even when the lifecycle is missing.
araspitzu Apr 5, 2019
69deefe
Add invoices to payment DB
araspitzu Apr 5, 2019
6aff3ba
Add license header to ExtraDirective.scala
araspitzu Apr 9, 2019
cfdfd70
Formatting
araspitzu Apr 9, 2019
9e71507
Respond with HTTP 404 if the corresponding invoice/paymentHash was no…
araspitzu Apr 9, 2019
c83e5e2
Merge branch 'payments-db' into payment-db-with-invoices
araspitzu Apr 9, 2019
ab68bdb
Add invoices data to received_payments table
araspitzu Apr 9, 2019
8a7e39e
WIP integrating payment db in local payment handler
araspitzu Apr 9, 2019
c1ed5b9
WIP integrating payment db in local payment handler /2
araspitzu Apr 9, 2019
7c50989
Add /listinvoice and /getinvoice internal APIs
araspitzu Apr 9, 2019
c9c872e
Merge branch 'master' into payment-db-with-invoices
araspitzu Apr 9, 2019
048f356
Left-pad numeric bolt11 tagged fields to have a number of bits multip…
araspitzu Apr 9, 2019
f996132
Merge branch 'bolt11-tagged-field-padding' into payment-db-with-invoices
araspitzu Apr 10, 2019
c4d6969
WIP do not filter on expire_at when retrieving invoice+preimage
araspitzu Apr 10, 2019
c077f66
Merge branch 'master' into payments-db
araspitzu Apr 10, 2019
1514f88
Renaming, update test
araspitzu Apr 10, 2019
ea75fcb
Fix expire_at comparison, remove unused messages
araspitzu Apr 10, 2019
b33f027
Remove redundant nodeId parameter from payment life cycle
araspitzu Apr 10, 2019
29bd9e4
Use actual timestamp during test to simulate invoice expiry
araspitzu Apr 11, 2019
bcd0551
Use custom keymanager in PaymentLifecycleSpec
araspitzu Apr 11, 2019
5f56cb9
Do not migrate existing "payments" table in PaymentDB
araspitzu Apr 11, 2019
35bebab
Use VARCHAR to store payment requests
araspitzu Apr 11, 2019
7765492
Consume PaymentResult event from payment life cycle during Integratio…
araspitzu Apr 11, 2019
f48fa44
Add invoices API
araspitzu Apr 11, 2019
eebb691
Fix service endpoint concatenation, print BOLT11 serialized invoice i…
araspitzu Apr 11, 2019
6e61248
Add db test for [from, to] params in listInvoice
araspitzu Apr 11, 2019
acfb7eb
Renaming, remove CheckPayment message, update JsonSerializerSpec
araspitzu Apr 11, 2019
31db633
GUI: consume UUID reply from payment initiator
araspitzu Apr 12, 2019
22d328c
API: reply with JSON encoded response if the queried element wasn't f…
araspitzu Apr 12, 2019
c5a2ef2
Update eclair-cli help message to include new APIs
araspitzu Apr 12, 2019
8df955a
PaymentLifecycleSpec: use TestFSRef and wait until state transition b…
araspitzu Apr 12, 2019
13bb49e
Renaming, reorg of 'successfulAt/failedAt' parameters on outgoing pay…
araspitzu Apr 12, 2019
0afa57c
Return a payment request object in /receive
araspitzu Apr 12, 2019
5710e9c
renamed PaymentDb methods
pm47 Apr 12, 2019
dde1ec3
Merge remote-tracking branch 'origin/payments-db' into payments-db
araspitzu Apr 12, 2019
6fa4c22
Renaming, remove unnecessary "lazy"
araspitzu Apr 12, 2019
3de8921
Factor out common named parameters
araspitzu Apr 12, 2019
c51a09d
Rename to 'getPendingRequestAndPreimage'
araspitzu Apr 12, 2019
2ec7e29
! remove limit of pending payment requests !
araspitzu Apr 12, 2019
42ecd6b
Use seconds in timestamp field for payment events
araspitzu Apr 12, 2019
7a815ec
getRequestAndPreimage->getPendingPaymentRequestAndPreimage
pm47 Apr 12, 2019
d662ee3
removed migration, changed column types/ordering
pm47 Apr 12, 2019
df79033
Expose from/to filters in listPendingInvoices()
araspitzu Apr 12, 2019
2604800
Check condition before expecting the state transition in PaymentLifec…
araspitzu Apr 12, 2019
3e8b514
Avoid printing "null" fields when serializing an invoice to json
araspitzu Apr 15, 2019
31a1fa1
Output all outgoing payments related to a payment hash in /sentinfo
araspitzu Apr 15, 2019
6135782
Store preimage for successful sent payments, don't store successfulAt…
araspitzu Apr 15, 2019
64c94d7
Update javadoc for OutgoingPayment
araspitzu Apr 15, 2019
03125be
Rename API enpoints, reorg endpoint definitions in Service
araspitzu Apr 15, 2019
10f5aa2
Merge branch 'master' into payments-db
araspitzu Apr 15, 2019
1db4399
Finish merging master
araspitzu Apr 15, 2019
6f8fdd0
More elegant Try/Match in LocalPaymentHandler
araspitzu Apr 15, 2019
f7fc22c
Add index on paymentDb.sent_payments.payment_hash
araspitzu Apr 16, 2019
153b62c
Order results in descending order in listPaymentRequest
araspitzu Apr 16, 2019
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

Remove unused 'close' from paymentsDb

  • Loading branch information...
araspitzu committed Apr 1, 2019
commit 29865e367d9ffe00b0f4415e5ef8b0ea2bbe3224
@@ -41,8 +41,6 @@ trait PaymentsDb {

def listPayments(): Seq[Payment]

def close: Unit

}

/**
@@ -80,5 +80,4 @@ class SqlitePaymentsDb(sqlite: Connection) extends PaymentsDb with Logging {
}
}

override def close(): Unit = sqlite.close()
}
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.