diff options
| author | Gavin Andresen <[email protected]> | 2012-01-19 14:14:41 -0500 |
|---|---|---|
| committer | Gavin Andresen <[email protected]> | 2012-01-19 14:14:41 -0500 |
| commit | aacefd279549c4b524def6e46f4a004bf8bb92bf (patch) | |
| tree | d96dcaefbf2261ea72abd4896ebc6792fcd361ea /src/main.cpp | |
| parent | Merge pull request #762 from laanwj/qtprogressfix (diff) | |
| parent | Added mintime and curtime to RPC getmemorypool (diff) | |
| download | discoin-aacefd279549c4b524def6e46f4a004bf8bb92bf.tar.xz discoin-aacefd279549c4b524def6e46f4a004bf8bb92bf.zip | |
Merge branch 'getmemorypool_blockflagstime' of https://github.com/forrestv/bitcoin
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/main.cpp b/src/main.cpp index 3c3f06604..891dbed98 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3130,12 +3130,7 @@ void IncrementExtraNonce(CBlock* pblock, CBlockIndex* pindexPrev, unsigned int& hashPrevBlock = pblock->hashPrevBlock; } ++nExtraNonce; - pblock->vtx[0].vin[0].scriptSig = CScript() << pblock->nTime << CBigNum(nExtraNonce); - - // Put "/P2SH/" in the coinbase so everybody can tell when - // a majority of miners support it - const char* pszP2SH = "/P2SH/"; - pblock->vtx[0].vin[0].scriptSig += CScript() << std::vector<unsigned char>(pszP2SH, pszP2SH+strlen(pszP2SH)); + pblock->vtx[0].vin[0].scriptSig = (CScript() << pblock->nTime << CBigNum(nExtraNonce)) + COINBASE_FLAGS; assert(pblock->vtx[0].vin[0].scriptSig.size() <= 100); pblock->hashMerkleRoot = pblock->BuildMerkleTree(); |