# CAA-RF: An Anomaly Detection Algorithm for Computing Power Blockchain Networks
## 2 Distributed Computing Power Blockchain Network Model  
As shown in Figure 1 computing power blockchain network, the architecture of the blockchain-based computational network adopts a multi-layered collaborative design, with efficient resource scheduling and intelligent circulation of computing power as its core objectives. Through hierarchical decoupling and vertical integration, a comprehensive service system is constructed. The system is defined from top to bottom as a three-dimensional framework comprising business-driven, global control, hardware support, trusted verification, and network interconnection. The business layer focuses on value circulation, the network layer reinforces the transmission foundation, and blockchain technology serves as the intermediary to enable trustworthy resource scheduling. Together, they establish an intelligent computing ecosystem characterized by vision-aware perception, dynamic orchestration, and flexible deployment. As the strategic gateway directly addressing industrial needs, the business layer establishes an evaluation system centered on multi-dimensional metrology. Through technologies such as dynamic power calibration, computing power encapsulation, and computing power perception, the computing power trading market transforms computing resources into divisible and composable digital commodities. Unlike the coarse-grained approach of traditional resource pools, this layer enables a paradigm shift from power metering to service value orientation. The control layer utilizes a digital twin + intent network to construct the decision-making center. As the peripheral neural network of the system, it perceives data related to blockchain computing power network connections, transactions, anomalies, etc., including timestamps, duration, message length, connection frequency, error rates, and so on, and writes these data to local files in real time. By decomposing computing power from heterogeneous resources using specialized tools and integrating scheduling optimization algorithms with autonomous computing engines, the system can dynamically generate computational power routing paths. Notably, the integration of human/machine collaborative intent recognition allows non-technical users to issue natural-language commands for professional computing power scheduling. The infrastructure layer breaks away from traditional centralized deployment by leveraging optoelectronic collaborative technologies to build a distributed computing base. From bandwidth reservation in lossless networks to application-aware resource perception, and from privacy-preserving edge computing at peripheral nodes to computing power loading on terminal devices, a three-tier cloud/edge/terminal flexible architecture is formed. Especially through high-speed optoelectronic interconnection, the system enables zero-latency computing power reconfiguration across domains. Serving as the architectural core, the CPBN blockchain platform innovatively integrates the proof-of-stake (PoS) consensus mechanism with a distributed verification framework [33]. This mechanism dynamically allocates block validation weight according to the amount of CPN tokens held by each node. Token holders gain governance authority over computing power scheduling through staking, thereby maintaining decentralization while using economic incentives to suppress Sybil attacks. As shown in Algorithm 1, the consensus logic is illustrated in the figure below. In our proposed consensus algorithm, each blockchain node independently generates a random number (R) during the current block generation round. Within a specified time window, each node (Node) transmits its generated random number to other nodes (toNode). Once enough nodes have successfully completed the message transmission, the system proceeds to the next consensus phase. In this phase, each node calculates an average value based on the collected random numbers.