How does the network raise the difficulty? How do the nodes agree on a "next difficulty".<p>It's somewhat surprising to me that the next difficulty level isn't an input the hash function. H(B, random number, next difficulty level).<p>Edit: How does the network agree on clock? How does it handle rogues?