-
Notifications
You must be signed in to change notification settings - Fork 2
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
fix: ledger/prefix asserts; getInfo().connectors #7
Conversation
sentientwaffle
commented
Sep 20, 2016
- Fix ledger/prefix assertions: The account field refers to the local source account that the transfer originated from. (see https://github.com/interledger/rfcs/blob/master/0004-ledger-plugin-interface/0004-ledger-plugin-interface.md#incomingtransfer)
- getInfo().connectors (see https://github.com/interledger/rfcs/blob/master/0004-ledger-plugin-interface/0004-ledger-plugin-interface.md#class-connectorinfo)
- Disallow transfers with amount=0
@@ -53,13 +54,13 @@ describe('Plugin transfers (universal)', function () { | |||
|
|||
this.pluginA.once('outgoing_fulfill', (transfer) => { | |||
assert.equal(transfer.id, id) | |||
assert.equal(transfer.ledger, 'test.nerd.') | |||
assert.equal(transfer.ledger, this.pluginA.prefix) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How come this is .prefix
and not .getPrefix()
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, you're right
@@ -41,31 +41,15 @@ describe('Plugin transfers (optimistic)', function () { | |||
assert.isFunction(this.pluginA.send) | |||
}) | |||
|
|||
it('should send an optimistic transfer with 0 amount', function (done) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/interledger/rfcs/blob/master/0004-ledger-plugin-interface/0004-ledger-plugin-interface.md#ledger-transfers says that "all plugins MUST implement 0-amount transfers." It does seem impractical for now though. maybe skip this instead of deleting it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
0-amount transfers are going to be removed in favor of sendMessage()
(see interledger/rfcs#96).
LGTM |
* Fix ledger/prefix assertions: The account field refers to the local source account that the transfer originated from. (see https://github.com/interledger/rfcs/blob/master/0004-ledger-plugin-interface/0004-ledger-plugin-interface.md#incomingtransfer) * getInfo().connectors (see https://github.com/interledger/rfcs/blob/master/0004-ledger-plugin-interface/0004-ledger-plugin-interface.md#class-connectorinfo) * Disallow transfers with amount=0
f3fc8a6
to
3020817
Compare