diff options
| author | Wladimir J. van der Laan <[email protected]> | 2014-11-20 14:27:26 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2014-11-20 14:40:42 +0100 |
| commit | cf9c4887f176634c9f39305ad70657d9fff3962d (patch) | |
| tree | 01ce0aeb873619515652558680ea97632c466ac9 /src/rpcmining.cpp | |
| parent | Merge pull request #5320 (diff) | |
| parent | Update comments in src/rpc* to be doxygen compatible (diff) | |
| download | discoin-cf9c4887f176634c9f39305ad70657d9fff3962d.tar.xz discoin-cf9c4887f176634c9f39305ad70657d9fff3962d.zip | |
Merge pull request #5324
72fb3d2 Update comments in src/rpc* to be doxygen compatible (Michael Ford)
Diffstat (limited to 'src/rpcmining.cpp')
| -rw-r--r-- | src/rpcmining.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/rpcmining.cpp b/src/rpcmining.cpp index 2bde02c0a..81120ba98 100644 --- a/src/rpcmining.cpp +++ b/src/rpcmining.cpp @@ -1,6 +1,6 @@ // Copyright (c) 2010 Satoshi Nakamoto -// Copyright (c) 2009-2013 The Bitcoin developers -// Distributed under the MIT/X11 software license, see the accompanying +// Copyright (c) 2009-2014 The Bitcoin developers +// Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "amount.h" @@ -28,9 +28,11 @@ using namespace json_spirit; using namespace std; -// Return average network hashes per second based on the last 'lookup' blocks, -// or from the last difficulty change if 'lookup' is nonpositive. -// If 'height' is nonnegative, compute the estimate at the time when a given block was found. +/** + * Return average network hashes per second based on the last 'lookup' blocks, + * or from the last difficulty change if 'lookup' is nonpositive. + * If 'height' is nonnegative, compute the estimate at the time when a given block was found. + */ Value GetNetworkHashPS(int lookup, int height) { CBlockIndex *pb = chainActive.Tip(); |