Notes on selfish mining