More json information about consensus process.

Fix a bug where swithing ledgers during the consensus window caused us to use the wrong close resolution.
This commit is contained in:
JoelKatz
2012-08-06 03:57:01 -07:00
parent 7a5db15041
commit 241393410a
2 changed files with 27 additions and 2 deletions

View File

@@ -72,4 +72,18 @@ std::vector<unsigned char> LedgerProposal::sign(void)
return ret;
}
Json::Value LedgerProposal::getJson() const
{
Json::Value ret = Json::objectValue;
ret["previous_ledger"] = mPreviousLedger.GetHex();
ret["transaction_hash"] = mCurrentHash.GetHex();
ret["close_time"] = mCloseTime;
ret["propose_seq"] = mProposeSeq;
if (mPublicKey.isValid())
ret["peer_id"] = mPublicKey.humanNodePublic();
return ret;
}
// vim:ts=4