mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-07 18:21:20 +00:00
sharding: fix broken tests
Former-commit-id: 22b585bd87ebb8c63808c59d0ca249d891b100c3 [formerly 1de60c6c145e96f61cbdd2d969632e2f0732568a] Former-commit-id: 57769a0dbc37ced79e98b2c7c418bdf6ade49f93
This commit is contained in:
parent
e0ac2918cc
commit
8aa993da5b
@ -109,8 +109,6 @@ func TestShard_CollationByHash(t *testing.T) {
|
|||||||
shardDB := database.NewShardKV()
|
shardDB := database.NewShardKV()
|
||||||
shard := NewShard(big.NewInt(1), shardDB)
|
shard := NewShard(big.NewInt(1), shardDB)
|
||||||
|
|
||||||
hash := collation.Header().Hash()
|
|
||||||
|
|
||||||
// should throw error if saving the collation before setting the chunk root
|
// should throw error if saving the collation before setting the chunk root
|
||||||
// in header.
|
// in header.
|
||||||
if err := shard.SaveCollation(collation); err == nil {
|
if err := shard.SaveCollation(collation); err == nil {
|
||||||
@ -120,6 +118,8 @@ func TestShard_CollationByHash(t *testing.T) {
|
|||||||
// we set the chunk root.
|
// we set the chunk root.
|
||||||
collation.CalculateChunkRoot()
|
collation.CalculateChunkRoot()
|
||||||
|
|
||||||
|
hash := collation.Header().Hash()
|
||||||
|
|
||||||
// calculate a new hash now that chunk root is set.
|
// calculate a new hash now that chunk root is set.
|
||||||
newHash := collation.Header().Hash()
|
newHash := collation.Header().Hash()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user