diff options
author | Mission Liao <mission.liao@dexon.org> | 2019-03-21 13:21:11 +0800 |
---|---|---|
committer | Mission Liao <mission.liao@dexon.org> | 2019-03-21 13:21:11 +0800 |
commit | fec2fb7d227d0fd2fc496d8cc3c5595a30590c04 (patch) | |
tree | 72f63521e635513843f175bd9cddf949173a79ca | |
parent | 0018ef629273757536575beae0965c1f0c75a430 (diff) | |
download | dexon-consensus-fec2fb7d227d0fd2fc496d8cc3c5595a30590c04.tar.gz dexon-consensus-fec2fb7d227d0fd2fc496d8cc3c5595a30590c04.tar.zst dexon-consensus-fec2fb7d227d0fd2fc496d8cc3c5595a30590c04.zip |
Tmp
-rw-r--r-- | core/types/block.go | 2 |
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. |