Various improvements and an attempt to implement the selfish mining attack.