Merge pull request #789 from letolabs/snapshot

getsnapshot of top N addresses
This commit is contained in:
jl777
2018-07-25 19:43:17 -11:00
committed by GitHub
4 changed files with 58 additions and 12 deletions

View File

@@ -588,7 +588,7 @@ CBlockTreeDB *pblocktree = NULL;
#define KOMODO_ZCASH
#include "komodo.h"
UniValue komodo_snapshot()
UniValue komodo_snapshot(int top)
{
LOCK(cs_main);
int64_t total = -1;
@@ -596,7 +596,7 @@ UniValue komodo_snapshot()
if (fAddressIndex) {
if ( pblocktree != 0 ) {
result = pblocktree->Snapshot();
result = pblocktree->Snapshot(top);
} else {
fprintf(stderr,"null pblocktree start with -addressindex=true\n");
}