Add -stopatheight for benchmarking

This commit is contained in:
Pieter Wuille
2017-04-27 12:25:13 -07:00
parent a550f6e415
commit b297426c96
3 changed files with 8 additions and 0 deletions

View File

@@ -145,6 +145,9 @@ static const int MAX_UNCONNECTING_HEADERS = 10;
static const bool DEFAULT_PEERBLOOMFILTERS = true;
/** Default for -stopatheight */
static const int DEFAULT_STOPATHEIGHT = 0;
struct BlockHasher
{
size_t operator()(const uint256& hash) const { return hash.GetCheapHash(); }