rename mindepth to confirmations.

This commit is contained in:
Christopher Jeffrey 2014-11-13 11:30:31 -08:00
parent 3694f72e91
commit 4b14b0a274
1 changed files with 8 additions and 8 deletions

View File

@ -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;