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