Skip to content

Commit

Permalink
318: Subscriber print data as string. (#319)
Browse files Browse the repository at this point in the history
  • Loading branch information
bartossh authored Nov 23, 2023
1 parent 00ac7a5 commit 2eab4c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion conf/setup_example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ client:
notary_node_url: "notary-node-genesis:8000"
webhooks_node_url: "webhooks-node:8000"
emulator:
tick_millisecond: 20
tick_millisecond: 5
random: false
client_url: "client-node:8000"
port: "8060"
Expand Down
8 changes: 4 additions & 4 deletions src/emulator/subscriber.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,13 +298,13 @@ func (sub *subscriber) checkIsAccepted(hash [32]byte, notaryNodeURL string) {
switch len(trx.ReceiverSignature) != 0 {
case true:
pterm.Info.Printf(
"Transaction with hash [ %x ] is secured in DAG node URL [ %s ] and <-ACCEPTED-> by the receiver [ %s ] for data %v .\n",
trx.Hash, notaryNodeURL, trx.ReceiverAddress, trx.Data,
"Transaction with hash [ %x ] is secured in DAG node URL [ %s ] and <-ACCEPTED-> by the receiver [ %s ] for data %s .\n",
trx.Hash, notaryNodeURL, trx.ReceiverAddress, string(trx.Data),
)
default:
pterm.Info.Printf(
"Transaction with hash [ %x ] is secured in DAG node URL [ %s ] and <-REJECTED-> by the receiver [ %s ] for data %v .\n",
trx.Hash, notaryNodeURL, trx.ReceiverAddress, trx.Data,
"Transaction with hash [ %x ] is secured in DAG node URL [ %s ] and <-REJECTED-> by the receiver [ %s ] for data %s .\n",
trx.Hash, notaryNodeURL, trx.ReceiverAddress, string(trx.Data),
)
}
}

0 comments on commit 2eab4c4

Please sign in to comment.