diff options
Diffstat (limited to 'src/rpc.cpp')
| -rw-r--r-- | src/rpc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc.cpp b/src/rpc.cpp index 1b529e8..3b2dae9 100644 --- a/src/rpc.cpp +++ b/src/rpc.cpp | |||
| @@ -182,7 +182,7 @@ static bool RebuildJob() | |||
| 182 | } | 182 | } |
| 183 | } | 183 | } |
| 184 | 184 | ||
| 185 | block.vtx[0].vout[0].nValue = block.GetBlockValue(0); | 185 | block.vtx[0].vout[0].nValue = block.GetBlockValue(pindexPrev->nHeight + 1, 0); |
| 186 | block.hashPrevBlock = pindexPrev->GetBlockHash(); | 186 | block.hashPrevBlock = pindexPrev->GetBlockHash(); |
| 187 | block.hashMerkleRoot = block.BuildMerkleTree(); | 187 | block.hashMerkleRoot = block.BuildMerkleTree(); |
| 188 | block.nTime = max((unsigned int)(pindexPrev->GetMedianTimePast() + 1), | 188 | block.nTime = max((unsigned int)(pindexPrev->GetMedianTimePast() + 1), |