Research Article
Greedy-Mine: A Profitable Mining Attack Strategy in Bitcoin-NG
Algorithm 3
Greedy-Mine strategy when the greedy pool finds a keyblock.
(1) | On Greedy 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) | Mine at the head of the greedy branch. |
|