Add original tipset to the string

Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
Jakub Sztandera 2020-07-06 19:46:25 +02:00
parent 50c773c6a3
commit 49800b8fec
No known key found for this signature in database
GPG Key ID: 9A9AF56F8B3879BA

View File

@ -36,7 +36,7 @@ func (bbr BadBlockReason) Linked(reason string, i ...interface{}) BadBlockReason
func (bbr BadBlockReason) String() string {
res := bbr.Reason
if bbr.OriginalReason != nil {
res += " caused by: " + bbr.OriginalReason.String()
res += " caused by: " + fmt.Sprintf("%s %s", bbr.OriginalReason.TipSet, bbr.OriginalReason.String())
}
return res
}