return
method = 'server.' + command
- request = json.dumps({'id': 0, 'method': method, 'params': [password]})
+ params = [password]
+ if len(sys.argv) > 2:
+ params.append(sys.argv[2])
+
+ request = json.dumps({'id': 0, 'method': method, 'params': params})
s.send(request + '\n')
msg = ''
while True:
if command == 'info':
now = time.time()
- print 'type address sub version time'
+ print 'type address sub version time'
for item in r:
- print '%4s %15s %3s %7s %.2f' % (item.get('name'),
+ print '%4s %21s %3s %7s %.2f' % (item.get('name'),
item.get('address'),
item.get('subscriptions'),
item.get('version'),
from backends.irc import ServerProcessor
backend_name = config.get('server', 'backend')
- if backend_name == 'abe':
- from backends.abe import BlockchainProcessor
- elif backend_name == 'libbitcoin':
+ if backend_name == 'libbitcoin':
from backends.libbitcoin import BlockchainProcessor
elif backend_name == 'leveldb':
from backends.bitcoind import BlockchainProcessor