@@ -69,7 +69,6 @@ func (s *ChainstateManagerTestSuite) TestReadBlock(t *testing.T) {
6969
7070 // Test reading genesis block
7171 genesis := chain .GetGenesis ()
72-
7372 genesisBlock , err := s .Manager .ReadBlock (genesis )
7473 if err != nil {
7574 t .Fatalf ("ChainstateManager.ReadBlock() for genesis error = %v" , err )
@@ -79,18 +78,8 @@ func (s *ChainstateManagerTestSuite) TestReadBlock(t *testing.T) {
7978 }
8079 defer genesisBlock .Destroy ()
8180
82- // Verify genesis block has expected properties
83- genesisHash := genesisBlock .Hash ()
84- defer genesisHash .Destroy ()
85-
86- hashBytes := genesisHash .Bytes ()
87- if len (hashBytes ) != 32 {
88- t .Errorf ("Expected hash length 32, got %d" , len (hashBytes ))
89- }
90-
9181 // Test reading tip block
9282 tip := chain .GetTip ()
93-
9483 tipBlock , err := s .Manager .ReadBlock (tip )
9584 if err != nil {
9685 t .Fatalf ("ChainstateManager.ReadBlock() for tip error = %v" , err )
@@ -99,15 +88,6 @@ func (s *ChainstateManagerTestSuite) TestReadBlock(t *testing.T) {
9988 t .Fatal ("Read tip block is nil" )
10089 }
10190 defer tipBlock .Destroy ()
102-
103- // Verify tip block properties
104- tipHash := tipBlock .Hash ()
105- defer tipHash .Destroy ()
106-
107- tipHashBytes := tipHash .Bytes ()
108- if len (tipHashBytes ) != 32 {
109- t .Errorf ("Expected tip hash length 32, got %d" , len (tipHashBytes ))
110- }
11191}
11292
11393func (s * ChainstateManagerTestSuite ) TestGetBlockTreeEntryByHash (t * testing.T ) {
0 commit comments