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;
int nMinDepth = 1;
if (options->Get(NanNew<String>("minDepth"))->IsNumber()) {
nMinDepth = options->Get(NanNew<String>("minDepth"))->IntegerValue();
if (options->Get(NanNew<String>("confirmations"))->IsNumber()) {
nMinDepth = options->Get(NanNew<String>("confirmations"))->IntegerValue();
}
data->nMinDepth = nMinDepth;
@ -3639,8 +3639,8 @@ NAN_METHOD(WalletMove) {
// DEPRECATED
// int nMinDepth = 1;
// if (options->Get(NanNew<String>("minDepth"))->IsNumber()) {
// nMinDepth = options->Get(NanNew<String>("minDepth"))->IntegerValue();
// if (options->Get(NanNew<String>("confirmations"))->IsNumber()) {
// nMinDepth = options->Get(NanNew<String>("confirmations"))->IntegerValue();
// }
std::string strComment;
@ -3941,8 +3941,8 @@ NAN_METHOD(WalletGetBalance) {
strAccount = std::string(*account_);
}
if (options->Get(NanNew<String>("nMinDepth"))->IsNumber()) {
nMinDepth = options->Get(NanNew<String>("nMinDepth"))->IntegerValue();
if (options->Get(NanNew<String>("confirmations"))->IsNumber()) {
nMinDepth = options->Get(NanNew<String>("confirmations"))->IntegerValue();
}
if (strAccount == EMPTY) {
@ -4308,8 +4308,8 @@ NAN_METHOD(WalletListAccounts) {
Local<Object> options = Local<Object>::Cast(args[0]);
int nMinDepth = 1;
if (options->Get(NanNew<String>("minDepth"))->IsNumber()) {
nMinDepth = options->Get(NanNew<String>("minDepth"))->IntegerValue();
if (options->Get(NanNew<String>("confirmations"))->IsNumber()) {
nMinDepth = options->Get(NanNew<String>("confirmations"))->IntegerValue();
}
isminefilter includeWatchonly = ISMINE_SPENDABLE;