From 49800b8fec3144fd446316ee654e4005512de90c Mon Sep 17 00:00:00 2001 From: Jakub Sztandera Date: Mon, 6 Jul 2020 19:46:25 +0200 Subject: [PATCH] Add original tipset to the string Signed-off-by: Jakub Sztandera --- chain/badtscache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chain/badtscache.go b/chain/badtscache.go index 5c73a4b83..82020565a 100644 --- a/chain/badtscache.go +++ b/chain/badtscache.go @@ -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 }