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

Global subscriptions #88

Merged
merged 7 commits into from Jan 23, 2017
Merged

Global subscriptions #88

merged 7 commits into from Jan 23, 2017

Conversation

justmoon
Copy link
Contributor

@justmoon justmoon commented Jan 23, 2017

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.

@codecov-io
Copy link

codecov-io commented Jan 23, 2017

Current coverage is 94.73% (diff: 95.67%)

Merging #88 into master will decrease coverage by 0.68%

@@             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          

Powered by Codecov. Last update c2d20da...ebb525a

const eventType = eventParams[0]
const eventAdditionalParams = eventParams.slice(1)
const accountIlpAddress = this.ledgerContext.prefix + this.ledgerContext.accountUriToName(account)
const eventGlobalParams = [eventType].concat([accountIlpAddress], eventAdditionalParams)
Copy link
Contributor

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)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good call! Will change!

@justmoon justmoon merged commit 7dd7770 into master Jan 23, 2017
@justmoon justmoon deleted the feat/st-global-subscription branch January 23, 2017 21:21
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.

None yet

3 participants