diff options
author | Mission Liao <mission.liao@dexon.org> | 2018-10-24 19:40:52 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-24 19:40:52 +0800 |
commit | 14b91441825d6b990527e947c021a5311e951c25 (patch) | |
tree | 130b7089fb17179402476c9f1b0ffea2edfd8aae /core/types/position.go | |
parent | 04bd5951c10f12a3f61efcc6e0d2105b39ae70ad (diff) | |
download | tangerine-consensus-14b91441825d6b990527e947c021a5311e951c25.tar tangerine-consensus-14b91441825d6b990527e947c021a5311e951c25.tar.gz tangerine-consensus-14b91441825d6b990527e947c021a5311e951c25.tar.bz2 tangerine-consensus-14b91441825d6b990527e947c021a5311e951c25.tar.lz tangerine-consensus-14b91441825d6b990527e947c021a5311e951c25.tar.xz tangerine-consensus-14b91441825d6b990527e947c021a5311e951c25.tar.zst tangerine-consensus-14b91441825d6b990527e947c021a5311e951c25.zip |
core: fix stuffs (#250)
* fix discontinuous finalization height
* remove types.Block.Witness.Timestamp field
* add field: types.Block.Finalization.ParentHash
* fix log format of CRS
* switch round and chain in log of types.Position.
Diffstat (limited to 'core/types/position.go')
-rw-r--r-- | core/types/position.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/types/position.go b/core/types/position.go index 51de405..f41be32 100644 --- a/core/types/position.go +++ b/core/types/position.go @@ -35,7 +35,7 @@ type Position struct { } func (pos *Position) String() string { - return fmt.Sprintf("pos[%d:%d:%d]", pos.ChainID, pos.Round, pos.Height) + return fmt.Sprintf("pos[%d:%d:%d]", pos.Round, pos.ChainID, pos.Height) } // Equal checks if two positions are equal, it panics when their chainIDs |