Refactoring
This commit is contained in:
@@ -426,7 +426,7 @@ bool CBlockTreeDB::ReadAddressIndex(uint160 addressHash, int type,
|
||||
}
|
||||
|
||||
bool getAddressFromIndex(const int &type, const uint160 &hash, std::string &address);
|
||||
uint32_t komodo_segid32(char *coinaddr);
|
||||
uint32_t hush_segid32(char *coinaddr);
|
||||
|
||||
#define DECLARE_IGNORELIST std::map <std::string,int> ignoredMap = { \
|
||||
{"RReUxSs5hGE39ELU23DfydX8riUuzdrHAE", 1}, \
|
||||
@@ -580,7 +580,7 @@ UniValue CBlockTreeDB::Snapshot(int top)
|
||||
char amount[32];
|
||||
sprintf(amount, "%.8f", (double) it->first / COIN);
|
||||
obj.push_back( make_pair("amount", amount) );
|
||||
obj.push_back( make_pair("segid",(int32_t)komodo_segid32((char *)it->second.c_str()) & 0x3f) );
|
||||
obj.push_back( make_pair("segid",(int32_t)hush_segid32((char *)it->second.c_str()) & 0x3f) );
|
||||
addressesSorted.push_back(obj);
|
||||
topN++;
|
||||
// If requested, only show top N addresses in output JSON
|
||||
|
||||
Reference in New Issue
Block a user