diff options
author | Haoping Ku <haoping.ku@dexon.org> | 2018-08-17 17:57:15 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-17 17:57:15 +0800 |
commit | fd8358a607ccd564a5e8158451a5d9ef9cb7b55b (patch) | |
tree | da476d0227f9e979bc2b4bedd35407d72560d0dc /blockdb | |
parent | a146ce5ee9eea1a37d86059dcc13cdf147c9e38e (diff) | |
download | tangerine-consensus-fd8358a607ccd564a5e8158451a5d9ef9cb7b55b.tar tangerine-consensus-fd8358a607ccd564a5e8158451a5d9ef9cb7b55b.tar.gz tangerine-consensus-fd8358a607ccd564a5e8158451a5d9ef9cb7b55b.tar.bz2 tangerine-consensus-fd8358a607ccd564a5e8158451a5d9ef9cb7b55b.tar.lz tangerine-consensus-fd8358a607ccd564a5e8158451a5d9ef9cb7b55b.tar.xz tangerine-consensus-fd8358a607ccd564a5e8158451a5d9ef9cb7b55b.tar.zst tangerine-consensus-fd8358a607ccd564a5e8158451a5d9ef9cb7b55b.zip |
core: implicit fields in types.Block used in reliable broadcast (#59)
Diffstat (limited to 'blockdb')
-rw-r--r-- | blockdb/level-db_test.go | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/blockdb/level-db_test.go b/blockdb/level-db_test.go index 863adba..f6c14c5 100644 --- a/blockdb/level-db_test.go +++ b/blockdb/level-db_test.go @@ -56,7 +56,6 @@ func (s *LevelDBTestSuite) TestBasicUsage() { ProposerID: validator1, Hash: hash1, Height: 1, - Status: types.BlockStatusInit, } err = db.Update(block1) s.Equal(ErrBlockDoesNotExist, err) @@ -69,7 +68,6 @@ func (s *LevelDBTestSuite) TestBasicUsage() { queried, err := db.Get(block1.Hash) s.Nil(err) s.Equal(queried.ProposerID, block1.ProposerID) - s.Equal(queried.Status, block1.Status) // Test Update. now := time.Now().UTC() @@ -105,7 +103,6 @@ func (s *LevelDBTestSuite) TestSyncIndex() { ProposerID: types.ValidatorID{Hash: common.NewRandomHash()}, Hash: common.NewRandomHash(), Height: uint64(i), - Status: types.BlockStatusInit, } db.Put(block) blocks[i] = block |