Added IsSynced field to JSON output of mnsync status RPC command

- This is needed to allow fixing RPC tests so that they wait until
    the nodes are fully synced before performing tests
This commit is contained in:
Tim Flynn 2016-08-18 18:45:19 -04:00
parent 427086e136
commit 794b90d9ce

View File

@ -153,6 +153,7 @@ UniValue mnsync(const UniValue& params, bool fHelp)
UniValue obj(UniValue::VOBJ);
obj.push_back(Pair("IsBlockchainSynced", masternodeSync.IsBlockchainSynced()));
obj.push_back(Pair("IsSynced", masternodeSync.IsSynced()));
obj.push_back(Pair("CurrentSyncingAssetName", masternodeSync.GetAssetName()));
obj.push_back(Pair("lastMasternodeList", masternodeSync.lastMasternodeList));
obj.push_back(Pair("lastMasternodeWinner", masternodeSync.lastMasternodeWinner));