Finished everything except the miner, PoW validator and testing