diff --git a/src/bitcoindjs.cc b/src/bitcoindjs.cc index e1e18806..8a96790b 100644 --- a/src/bitcoindjs.cc +++ b/src/bitcoindjs.cc @@ -3499,8 +3499,8 @@ NAN_METHOD(WalletSendFrom) { data->nAmount = nAmount; int nMinDepth = 1; - if (options->Get(NanNew("minDepth"))->IsNumber()) { - nMinDepth = options->Get(NanNew("minDepth"))->IntegerValue(); + if (options->Get(NanNew("confirmations"))->IsNumber()) { + nMinDepth = options->Get(NanNew("confirmations"))->IntegerValue(); } data->nMinDepth = nMinDepth; @@ -3639,8 +3639,8 @@ NAN_METHOD(WalletMove) { // DEPRECATED // int nMinDepth = 1; - // if (options->Get(NanNew("minDepth"))->IsNumber()) { - // nMinDepth = options->Get(NanNew("minDepth"))->IntegerValue(); + // if (options->Get(NanNew("confirmations"))->IsNumber()) { + // nMinDepth = options->Get(NanNew("confirmations"))->IntegerValue(); // } std::string strComment; @@ -3941,8 +3941,8 @@ NAN_METHOD(WalletGetBalance) { strAccount = std::string(*account_); } - if (options->Get(NanNew("nMinDepth"))->IsNumber()) { - nMinDepth = options->Get(NanNew("nMinDepth"))->IntegerValue(); + if (options->Get(NanNew("confirmations"))->IsNumber()) { + nMinDepth = options->Get(NanNew("confirmations"))->IntegerValue(); } if (strAccount == EMPTY) { @@ -4308,8 +4308,8 @@ NAN_METHOD(WalletListAccounts) { Local options = Local::Cast(args[0]); int nMinDepth = 1; - if (options->Get(NanNew("minDepth"))->IsNumber()) { - nMinDepth = options->Get(NanNew("minDepth"))->IntegerValue(); + if (options->Get(NanNew("confirmations"))->IsNumber()) { + nMinDepth = options->Get(NanNew("confirmations"))->IntegerValue(); } isminefilter includeWatchonly = ISMINE_SPENDABLE;