fix orphans.

This commit is contained in:
Christopher Jeffrey 2014-11-12 15:43:22 -08:00
parent a9b9846aed
commit 6c9b005cd1
1 changed files with 3 additions and 2 deletions

View File

@ -148,6 +148,7 @@ extern CWallet *pwalletMain;
#endif
extern CFeeRate payTxFee;
extern const std::string strMessageMagic;
// extern map<uint256, COrphanBlock*> mapOrphanBlocks;
// XXX May not link properly: some functions here are static (rpcdump.cpp):
// extern std::string EncodeDumpTime(int64_t nTime);
@ -1873,8 +1874,8 @@ async_get_progress_after(uv_work_t *req) {
// result->Set(NanNew<String>("orphans"), NanNew<Number>(orphan_count));
// result->Set(NanNew<String>("orphans"), NanNew<Number>(
// (unsigned long)mapOrphanBlocks.size())->ToInteger());
result->Set(NanNew<String>("orphans"),
NanNew<Number>(mapOrphanBlocks.size()));
// result->Set(NanNew<String>("orphans"),
// NanNew<Number>(mapOrphanBlocks.size()));
const unsigned argc = 2;
Local<Value> argv[argc] = {