From 07cdeeb7cc659459ea85e2e6f9770e3813e1f2dc Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Wed, 1 Oct 2014 11:20:39 -0700 Subject: [PATCH] add list option --- example/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example/index.js b/example/index.js index 7e027d64..fcc0cca8 100755 --- a/example/index.js +++ b/example/index.js @@ -25,9 +25,9 @@ bitcoind.on('error', function(err) { bitcoind.on('open', function(status) { print('status="%s"', status); - setTimeout(function() { + if (argv.list) { print(bitcoind.wallet.listAccounts()); - }, 2000); + } if (argv.blocks) { getBlocks(bitcoind);