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

Pay chan wrap #20

Open
wants to merge 1 commit into
base: wrapper
Choose a base branch
from
Open

Conversation

ckeshava
Copy link

This PR introduces wrapper for Payment Channels Ledger Object.

High Level Overview of Change

Context of Change

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Refactor (non-breaking change that only restructures code)
  • Tests (You added tests for code that already exists, or your new feature included in this PR)
  • Documentation Updates
  • Release

Test Plan

I have not included any new unit tests. Since this is an internal refactor, existing test cases should suffice in validating the new changes. As part of future work, additional test cases can be added pertaining to the APIs of newly added classes.

This commit introduces implementation for the said wrapper. Occurences of PayChan keylet have been modified to indicate the new type.
One function in PayChan_test.cpp:channelAndSle(...) uses the readSLE API. It has a dependency on inOwnerDir(...) function. This can be ported only after completion of the Directory ledger object wrapper.
@@ -44,6 +44,8 @@ struct PayChan_test : public beast::unit_test::suite
return k.key;
}

// Keshava: Modify this function to use read() after keylet::ownerDir has
Copy link
Author

Choose a reason for hiding this comment

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

is it okay if I leave this comment in? I don't want to forget this particular instance

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.

1 participant