From 9563927bbd75b38421fd64ec1fbf216c7c74645c Mon Sep 17 00:00:00 2001 From: Anton Kaliaev Date: Wed, 27 Jun 2018 11:52:47 +0400 Subject: [PATCH] print only tx's hash and size when logging blocks Closes #1799 --- types/block.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/block.go b/types/block.go index 6adc0c4c4..43856f1f4 100644 --- a/types/block.go +++ b/types/block.go @@ -464,7 +464,7 @@ func (data *Data) StringIndented(indent string) string { txStrings[i] = fmt.Sprintf("... (%v total)", len(data.Txs)) break } - txStrings[i] = fmt.Sprintf("Tx:%v", tx) + txStrings[i] = fmt.Sprintf("%X (%d bytes)", tx.Hash(), len(tx)) } return fmt.Sprintf(`Data{ %s %v @@ -504,7 +504,7 @@ func (data *EvidenceData) StringIndented(indent string) string { } evStrings[i] = fmt.Sprintf("Evidence:%v", ev) } - return fmt.Sprintf(`Data{ + return fmt.Sprintf(`EvidenceData{ %s %v %s}#%v`, indent, strings.Join(evStrings, "\n"+indent+" "),