diff --git a/packages/bitcore-node/src/providers/chain-state/internal/internal.ts b/packages/bitcore-node/src/providers/chain-state/internal/internal.ts index 2a374f009f5..c64ef8837fe 100644 --- a/packages/bitcore-node/src/providers/chain-state/internal/internal.ts +++ b/packages/bitcore-node/src/providers/chain-state/internal/internal.ts @@ -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) {