{
    "Function": "_validateOperatorStake",
    "File": "src/contracts/middleware/BLSSignatureChecker.sol",
    "Parent Contracts": [],
    "High-Level Calls": [],
    "Internal Calls": [
        "require(bool,string)",
        "require(bool,string)"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function _validateOperatorStake(IQuorumRegistry.OperatorStake memory opStake, uint32 referenceBlockNumber)\n        internal\n        pure\n    {\n        // check that the stake returned from the specified index is recent enough\n        require(opStake.updateBlockNumber <= referenceBlockNumber, \"Provided stake index is too early\");\n\n        /**\n         * check that stake is either the most recent update for the total stake (or the operator),\n         * or latest before the referenceBlockNumber\n         */\n        require(\n            opStake.nextUpdateBlockNumber == 0 || opStake.nextUpdateBlockNumber > referenceBlockNumber,\n            \"Provided stake index is not the most recent for blockNumber\"\n        );\n    }"
}