The mining algorithm in smart city blockchain systems using the Proof-of-Work consensus mechanism is studied. Well-known studies in the field of selfish mining detection are analyzed. A method for protecting a blockchain from selfish mining attacks is presented, and a selfish mining detection plugin is developed based on this method. This plugin is designed for miner software and enables the analysis of data patterns received from the mining pool. The proposed solution outperforms existing selfish mining detectors by identifying the attacking mining pool and has lower error rates.
Kalinin et al. (Mon,) studied this question.