Skip to content

Commit

Permalink
- dump encoded messages to debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
anonymoussprocket committed Sep 30, 2020
1 parent 9044b06 commit 7bb318d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/chain/tezos/TezosNodeWriter.ts
Expand Up @@ -50,11 +50,10 @@ export namespace TezosNodeWriter {
*/
// TODO: move to an appropriate place
export function forgeOperations(branch: string, operations: TezosP2PMessageTypes.Operation[]): string {
log.debug('TezosNodeWriter.forgeOperations:');
log.debug(JSON.stringify(operations));
log.debug(`TezosNodeWriter.forgeOperations: ${JSON.stringify(operations)}`);
let encoded = TezosMessageUtils.writeBranch(branch);
operations.forEach(m => encoded += TezosMessageCodec.encodeOperation(m));

log.debug(`TezosNodeWriter.forgeOperations: ${encoded}`);
return encoded;
}

Expand Down

0 comments on commit 7bb318d

Please sign in to comment.