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
Global subscriptions #88
Conversation
Current coverage is 94.73% (diff: 95.67%)@@ master #88 diff @@
==========================================
Files 8 11 +3
Lines 590 627 +37
Methods 66 65 -1
Messages 0 0
Branches 141 146 +5
==========================================
+ Hits 563 594 +31
- Misses 27 33 +6
Partials 0 0
|
2ccd308
to
8d4f07b
Compare
const eventType = eventParams[0] | ||
const eventAdditionalParams = eventParams.slice(1) | ||
const accountIlpAddress = this.ledgerContext.prefix + this.ledgerContext.accountUriToName(account) | ||
const eventGlobalParams = [eventType].concat([accountIlpAddress], eventAdditionalParams) |
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.
Couldn't this be const eventGlobalParams = [eventType, accountIlpAddress].concat(eventAdditionalParams)
?
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.
Good call! Will change!
8d4f07b
to
ebb525a
Compare
I need the ability for ILP Kit to subscribe to all accounts on a ledger simultaneously, so we can skip the SPSP setup stage (using the Shared Secret Protocol transport) and react to incoming payments without prior warning.