improved selfish mining attack implementation