Skip to content
This repository was archived by the owner on Mar 26, 2025. It is now read-only.

Dump raw transaction on error #44

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion pybitcoin/services/blockcypher.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,6 @@ def broadcast_transaction(hex_tx, blockchain_client):
reply['success'] = True
return reply
else:
err_str = 'Tx hash missing from blockcypher response: ' + str(data)
err_str = 'Tx hash missing from blockcypher response: ' + str(data) + "\n\n"
err_str = err_str + 'Raw transaction hex: ' + str(hex_tx)
raise Exception(err_str)