import difficulty throttling algorithm from quark