diff options
| author | Wladimir J. van der Laan <[email protected]> | 2015-02-18 17:29:17 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2015-02-18 17:29:28 +0100 |
| commit | 8d0418720c29b72bd369f0b3b23b6d75584f3c08 (patch) | |
| tree | eb4bcc06141923f1e9c94804fce8d52affbc5a38 /src/rpcmining.cpp | |
| parent | Merge #5784: Fix usage of NegateSignatureS in script_tests (diff) | |
| parent | Rename Interval() to DifficultyAdjustmentInterval() (diff) | |
| download | discoin-8d0418720c29b72bd369f0b3b23b6d75584f3c08.tar.xz discoin-8d0418720c29b72bd369f0b3b23b6d75584f3c08.zip | |
Merge #5799: Rename Interval() to DifficultyAdjustmentInterval()
e5ece05 Rename Interval() to DifficultyAdjustmentInterval() (Shaul Kfir)
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) |