diff options
Diffstat (limited to 'src/rpc.cpp')
| -rw-r--r-- | src/rpc.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/rpc.cpp b/src/rpc.cpp index 9cd0ed6..285f11b 100644 --- a/src/rpc.cpp +++ b/src/rpc.cpp | |||
| @@ -153,7 +153,12 @@ static bool RebuildJob() | |||
| 153 | CTransaction txNew; | 153 | CTransaction txNew; |
| 154 | txNew.vin.resize(1); | 154 | txNew.vin.resize(1); |
| 155 | txNew.vin[0].prevout.SetNull(); | 155 | txNew.vin[0].prevout.SetNull(); |
| 156 | txNew.vin[0].scriptSig << nBits << (CBigNum)extraNonce; | 156 | // Height first, for the reason given at the matching line in |
| 157 | // BitcoinMiner: it is what keeps two coinbases at different heights | ||
| 158 | // from ever being byte-identical. This builder was missed when that | ||
| 159 | // went in, and it produces real blocks -- a pool operator's template | ||
| 160 | // is mined and submitted like any other. #58. | ||
| 161 | txNew.vin[0].scriptSig << (pindexPrev ? pindexPrev->nHeight + 1 : 0) << nBits << (CBigNum)extraNonce; | ||
| 157 | txNew.vout.resize(1); | 162 | txNew.vout.resize(1); |
| 158 | txNew.vout[0].scriptPubKey << key.GetPubKey() << OP_CHECKSIG; | 163 | txNew.vout[0].scriptPubKey << key.GetPubKey() << OP_CHECKSIG; |
| 159 | 164 | ||