You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After the devnet48 spork, we updated one of the Access nodes to use compare mode for script execution and get accounts. The following error is logged frequently:
[Error Code: 1057] operation (GetBlockAtHeight) is not supported in this environment
Full log line:
{"level":"debug","node_role":"access","node_id":"275db91e9217c9b3279866a262de746d2217d5598d6248c9278aa4e2f6fefeef","block_id":"2e95f2bcc8bba89e7c9ad40e18f3c79871f183eebf74f38f2ba1b083af79c61b","script":"import DelegatorManager from 0xe45c64ecfe31e465\nimport LiquidStakingConfig from 0xe45c64ecfe31e465\nimport FlowIDTableStaking from 0x9eca2b38b18b5dfe\nimport FlowEpoch from 0x9eca2b38b18b5dfe\n\npub fun main(): AnyStruct {\n return {\n \"StakingEnable\": FlowIDTableStaking.stakingEnabled(),\n \"QuoteEpoch\": DelegatorManager.quoteEpochCounter,\n \"FlowEpoch\": FlowEpoch.currentEpochCounter,\n \"DelegatorLength\": DelegatorManager.getDelegatorsLength(),\n \"UnprocessedUnstakeRequests\": DelegatorManager.requestedToUnstake,\n \"WindowSizeBeforeStakingEnd\": LiquidStakingConfig.windowSizeBeforeStakingEnd,\n \"CurrentView\": getCurrentBlock().view,\n \"DefaultNodeID\": DelegatorManager.defaultNodeIDToStake,\n \"DefaultDelegatorCommitted\": DelegatorManager.getApprovedDelegatorInfoByNodeID(nodeID: DelegatorManager.defaultNodeIDToStake).tokensCommitted,\n \"TotalCommitted\": DelegatorManager.borrowCurrentQuoteEpochSnapshot().allDelegatorCommitted\n }\n}","script_hash":"5e18fa11e36205fb4df2ce6241f4854c","execution_node_result":"7b2276616c7565223a5b7b226b6579223a7b2276616c7565223a2251756f746545706f6368222c2274797065223a22537472696e67227d2c2276616c7565223a7b2276616c7565223a22383035222c2274797065223a2255496e743634227d7d2c7b226b6579223a7b2276616c7565223a2244656661756c744e6f64654944222c2274797065223a22537472696e67227d2c2276616c7565223a7b2276616c7565223a2234323635366536613631366436393665323035363631366532303464363537343635373230303236643661373236326338643930653731306263656263336333222c2274797065223a22537472696e67227d7d2c7b226b6579223a7b2276616c7565223a2257696e646f7753697a654265666f72655374616b696e67456e64222c2274797065223a22537472696e67227d2c2276616c7565223a7b2276616c7565223a2232353030222c2274797065223a2255496e743634227d7d2c7b226b6579223a7b2276616c7565223a2244656661756c7444656c656761746f72436f6d6d6974746564222c2274797065223a22537472696e67227d2c2276616c7565223a7b2276616c7565223a22302e3035333431373336222c2274797065223a22554669783634227d7d2c7b226b6579223a7b2276616c7565223a225374616b696e67456e61626c65222c2274797065223a22537472696e67227d2c2276616c7565223a7b2276616c7565223a747275652c2274797065223a22426f6f6c227d7d2c7b226b6579223a7b2276616c7565223a22466c6f7745706f6368222c2274797065223a22537472696e67227d2c2276616c7565223a7b2276616c7565223a22383035222c2274797065223a2255496e743634227d7d2c7b226b6579223a7b2276616c7565223a22556e70726f636573736564556e7374616b655265717565737473222c2274797065223a22537472696e67227d2c2276616c7565223a7b2276616c7565223a22302e3030303030303030222c2274797065223a22554669783634227d7d2c7b226b6579223a7b2276616c7565223a22546f74616c436f6d6d6974746564222c2274797065223a22537472696e67227d2c2276616c7565223a7b2276616c7565223a22302e3035333431373336222c2274797065223a22554669783634227d7d2c7b226b6579223a7b2276616c7565223a2244656c656761746f724c656e677468222c2274797065223a22537472696e67227d2c2276616c7565223a7b2276616c7565223a2232222c2274797065223a22496e74227d7d2c7b226b6579223a7b2276616c7565223a2243757272656e7456696577222c2274797065223a22537472696e67227d2c2276616c7565223a7b2276616c7565223a223738363235222c2274797065223a2255496e743634227d7d5d2c2274797065223a2244696374696f6e617279227d0a","local_error":"rpc error: code = Internal desc = failed to execute script: failed to execute script at block (2e95f2bcc8bba89e7c9ad40e18f3c79871f183eebf74f38f2ba1b083af79c61b): [Error Code: 1057] error caused by: 1 error occurred:\n\t* [Error Code: 1101] cadence runtime error: Execution failed:\nerror: [Error Code: 1057] operation (GetBlockAtHeight) is not supported in this environment\n --> 7045b9bb26ab531810d35dab10b484b69f354e87eaed7a7068571b5ad545e04f:7:4\n \|\n 7 \| return {\n 8 \| \"StakingEnable\": FlowIDTableStaking.stakingEnabled(),\n 9 \| \"QuoteEpoch\": DelegatorManager.quoteEpochCounter,\n10 \| \"FlowEpoch\": FlowEpoch.currentEpochCounter,\n11 \| ... e,\n13 \| \"WindowSizeBeforeStakingEnd\": LiquidStakingConfig.windowSizeBeforeStakingEnd,\n14 \| \"CurrentView\": getCurrentBlock().view,\n15 \| \"DefaultNodeID\": DelegatorManager.defaultNodeIDToStake,\n16 \| \"DefaultDelegatorCommitted\": DelegatorManager.getApprovedDelegatorInfoByNodeID(nodeID: DelegatorManager.defaultNodeIDToStake).tokensCommitted,\n17 \| \"TotalCommitted\": DelegatorManager.borrowCurrentQuoteEpochSnapshot().allDelegatorCommitted\n18 \| }\n \| ^\n\n\n","time":"2023-10-26T03:23:21.51867387Z","message":"script execution results from local execution do not match EN"}
--
The text was updated successfully, but these errors were encountered:
After the devnet48 spork, we updated one of the Access nodes to use compare mode for script execution and get accounts. The following error is logged frequently:
[Error Code: 1057] operation (GetBlockAtHeight) is not supported in this environment
Full log line:
The text was updated successfully, but these errors were encountered: