Fixed getnetworkhashps (invalid arg type when called using [blocks] param from CLI) and adjusted CDiffProvider branch condition