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

feat(mojaloop/#3488): enable batch processing #415

Draft
wants to merge 22 commits into
base: master
Choose a base branch
from

Conversation

vijayg10
Copy link
Contributor

@vijayg10 vijayg10 commented Sep 1, 2023

No description provided.

Copy link
Member

@millerabel millerabel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some comments noted.

end note
DB --> FACADE_POSITION_FULFIL: Return current state of transfer from DB
deactivate DB
FACADE_POSITION_FULFIL <-> FACADE_POSITION_FULFIL: Validate current state (transferState is 'RECEIVED-FULFIL')\n<color #FF0000><b>Error code:</b> 2001</color> against failing transfers\nBatch is not rejected as a whole
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is Payment Condition validated using the pre-image from the fulfill? Must not move a transfer to COMMITTED unless payment condition is fulfilled.

Copy link
Member

@mdebarros mdebarros Sep 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @millerabel, great question.

It is done by the Central-Ledger Fulfil Handler, which will result in an event which will be consumed by the Central-Ledger Position Handler (i.e. by either the existing Position processor, or the changes proposed here for batch processing) to either finalise the COMMIT(i.e. commit funds to Payee) or ABORT (i.e. release funds to Payer).

@vijayg10 vijayg10 marked this pull request as ready for review September 11, 2023 08:06
Copy link
Member

@mdebarros mdebarros left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some suggested changes to address @millerabel's comment --> #415 (comment)

vijayg10 and others added 4 commits September 11, 2023 20:09
…ition-1.3.4.5-prepare-domain.plantuml

Co-authored-by: Miguel de Barros <miguel@debarros.me>
…ition-1.3.4.5-prepare-domain.plantuml

Co-authored-by: Miguel de Barros <miguel@debarros.me>
@vijayg10 vijayg10 marked this pull request as draft September 12, 2023 13:30
mdebarros
mdebarros previously approved these changes Sep 13, 2023
Copy link
Member

@mdebarros mdebarros left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 from me

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.

4 participants