Skip to content

Commit 0eb9a5d

Browse files
committed
fix: log transactions as hex ids in txsubmission server
Signed-off-by: Chris Gianelloni <[email protected]>
1 parent 0ddfdef commit 0eb9a5d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

protocol/txsubmission/server.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,13 @@ func (s *Server) RequestTxIds(
109109

110110
// RequestTxs requests the content of the requested TX identifiers from the remote node's mempool
111111
func (s *Server) RequestTxs(txIds []TxId) ([]TxBody, error) {
112+
var txString []string
113+
for _, t := range txIds {
114+
txString = append(txString, fmt.Sprintf("%x", t))
115+
}
112116
s.Protocol.Logger().
113117
Debug(
114-
fmt.Sprintf("calling RequestTxs(txIds: %+v)", txIds),
118+
fmt.Sprintf("calling RequestTxs(txIds: %+v)", txString),
115119
"component", "network",
116120
"protocol", ProtocolName,
117121
"role", "server",

0 commit comments

Comments
 (0)