diff options
| author | Shaul Kfir <[email protected]> | 2015-02-17 08:46:51 -0500 |
|---|---|---|
| committer | Shaul Kfir <[email protected]> | 2015-02-17 08:46:51 -0500 |
| commit | e5ece053da705a630bb664e16036299915ac1246 (patch) | |
| tree | 532f7872bc94d87796ddb5143cf34b5fdf789c4b /src/rpcmining.cpp | |
| parent | Merge #5710: Add more information to errors in ReadBlockFromDisk (diff) | |
| download | discoin-e5ece053da705a630bb664e16036299915ac1246.tar.xz discoin-e5ece053da705a630bb664e16036299915ac1246.zip | |
Rename Interval() to DifficultyAdjustmentInterval()
Diffstat (limited to 'src/rpcmining.cpp')
| -rw-r--r-- | src/rpcmining.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpcmining.cpp b/src/rpcmining.cpp index e3ae5cff4..165a9df69 100644 --- a/src/rpcmining.cpp +++ b/src/rpcmining.cpp @@ -44,7 +44,7 @@ Value GetNetworkHashPS(int lookup, int height) { // If lookup is -1, then use blocks since last difficulty change. if (lookup <= 0) - lookup = pb->nHeight % Params().Interval() + 1; + lookup = pb->nHeight % Params().DifficultyAdjustmentInterval() + 1; // If lookup is larger than chain, then set it to chain length. if (lookup > pb->nHeight) |