Research Article
Greedy-Mine: A Profitable Mining Attack Strategy in Bitcoin-NG
Algorithm 1
Greedy-Mine strategy when the honest pool finds a keyblock.
(1) | On honest pool finds a keyblock | (2) | | (3) | if then | (4) | | (5) | | (6) | else if then | (7) | if and then | (8) | | (9) | else if or then | (10) | Competition ends | (11) | else if then | (12) | if then | (13) | | (14) | else if then | (15) | | (16) | Mine at the head of the longest branch |
|