add amount limit to getvalidhashes