diff options
author | Jimmy Hu <jimmy.hu@dexon.org> | 2018-11-05 13:58:18 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-12 17:27:17 +0800 |
commit | 0542a6a1b13c3c1235f68a2d0cca23976c241ca9 (patch) | |
tree | 6294dc62ee8c19e09d4592915d9c843472d24c77 /vendor/github.com/dexon-foundation/dexon-consensus/core/types/block.go | |
parent | 23fc54de4f886978578207acc15f469abecc46b7 (diff) | |
download | go-tangerine-0542a6a1b13c3c1235f68a2d0cca23976c241ca9.tar go-tangerine-0542a6a1b13c3c1235f68a2d0cca23976c241ca9.tar.gz go-tangerine-0542a6a1b13c3c1235f68a2d0cca23976c241ca9.tar.bz2 go-tangerine-0542a6a1b13c3c1235f68a2d0cca23976c241ca9.tar.lz go-tangerine-0542a6a1b13c3c1235f68a2d0cca23976c241ca9.tar.xz go-tangerine-0542a6a1b13c3c1235f68a2d0cca23976c241ca9.tar.zst go-tangerine-0542a6a1b13c3c1235f68a2d0cca23976c241ca9.zip |
vendor: sync to latest core
Diffstat (limited to 'vendor/github.com/dexon-foundation/dexon-consensus/core/types/block.go')
-rw-r--r-- | vendor/github.com/dexon-foundation/dexon-consensus/core/types/block.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/vendor/github.com/dexon-foundation/dexon-consensus/core/types/block.go b/vendor/github.com/dexon-foundation/dexon-consensus/core/types/block.go index bde07d518..27416d8c9 100644 --- a/vendor/github.com/dexon-foundation/dexon-consensus/core/types/block.go +++ b/vendor/github.com/dexon-foundation/dexon-consensus/core/types/block.go @@ -209,8 +209,7 @@ func (b *Block) DecodeRLP(s *rlp.Stream) error { } func (b *Block) String() string { - return fmt.Sprintf("Block(%v:%d:%d)", b.Hash.String()[:6], - b.Position.ChainID, b.Position.Height) + return fmt.Sprintf("Block(%v:%s)", b.Hash.String()[:6], &b.Position) } // Clone returns a deep copy of a block. |