に動作します: ValueError: No JSON object could be decoded
コード: def get_children(node):
for child in node['children']:
yield child
for grandchild in get_children(child):
yield grandch
getblocktemplateメソッドを使用してビットコインブロックテンプレートを取得しようとしています。私はレスポンスを得ましたが、バイトからデコードしようとするとエラーが発生します。確認してください: s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
HOST = "184.70.15.166" # choose a node f