mirror of
				https://github.com/0glabs/0g-chain.git
				synced 2025-11-04 06:07:26 +00:00 
			
		
		
		
	change app name
This commit is contained in:
		
							parent
							
								
									4ab69f33db
								
							
						
					
					
						commit
						0f6f109f95
					
				@ -26,7 +26,7 @@ import (
 | 
				
			|||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const (
 | 
					const (
 | 
				
			||||||
	appName = "GaiaApp"
 | 
						appName = "kava"
 | 
				
			||||||
	// DefaultKeyPass contains the default key password for genesis transactions
 | 
						// DefaultKeyPass contains the default key password for genesis transactions
 | 
				
			||||||
	DefaultKeyPass = "12345678"
 | 
						DefaultKeyPass = "12345678"
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
				
			|||||||
@ -355,7 +355,7 @@ func TestFullGaiaSimulation(t *testing.T) {
 | 
				
			|||||||
		os.RemoveAll(dir)
 | 
							os.RemoveAll(dir)
 | 
				
			||||||
	}()
 | 
						}()
 | 
				
			||||||
	app := NewApp(logger, db, nil, true, 0, fauxMerkleModeOpt)
 | 
						app := NewApp(logger, db, nil, true, 0, fauxMerkleModeOpt)
 | 
				
			||||||
	require.Equal(t, "GaiaApp", app.Name())
 | 
						require.Equal(t, "kava", app.Name())
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// Run randomized simulation
 | 
						// Run randomized simulation
 | 
				
			||||||
	_, err := simulation.SimulateFromSeed(getSimulateFromSeedInput(t, app))
 | 
						_, err := simulation.SimulateFromSeed(getSimulateFromSeedInput(t, app))
 | 
				
			||||||
@ -389,7 +389,7 @@ func TestGaiaImportExport(t *testing.T) {
 | 
				
			|||||||
		os.RemoveAll(dir)
 | 
							os.RemoveAll(dir)
 | 
				
			||||||
	}()
 | 
						}()
 | 
				
			||||||
	app := NewApp(logger, db, nil, true, 0, fauxMerkleModeOpt)
 | 
						app := NewApp(logger, db, nil, true, 0, fauxMerkleModeOpt)
 | 
				
			||||||
	require.Equal(t, "GaiaApp", app.Name())
 | 
						require.Equal(t, "kava", app.Name())
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// Run randomized simulation
 | 
						// Run randomized simulation
 | 
				
			||||||
	_, err := simulation.SimulateFromSeed(getSimulateFromSeedInput(t, app))
 | 
						_, err := simulation.SimulateFromSeed(getSimulateFromSeedInput(t, app))
 | 
				
			||||||
@ -416,7 +416,7 @@ func TestGaiaImportExport(t *testing.T) {
 | 
				
			|||||||
		os.RemoveAll(newDir)
 | 
							os.RemoveAll(newDir)
 | 
				
			||||||
	}()
 | 
						}()
 | 
				
			||||||
	newApp := NewApp(log.NewNopLogger(), newDB, nil, true, 0, fauxMerkleModeOpt)
 | 
						newApp := NewApp(log.NewNopLogger(), newDB, nil, true, 0, fauxMerkleModeOpt)
 | 
				
			||||||
	require.Equal(t, "GaiaApp", newApp.Name())
 | 
						require.Equal(t, "kava", newApp.Name())
 | 
				
			||||||
	var genesisState GenesisState
 | 
						var genesisState GenesisState
 | 
				
			||||||
	err = app.cdc.UnmarshalJSON(appState, &genesisState)
 | 
						err = app.cdc.UnmarshalJSON(appState, &genesisState)
 | 
				
			||||||
	if err != nil {
 | 
						if err != nil {
 | 
				
			||||||
@ -479,7 +479,7 @@ func TestGaiaSimulationAfterImport(t *testing.T) {
 | 
				
			|||||||
		os.RemoveAll(dir)
 | 
							os.RemoveAll(dir)
 | 
				
			||||||
	}()
 | 
						}()
 | 
				
			||||||
	app := NewApp(logger, db, nil, true, 0, fauxMerkleModeOpt)
 | 
						app := NewApp(logger, db, nil, true, 0, fauxMerkleModeOpt)
 | 
				
			||||||
	require.Equal(t, "GaiaApp", app.Name())
 | 
						require.Equal(t, "kava", app.Name())
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// Run randomized simulation
 | 
						// Run randomized simulation
 | 
				
			||||||
	stopEarly, err := simulation.SimulateFromSeed(getSimulateFromSeedInput(t, app))
 | 
						stopEarly, err := simulation.SimulateFromSeed(getSimulateFromSeedInput(t, app))
 | 
				
			||||||
@ -515,7 +515,7 @@ func TestGaiaSimulationAfterImport(t *testing.T) {
 | 
				
			|||||||
		os.RemoveAll(newDir)
 | 
							os.RemoveAll(newDir)
 | 
				
			||||||
	}()
 | 
						}()
 | 
				
			||||||
	newApp := NewApp(log.NewNopLogger(), newDB, nil, true, 0, fauxMerkleModeOpt)
 | 
						newApp := NewApp(log.NewNopLogger(), newDB, nil, true, 0, fauxMerkleModeOpt)
 | 
				
			||||||
	require.Equal(t, "GaiaApp", newApp.Name())
 | 
						require.Equal(t, "kava", newApp.Name())
 | 
				
			||||||
	newApp.InitChain(abci.RequestInitChain{
 | 
						newApp.InitChain(abci.RequestInitChain{
 | 
				
			||||||
		AppStateBytes: appState,
 | 
							AppStateBytes: appState,
 | 
				
			||||||
	})
 | 
						})
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user