Skip to content

Commit

Permalink
Put debug logs into their own files
Browse files Browse the repository at this point in the history
  • Loading branch information
teor2345 committed Jan 17, 2023
1 parent 094ee4c commit ff9f6f3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion zebra-utils/zcash-rpc-block-template-to-proposal
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,13 @@ echo "Turning the template into block proposal data using $BLOCK_TEMPLATE_TO_PRO

for TIME_SOURCE in $TIME_SOURCES; do
PROPOSAL_DATA="$PROPOSAL_DATA_BASE.$TIME_SOURCE.json"
PROPOSAL_DEBUG="$PROPOSAL_DATA_BASE.$TIME_SOURCE.debug"

echo -n '{ "mode": "proposal", ' > "$PROPOSAL_DATA"
echo -n '"data": "' >> "$PROPOSAL_DATA"
cat "$TEMPLATE_NODE_TEMPLATE_RESPONSE" | \
$BLOCK_TEMPLATE_TO_PROPOSAL | \
$BLOCK_TEMPLATE_TO_PROPOSAL \
2> "$PROPOSAL_DEBUG" | \
(tr -d '\r\n' || true) \
>> "$PROPOSAL_DATA"
echo -n '"' >> "$PROPOSAL_DATA"
Expand Down

0 comments on commit ff9f6f3

Please sign in to comment.