@@ -72,7 +72,7 @@ func TestStorageNew(t *testing.T) {
7272}
7373
7474func TestStorageRetrieve (t * testing.T ) {
75- genesis := newBlock (t , newBlockConfig {})
75+ genesis := newTestBlock (t , newBlockConfig {})
7676 genesisBytes , err := genesis .Bytes ()
7777 require .NoError (t , err )
7878
@@ -131,9 +131,9 @@ func TestStorageRetrieve(t *testing.T) {
131131
132132func TestStorageIndexFails (t * testing.T ) {
133133 ctx := context .Background ()
134- genesis := newBlock (t , newBlockConfig {})
135- child1 := newBlock (t , newBlockConfig {prev : genesis })
136- child2 := newBlock (t , newBlockConfig {prev : child1 })
134+ genesis := newTestBlock (t , newBlockConfig {})
135+ child1 := newTestBlock (t , newBlockConfig {prev : genesis })
136+ child2 := newTestBlock (t , newBlockConfig {prev : child1 })
137137
138138 configs := newNetworkConfigs (t , 4 )
139139 configs [0 ].VM = genesis .vmBlock .(* wrappedBlock ).vm
@@ -216,10 +216,10 @@ func TestStorageIndexFails(t *testing.T) {
216216// previous digest of the block being indexed.
217217func TestIndexMismatchedChild (t * testing.T ) {
218218 ctx := context .Background ()
219- genesis := newBlock (t , newBlockConfig {})
220- child1 := newBlock (t , newBlockConfig {prev : genesis })
221- child1Sibling := newBlock (t , newBlockConfig {prev : genesis })
222- child2Nephew := newBlock (t , newBlockConfig {prev : child1Sibling })
219+ genesis := newTestBlock (t , newBlockConfig {})
220+ child1 := newTestBlock (t , newBlockConfig {prev : genesis })
221+ child1Sibling := newTestBlock (t , newBlockConfig {prev : genesis })
222+ child2Nephew := newTestBlock (t , newBlockConfig {prev : child1Sibling })
223223
224224 configs := newNetworkConfigs (t , 4 )
225225 configs [0 ].VM = genesis .vmBlock .(* wrappedBlock ).vm
@@ -251,7 +251,7 @@ func TestIndexMismatchedChild(t *testing.T) {
251251// TestStorageIndexSuccess indexes 10 blocks and verifies that they can be retrieved.
252252func TestStorageIndexSuccess (t * testing.T ) {
253253 ctx := context .Background ()
254- genesis := newBlock (t , newBlockConfig {})
254+ genesis := newTestBlock (t , newBlockConfig {})
255255 configs := newNetworkConfigs (t , 4 )
256256
257257 _ , verifier := NewBLSAuth (configs [0 ])
@@ -270,7 +270,7 @@ func TestStorageIndexSuccess(t *testing.T) {
270270
271271 prev := genesis
272272 for i := 0 ; i < numBlocks ; i ++ {
273- child := newBlock (t , newBlockConfig {prev : prev })
273+ child := newTestBlock (t , newBlockConfig {prev : prev })
274274 _ , err := child .Verify (ctx )
275275 require .NoError (t , err )
276276
0 commit comments