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:
o = s.recv(1024)
+ if not o: break
msg += o
if msg.find('\n') != -1:
break
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