Skip to content

Commit

Permalink
Additional staking info
Browse files Browse the repository at this point in the history
  • Loading branch information
Bushstar committed Nov 14, 2018
1 parent 78b55b4 commit 7d1316c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/rpc/net.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -629,6 +629,13 @@ UniValue getstakinginfo(const UniValue& params, bool fHelp)
obj.push_back(Pair("weight", (uint64_t)nWeight));
obj.push_back(Pair("netstakeweight", (uint64_t)nNetworkWeight));

if (nStakeMinTime)
obj.push_back(Pair("stakemintime", (int)nStakeMinTime));
else
obj.push_back(Pair("stakemindepth", (int)nStakeMinDepth));
obj.push_back(Pair("stakeminvalue", ValueFromAmount(nStakeMinValue)));
obj.push_back(Pair("stakecombine", ValueFromAmount(nCombineThreshold)));
obj.push_back(Pair("stakesplit", ValueFromAmount(nSplitThreshold)));
obj.push_back(Pair("expectedtime", nExpectedTime));

return obj;
Expand Down

0 comments on commit 7d1316c

Please sign in to comment.