Added startmining. Check for block ID length in getblocks.