Merge pull request #4446

209377a Use GetBlockTime() more (jtimon)
This commit is contained in:
Wladimir J. van der Laan 2014-07-07 10:28:31 +02:00
commit 4851d09603
No known key found for this signature in database
GPG key ID: 74810B012346C9A6
9 changed files with 19 additions and 19 deletions

View file

@ -50,7 +50,7 @@ void WalletTxToJSON(const CWalletTx& wtx, Object& entry)
{
entry.push_back(Pair("blockhash", wtx.hashBlock.GetHex()));
entry.push_back(Pair("blockindex", wtx.nIndex));
entry.push_back(Pair("blocktime", (int64_t)(mapBlockIndex[wtx.hashBlock]->nTime)));
entry.push_back(Pair("blocktime", mapBlockIndex[wtx.hashBlock]->GetBlockTime()));
}
uint256 hash = wtx.GetHash();
entry.push_back(Pair("txid", hash.GetHex()));