Skip to content

Commit

Permalink
Remove waterfalls from blockchainContext
Browse files Browse the repository at this point in the history
  • Loading branch information
Insoleet committed Jun 19, 2016
1 parent 0420f14 commit f43ed38
Show file tree
Hide file tree
Showing 3 changed files with 262 additions and 339 deletions.
2 changes: 1 addition & 1 deletion app/lib/computation/blockGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ function BlockGenerator(mainContext, prover) {
if (block.number > 0) {
try {
// Will throw an error if not enough links
yield Q.nbind(mainContext.checkHaveEnoughLinks, mainContext)(newcomer, newLinks);
yield mainContext.checkHaveEnoughLinks(newcomer, newLinks);
// This one does not throw but returns a boolean
let isOut = yield rules.HELPERS.isOver3Hops(newcomer, newLinks, realNewcomers, current, conf, dal);
if (isOut) {
Expand Down

0 comments on commit f43ed38

Please sign in to comment.