rename mindepth to confirmations.
This commit is contained in:
parent
3694f72e91
commit
4b14b0a274
|
@ -3499,8 +3499,8 @@ NAN_METHOD(WalletSendFrom) {
|
||||||
data->nAmount = nAmount;
|
data->nAmount = nAmount;
|
||||||
|
|
||||||
int nMinDepth = 1;
|
int nMinDepth = 1;
|
||||||
if (options->Get(NanNew<String>("minDepth"))->IsNumber()) {
|
if (options->Get(NanNew<String>("confirmations"))->IsNumber()) {
|
||||||
nMinDepth = options->Get(NanNew<String>("minDepth"))->IntegerValue();
|
nMinDepth = options->Get(NanNew<String>("confirmations"))->IntegerValue();
|
||||||
}
|
}
|
||||||
data->nMinDepth = nMinDepth;
|
data->nMinDepth = nMinDepth;
|
||||||
|
|
||||||
|
@ -3639,8 +3639,8 @@ NAN_METHOD(WalletMove) {
|
||||||
|
|
||||||
// DEPRECATED
|
// DEPRECATED
|
||||||
// int nMinDepth = 1;
|
// int nMinDepth = 1;
|
||||||
// if (options->Get(NanNew<String>("minDepth"))->IsNumber()) {
|
// if (options->Get(NanNew<String>("confirmations"))->IsNumber()) {
|
||||||
// nMinDepth = options->Get(NanNew<String>("minDepth"))->IntegerValue();
|
// nMinDepth = options->Get(NanNew<String>("confirmations"))->IntegerValue();
|
||||||
// }
|
// }
|
||||||
|
|
||||||
std::string strComment;
|
std::string strComment;
|
||||||
|
@ -3941,8 +3941,8 @@ NAN_METHOD(WalletGetBalance) {
|
||||||
strAccount = std::string(*account_);
|
strAccount = std::string(*account_);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (options->Get(NanNew<String>("nMinDepth"))->IsNumber()) {
|
if (options->Get(NanNew<String>("confirmations"))->IsNumber()) {
|
||||||
nMinDepth = options->Get(NanNew<String>("nMinDepth"))->IntegerValue();
|
nMinDepth = options->Get(NanNew<String>("confirmations"))->IntegerValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strAccount == EMPTY) {
|
if (strAccount == EMPTY) {
|
||||||
|
@ -4308,8 +4308,8 @@ NAN_METHOD(WalletListAccounts) {
|
||||||
Local<Object> options = Local<Object>::Cast(args[0]);
|
Local<Object> options = Local<Object>::Cast(args[0]);
|
||||||
|
|
||||||
int nMinDepth = 1;
|
int nMinDepth = 1;
|
||||||
if (options->Get(NanNew<String>("minDepth"))->IsNumber()) {
|
if (options->Get(NanNew<String>("confirmations"))->IsNumber()) {
|
||||||
nMinDepth = options->Get(NanNew<String>("minDepth"))->IntegerValue();
|
nMinDepth = options->Get(NanNew<String>("confirmations"))->IntegerValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
isminefilter includeWatchonly = ISMINE_SPENDABLE;
|
isminefilter includeWatchonly = ISMINE_SPENDABLE;
|
||||||
|
|
Loading…
Reference in New Issue