clean up some more

This commit is contained in:
Duke Leto
2021-09-01 11:13:08 -04:00
parent 5c83c1b4e7
commit b30fae8238
10 changed files with 18 additions and 96 deletions

View File

@@ -727,7 +727,7 @@ CBlockTreeDB *pblocktree = NULL;
#define HUSH_ZCASH
#include "hush.h"
UniValue komodo_snapshot(int top)
UniValue hush_snapshot(int top)
{
LOCK(cs_main);
int64_t total = -1;
@@ -745,7 +745,7 @@ UniValue komodo_snapshot(int top)
return(result);
}
bool komodo_snapshot2(std::map <std::string, CAmount> &addressAmounts)
bool hush_snapshot2(std::map <std::string, CAmount> &addressAmounts)
{
if ( fAddressIndex && pblocktree != 0 )
{
@@ -787,7 +787,7 @@ bool hush_dailysnapshot(int32_t height)
if ( undo_height == lastSnapShotHeight )
return true;
std::map <std::string, int64_t> addressAmounts;
if ( !komodo_snapshot2(addressAmounts) )
if ( !hush_snapshot2(addressAmounts) )
return false;
// undo blocks in reverse order