Merge pull request #788 from letolabs/dev_fixes
Fix compiler error: call of overloaded 'Pair(const char [9], time_t)'…
This commit is contained in:
@@ -1028,7 +1028,7 @@ UniValue getsnapshot(const UniValue& params, bool fHelp)
|
|||||||
}
|
}
|
||||||
result = komodo_snapshot();
|
result = komodo_snapshot();
|
||||||
if ( result.size() > 0 ) {
|
if ( result.size() > 0 ) {
|
||||||
result.push_back(Pair("end_time", time(NULL)));
|
result.push_back(Pair("end_time", (int) time(NULL)));
|
||||||
} else {
|
} else {
|
||||||
result.push_back(Pair("error", "no addressindex"));
|
result.push_back(Pair("error", "no addressindex"));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -407,7 +407,7 @@ extern UniValue CBlockTreeDB::Snapshot()
|
|||||||
std::map <std::string, CAmount> addressAmounts;
|
std::map <std::string, CAmount> addressAmounts;
|
||||||
std::vector <std::pair<CAmount, std::string>> vaddr;
|
std::vector <std::pair<CAmount, std::string>> vaddr;
|
||||||
UniValue result(UniValue::VOBJ);
|
UniValue result(UniValue::VOBJ);
|
||||||
result.push_back(Pair("start_time", time(NULL)));
|
result.push_back(Pair("start_time", (int) time(NULL)));
|
||||||
|
|
||||||
std::map <std::string,int> ignoredMap = {
|
std::map <std::string,int> ignoredMap = {
|
||||||
{"RReUxSs5hGE39ELU23DfydX8riUuzdrHAE", 1},
|
{"RReUxSs5hGE39ELU23DfydX8riUuzdrHAE", 1},
|
||||||
|
|||||||
Reference in New Issue
Block a user