Skip to content

Commit

Permalink
Disable batch RPC with btcd
Browse files Browse the repository at this point in the history
  • Loading branch information
ouziel-slama committed Apr 20, 2015
1 parent 492d4cd commit 3f874ed
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion counterpartylib/lib/backend/btcd.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,17 @@ def get_chunks(l, n):
n = max(1, n)
return [l[i:i + n] for i in range(0, len(l), n)]

chunks = get_chunks(payload, config.RPC_BATCH_SIZE)
responses = []

# TODO: waiting for https://github.com/btcsuite/btcd/issues/329
'''
chunks = get_chunks(payload, config.RPC_BATCH_SIZE)
for chunk in chunks:
responses += rpc_call(chunk)
'''
for query in payload:
responses += rpc_call(query)

return responses

def extract_addresses(tx_hash):
Expand Down

0 comments on commit 3f874ed

Please sign in to comment.