aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMission Liao <mission.liao@dexon.org>2019-03-21 13:21:11 +0800
committerMission Liao <mission.liao@dexon.org>2019-03-21 13:21:11 +0800
commitfec2fb7d227d0fd2fc496d8cc3c5595a30590c04 (patch)
tree72f63521e635513843f175bd9cddf949173a79ca
parent0018ef629273757536575beae0965c1f0c75a430 (diff)
downloaddexon-consensus-fec2fb7d227d0fd2fc496d8cc3c5595a30590c04.tar.gz
dexon-consensus-fec2fb7d227d0fd2fc496d8cc3c5595a30590c04.tar.zst
dexon-consensus-fec2fb7d227d0fd2fc496d8cc3c5595a30590c04.zip
Tmp
-rw-r--r--core/types/block.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/types/block.go b/core/types/block.go
index f4fc8b6..0e21958 100644
--- a/core/types/block.go
+++ b/core/types/block.go
@@ -197,7 +197,7 @@ func (b *Block) String() string {
if len(b.Finalization.Randomness) == 0 {
return fmt.Sprintf("Block{Hash:%v %s}", b.Hash.String()[:6], b.Position)
}
- return fmt.Sprintf("Block{Hash:%v %s %s}", b.Hash.String()[:6], b.Position, hex.EncodeToString(r.Randomness)[:6])
+ return fmt.Sprintf("Block{Hash:%v %s %s}", b.Hash.String()[:6], b.Position, hex.EncodeToString(b.Finalization.Randomness)[:6])
}
// Clone returns a deep copy of a block.