TL;DR
Connecting to unreliable blockchain peers can cost users time, computing resources, and cryptocurrency. This paper introduces H-BRP (Hybrid Blockchain Reliability Prediction), a model that uses collaborative filtering and blockchain-specific metrics to recommend the most reliable peers for individual users. Tested on a real-world dataset of 2 million requests, H-BRP significantly outperforms traditional service reliability prediction methods.
Abstract
Blockchain and blockchain-based decentralized applications are attracting increasing attention. In public blockchain systems, users usually connect to third-party peers or run a peer to join the P2P network. However, connecting to unreliable peers can lead to wasted resources and significant financial loss. To address this, we propose H-BRP (Hybrid Blockchain Reliability Prediction), a model designed to extract blockchain-specific reliability factors and provide personalized predictions for users. Our large-scale experiments involving 100 requesters and 200 peers demonstrate that H-BRP achieves superior accuracy compared to traditional service reliability prediction methods.
1. Introduction
In public blockchain networks like Ethereum or Bitcoin, users and Decentralized Applications (DApps) typically connect to third-party peers to synchronize ledgers or submit transactions. With tens of thousands of peers online globally, many are unreliable—returning outdated blocks, dropping connections, or suffering from high latency. These issues lead to wasted mining resources or lost funds due to repeated transaction submissions.
Reliability in these networks is highly subjective; network latency and routing vary significantly between users. A peer that is reliable for one user might be poor for another. Since a single user cannot practically test all available peers, a personalized prediction system is required to estimate a peer's reliability based on the experiences of similar users.
2. The H-BRP Model
The proposed Hybrid Blockchain Reliability Prediction (H-BRP) model treats blockchain nodes as specialized entities rather than generic web services. The model operates in three primary phases:
- Data Collection: Requesters send batch block requests to a subset of peers, logging results to a central collector.
- Matrix Generation & Collaborative Prediction: H-BRP decomposes reliability into three blockchain-specific factors: Right Block (hash verification), Recent Height (block lag tolerance), and Round-Trip Time (RTT). Missing values in these factor matrices are predicted using item-based collaborative filtering.
- Hybrid Prediction: A linear regression model maps these factors to an overall "Success Rate," which is then converted into a personalized reliability score via an exponential function.
3. Experimental Evaluation
To validate H-BRP, we conducted real-world experiments using a massive dataset of 2,000,000 test cases. The setup included 100 globally distributed requesters and 200 Ethereum mainnet peers across 21 countries.
Key Results
- Superior Accuracy: H-BRP consistently outperformed five baseline collaborative filtering methods (UMEAN, IMEAN, UPCC, IPCC, UIPCC) in terms of Root Mean Square Error (RMSE).
- Data Efficiency: Even with a sparse training matrix (30% density), H-BRP achieved an RMSE of 0.0803, significantly better than UPCC (0.2823). Accuracy further improved as data density increased.
- Subjectivity of Reliability: The data confirmed that a single peer's success rate could vary from 48% to 8% depending on the user, validating the need for personalized filtering over global leaderboards. Random peer selection was found to be risky, with average success rates often falling below 30%.
4. Conclusion and Future Work
H-BRP demonstrates that incorporating domain-specific features like block height lag and hash correctness significantly improves reliability prediction in blockchain networks. While the current model relies on a centralized collector and has higher computational overhead than simpler methods, it provides the accuracy necessary for high-stakes blockchain operations. Future work will focus on decentralizing the prediction architecture and improving scalability to accommodate the full size of public blockchain networks.
Summary updated