fixed winning channel algo to use effective amount

This commit is contained in:
bill bittner 2017-10-16 21:25:29 -07:00
parent 3592d3257d
commit cb7f5ac453
6 changed files with 30 additions and 18 deletions

View file

@ -56,7 +56,8 @@ function getAssetByLongClaimId (fullClaimId, name) {
// if a result was found, return early with the result
if (dataValues) {
logger.debug('found a local file for this name and claimId');
return resolve(dataValues);
resolve(dataValues);
return;
}
logger.debug('no local file found for this name and claimId');
// 2. if no local claim, resolve and get the claim