Moved UpdateTime out of CBlockHeader and moved CBlockHeader into core.

This commit is contained in:
Eric Lombrozo
2013-01-08 14:58:06 -08:00
parent 48343a0a50
commit aabdf9e899
4 changed files with 71 additions and 70 deletions

View File

@@ -159,7 +159,7 @@ Value getwork(const Array& params, bool fHelp)
CBlock* pblock = &pblocktemplate->block; // pointer for convenience
// Update nTime
pblock->UpdateTime(pindexPrev);
UpdateTime(*pblock, pindexPrev);
pblock->nNonce = 0;
// Update nExtraNonce
@@ -289,7 +289,7 @@ Value getblocktemplate(const Array& params, bool fHelp)
CBlock* pblock = &pblocktemplate->block; // pointer for convenience
// Update nTime
pblock->UpdateTime(pindexPrev);
UpdateTime(*pblock, pindexPrev);
pblock->nNonce = 0;
Array transactions;