Difficulty is used as a hashrate proxy - see doc comment on db.DifficultyBucketRow for why a literal hashrate figure isn't derivable from indexed data alone.