Method for preventing hard bifurcation phenomenon in blockchain system, medium, device and blockchain system
The invention discloses a method for preventing the hard bifurcation phenomenon in a blockchain system, a medium, a device and the blockchain system. The method comprises the steps of: when a production node performs current block production, obtaining the total current online node number N, and num...
Saved in:
Main Author | |
---|---|
Format | Patent |
Language | Chinese English |
Published |
22.02.2019
|
Subjects | |
Online Access | Get full text |
Cover
Loading…
Summary: | The invention discloses a method for preventing the hard bifurcation phenomenon in a blockchain system, a medium, a device and the blockchain system. The method comprises the steps of: when a production node performs current block production, obtaining the total current online node number N, and numbering current blocks produced by the production node; analyzing the content of the mth block, so that the total online node number Nm of the blockchain system when the mth block is produced is obtained; obtaining the difference value between the Nm and the N, and judging whether the difference value is less than N/2 or not; if the difference value is less than N/2, controlling to continuously perform current block production; and, if the difference value is greater than or equal to N/2, controlling to stop current block production, and broadcasting that the blockchain system is in an unusable state through the current production node. Thereby, the online node number in the blockchain systemis monitored; furthermor |
---|---|
Bibliography: | Application Number: CN20181969344 |