"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isChainStateReady = isChainStateReady;
const THRESHOLD = 10000;
async function isChainStateReady(bee) {
const chainState = await bee.getChainState();
return chainState.chainTip > chainState.block - THRESHOLD;
}