Skip to content

Commit

Permalink
Added IsSynced field to JSON output of mnsync status RPC command
Browse files Browse the repository at this point in the history
  - This is needed to allow fixing RPC tests so that they wait until
    the nodes are fully synced before performing tests
  • Loading branch information
tgflynn committed Aug 19, 2016
1 parent 427086e commit 794b90d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/rpcmisc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 794b90d

Please sign in to comment.