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)  ifthen
(4)   
(5)   
(6)  else ifthen
(7)   if and then
(8)    
(9)   else if or then
(10)    Competition ends
(11)   else ifthen
(12)    ifthen
(13)     
(14)    else ifthen
(15)     
(16) Mine at the head of the longest branch