Skip to content

Commit

Permalink
fix(node): fix test
Browse files Browse the repository at this point in the history
test checking block tip were broken
  • Loading branch information
micahriggan committed Dec 21, 2018
1 parent b4f0c34 commit 06dee24
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,11 @@ export class InternalStateProvider implements CSP.IChainStateService {
}

async getLocalTip({ chain, network }) {
return BlockModel.chainTips[chain][network];
if (BlockModel.chainTips[chain] && BlockModel.chainTips[chain][network]) {
return BlockModel.chainTips[chain][network];
} else {
return null;
}
}

async getLocatorHashes(params) {
Expand Down

0 comments on commit 06dee24

Please sign in to comment.