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

durable stream sender API #643

Merged
merged 7 commits into from
May 13, 2020
Merged

durable stream sender API #643

merged 7 commits into from
May 13, 2020

Conversation

nhartner
Copy link
Collaborator

new API /accounts/{accountId}/payments
new packet switch filter and link filter to capture and aggregate stream payments
removed TrackingStreamReceiver because it's no longer necessary now that aggregation is handled by filters
added delivered_amount/code/scale to StreamPayments table
add service to orchestrate payments using SimpleStreamSender
new LocalPacketSwitchLink that for local routing to the packet switch

Signed-off-by: nhartner nhartner@gmail.com

new API /accounts/{accountId}/payments
new packet switch filter and link filter to capture and aggregate stream payments
removed TrackingStreamReceiver because it's no longer necessary now that aggregation is handled by filters
added delivered_amount/code/scale to StreamPayments table
add service to orchestrate payments using SimpleStreamSender
new LocalPacketSwitchLink that for local routing to the packet switch

Signed-off-by: nhartner <nhartner@gmail.com>
…ill and remote-send/remote-fulfill

fix bug with decrypting stream packet on local-send/remote-fulfill
fix breaking tests due to eager initialization of all controllers

Signed-off-by: nhartner <nhartner@gmail.com>
- remove duplicate method that's a copy-paste artifact
- javadoc
- test coverage for StreamPacketUtils
- try/catch around fulfillment aggregation to ensure fulfillment is still returned

Signed-off-by: nhartner <nhartner@gmail.com>
…it is needed by fulfillment aggregation to decrypt stream packets

Signed-off-by: nhartner <nhartner@gmail.com>
…data that we want to know about.

Signed-off-by: nhartner <nhartner@gmail.com>
Signed-off-by: nhartner <nhartner@gmail.com>
@codecov
Copy link

codecov bot commented May 13, 2020

Codecov Report

Merging #643 into master will decrease coverage by 1.63%.
The diff coverage is 41.61%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #643      +/-   ##
============================================
- Coverage     67.93%   66.29%   -1.64%     
- Complexity     1321     1342      +21     
============================================
  Files           323      336      +13     
  Lines          6399     6536     +137     
  Branches        262      263       +1     
============================================
- Hits           4347     4333      -14     
- Misses         1930     2089     +159     
+ Partials        122      114       -8     
Impacted Files Coverage Δ Complexity Δ
.../interledger/connector/payments/StreamPayment.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
...problems/payments/PaymentAlreadyExistsProblem.java 0.00% <0.00%> (ø) 0.00 <0.00> (?)
...ector/server/spring/controllers/PathConstants.java 0.00% <ø> (ø) 0.00 <0.00> (ø)
...er/connector/events/FulfillmentGeneratedEvent.java 0.00% <ø> (ø) 0.00 <0.00> (ø)
...rledger/connector/payments/SendPaymentRequest.java 0.00% <0.00%> (ø) 0.00 <0.00> (?)
...interledger/connector/config/SpspClientConfig.java 0.00% <0.00%> (ø) 0.00 <0.00> (?)
...terledger/connector/config/SpspReceiverConfig.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
...nterledger/connector/links/DefaultLinkManager.java 51.61% <0.00%> (+0.81%) 5.00 <0.00> (ø)
...links/filters/OutgoingStreamPaymentLinkFilter.java 0.00% <0.00%> (ø) 0.00 <0.00> (?)
...ger/connector/localsend/LocalPacketSwitchLink.java 0.00% <0.00%> (ø) 0.00 <0.00> (?)
... and 42 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fb9c9fc...0e3a80a. Read the comment docs.

@nhartner nhartner marked this pull request as ready for review May 13, 2020 01:12
@nhartner nhartner changed the title WIP: durable stream sender API durable stream sender API May 13, 2020
Signed-off-by: nhartner <nhartner@gmail.com>
@sappenin sappenin mentioned this pull request May 13, 2020
@nhartner nhartner merged commit b897982 into master May 13, 2020
@nhartner nhartner deleted the nh/durable-stream-sender branch May 13, 2020 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants