Browse Source

print only tx's hash and size when logging blocks

Closes #1799
pull/1824/head
Anton Kaliaev 7 years ago
parent
commit
9563927bbd
No known key found for this signature in database GPG Key ID: 7B6881D965918214
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      types/block.go

+ 2
- 2
types/block.go View File

@ -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+" "),


Loading…
Cancel
Save