This commit is contained in:
jl777
2016-11-19 17:01:44 -03:00
parent 2e98c3a27a
commit f595c2e0f8
3 changed files with 33 additions and 1 deletions

View File

@@ -40,6 +40,7 @@ using namespace std;
* Or alternatively, create a specific query method for the information.
**/
uint64_t komodo_interestsum();
int32_t komodo_longestchain();
int32_t komodo_notarized_height(uint256 *hashp,uint256 *txidp);
Value getinfo(const Array& params, bool fHelp)
@@ -98,6 +99,7 @@ Value getinfo(const Array& params, bool fHelp)
}
#endif
obj.push_back(Pair("blocks", (int)chainActive.Height()));
obj.push_back(Pair("longestchain", komodo_longestchain()));
obj.push_back(Pair("timeoffset", GetTimeOffset()));
if ( chainActive.Tip() != 0 )
obj.push_back(Pair("tiptime", (int)chainActive.Tip()->nTime));