@@ -17,9 +17,8 @@ import (
1717	"github.com/stretchr/testify/require" 
1818	"go.uber.org/fx" 
1919
20- 	"github.com/celestiaorg/celestia-app/v5/test/util/genesis" 
21- 	"github.com/celestiaorg/celestia-app/v5/test/util/testnode" 
22- 	libshare "github.com/celestiaorg/go-square/v2/share" 
20+ 	"github.com/celestiaorg/celestia-app/v6/test/util/testnode" 
21+ 	libshare "github.com/celestiaorg/go-square/v3/share" 
2322
2423	"github.com/celestiaorg/celestia-node/api/rpc" 
2524	"github.com/celestiaorg/celestia-node/api/rpc/perms" 
@@ -112,23 +111,11 @@ func TestSubmission(t *testing.T) {
112111	ctx , cancel  :=  context .WithTimeout (context .Background (), 15 * time .Second )
113112	t .Cleanup (cancel )
114113
115- 	accounts  :=  []genesis.KeyringAccount {
116- 		{
117- 			Name :          "Elon" ,
118- 			InitialTokens : 342_000_000_000 ,
119- 		},
120- 		{
121- 			Name :          "Mark" ,
122- 			InitialTokens : 246_000_000_000 ,
123- 		},
124- 		{
125- 			Name :          "Jeff" ,
126- 			InitialTokens : 215_000_000_000 ,
127- 		},
128- 		{
129- 			Name :          "Warren" ,
130- 			InitialTokens : 154_000_000_000 ,
131- 		},
114+ 	accounts  :=  []string {
115+ 		"Elon" ,
116+ 		"Mark" ,
117+ 		"Jeff" ,
118+ 		"Warren" ,
132119	}
133120
134121	start  :=  time .Now ()
@@ -146,7 +133,7 @@ func TestSubmission(t *testing.T) {
146133		},
147134
148135		SubmitConfig : SubmitConfig {
149- 			DefaultKeyName : accounts [0 ]. Name ,
136+ 			DefaultKeyName : accounts [0 ],
150137			Network :        "private" ,
151138			CoreGRPCConfig : CoreGRPCConfig {
152139				Addr : cctx .GRPCClient .Target (),
@@ -192,16 +179,16 @@ func TestSubmission(t *testing.T) {
192179		t .Cleanup (cancel )
193180
194181		submitCfg  :=  state .NewTxConfig (
195- 			state .WithKeyName (acc . Name ),
182+ 			state .WithKeyName (acc ),
196183		)
197184		height , err  :=  client .Blob .Submit (submitCtx , submitBlobs , submitCfg )
198185		require .NoError (t , err )
199- 		fmt .Println ("submit" , acc . Name , height , time .Since (now ).String ())
186+ 		fmt .Println ("submit" , acc , height , time .Since (now ).String ())
200187
201188		received , err  :=  client .Blob .Get (submitCtx , height , namespace , b .Commitment )
202189		require .NoError (t , err )
203190		require .Equal (t , b .Data (), received .Data ())
204- 		fmt .Println ("get" , acc . Name , time .Since (now ).String ())
191+ 		fmt .Println ("get" , acc , time .Since (now ).String ())
205192	}
206193}
207194
@@ -284,25 +271,15 @@ func addAuth(t *testing.T) (fx.Option, string) {
284271	}), string (adminToken )
285272}
286273
287- func  setupConsensus (t  * testing.T , ctx  context.Context , accounts  ... genesis. KeyringAccount ) testnode.Context  {
274+ func  setupConsensus (t  * testing.T , ctx  context.Context , accounts  ... string ) testnode.Context  {
288275	t .Helper ()
289276	chainID  :=  "private" 
290- 	tmCfg  :=  testnode .DefaultTendermintConfig ()
291- 	tmCfg .Consensus .TimeoutCommit  =  time .Millisecond  *  1 
292- 
293- 	appConf  :=  testnode .DefaultAppConfig ()
294- 	appConf .API .Enable  =  true 
295- 
296- 	g  :=  genesis .NewDefaultGenesis ().
297- 		WithChainID (chainID ).
298- 		WithValidators (genesis .NewDefaultValidator (testnode .DefaultValidatorAccountName )).
299- 		WithConsensusParams (testnode .DefaultConsensusParams ()).WithKeyringAccounts (accounts ... )
300277
301278	config  :=  testnode .DefaultConfig ().
302279		WithChainID (chainID ).
303- 		WithTendermintConfig ( tmCfg ).
304- 		WithAppConfig ( appConf ).
305- 		WithGenesis ( g )
280+ 		WithFundedAccounts ( accounts ... ).
281+ 		WithTimeoutCommit ( 1   *   time . Millisecond ).
282+ 		WithDelayedPrecommitTimeout ( 50   *   time . Millisecond )
306283
307284	cctx , _ , _  :=  testnode .NewNetwork (t , config )
308285
0 commit comments