fix compiler warnings.
This commit is contained in:
parent
c988172dc4
commit
136b0c4122
|
@ -602,8 +602,10 @@ struct async_rescan_data {
|
||||||
* Read Raw DB
|
* Read Raw DB
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef USE_LEVELDB_ADDR
|
||||||
static ctx_list *
|
static ctx_list *
|
||||||
read_addr(const std::string addr);
|
read_addr(const std::string addr);
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Functions
|
* Functions
|
||||||
|
@ -2029,7 +2031,7 @@ async_get_addrtx(uv_work_t *req) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 1
|
#ifndef USE_LEVELDB_ADDR
|
||||||
CScript expected = GetScriptForDestination(address.Get());
|
CScript expected = GetScriptForDestination(address.Get());
|
||||||
|
|
||||||
int64_t i = 0;
|
int64_t i = 0;
|
||||||
|
@ -5885,6 +5887,7 @@ jstx_to_ctx(const Local<Object> jstx, CTransaction& ctx_) {
|
||||||
ctx.nLockTime = (unsigned int)jstx->Get(NanNew<String>("locktime"))->Uint32Value();
|
ctx.nLockTime = (unsigned int)jstx->Get(NanNew<String>("locktime"))->Uint32Value();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef USE_LEVELDB_ADDR
|
||||||
static leveldb::Options
|
static leveldb::Options
|
||||||
GetOptions(size_t nCacheSize) {
|
GetOptions(size_t nCacheSize) {
|
||||||
leveldb::Options options;
|
leveldb::Options options;
|
||||||
|
@ -6072,6 +6075,7 @@ found:
|
||||||
|
|
||||||
return head;
|
return head;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// Luckily, we never have to change this.
|
// Luckily, we never have to change this.
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in New Issue