Fixed generation transaction building, block header serialization, and difficulty comparing :D