From 4b14b0a274e8e721442ff3442e65565cdac0a9ff Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Thu, 13 Nov 2014 11:30:31 -0800 Subject: [PATCH] rename mindepth to confirmations. --- src/bitcoindjs.cc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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;