diff options
| author | Gavin Andresen <[email protected]> | 2012-02-17 13:48:01 -0500 |
|---|---|---|
| committer | Gavin Andresen <[email protected]> | 2012-02-17 13:48:01 -0500 |
| commit | 0a6b081ccaafb57f98098437ee52f7a14b924062 (patch) | |
| tree | 9a4deace8453a5794dff4340825be4153b63439a /src/bitcoinrpc.cpp | |
| parent | Merge branch 'threadid' of https://github.com/sipa/bitcoin (diff) | |
| parent | Fix issue #848 : broken mining on testnet (diff) | |
| download | discoin-0a6b081ccaafb57f98098437ee52f7a14b924062.tar.xz discoin-0a6b081ccaafb57f98098437ee52f7a14b924062.zip | |
Merge branch 'testnetmining' of github.com:gavinandresen/bitcoin-git
Diffstat (limited to 'src/bitcoinrpc.cpp')
| -rw-r--r-- | src/bitcoinrpc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bitcoinrpc.cpp b/src/bitcoinrpc.cpp index 30a6344b8..be40e937b 100644 --- a/src/bitcoinrpc.cpp +++ b/src/bitcoinrpc.cpp @@ -1816,7 +1816,7 @@ Value getwork(const Array& params, bool fHelp) } // Update nTime - pblock->nTime = max(pindexPrev->GetMedianTimePast()+1, GetAdjustedTime()); + pblock->UpdateTime(pindexPrev); pblock->nNonce = 0; // Update nExtraNonce @@ -1916,7 +1916,7 @@ Value getmemorypool(const Array& params, bool fHelp) } // Update nTime - pblock->nTime = max(pindexPrev->GetMedianTimePast()+1, GetAdjustedTime()); + pblock->UpdateTime(pindexPrev); pblock->nNonce = 0; Array transactions; |