File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -164,6 +164,8 @@ func TestHealth(t *testing.T) {
164164}
165165
166166func TestGenesisAndValidators (t * testing.T ) {
167+ t .Skip ("Skipping due to large genesis file size" )
168+
167169 for i , c := range GetClients () {
168170
169171 // make sure this is the right genesis file
@@ -189,6 +191,8 @@ func TestGenesisAndValidators(t *testing.T) {
189191}
190192
191193func TestGenesisChunked (t * testing.T ) {
194+ t .Skip ("Skipping due to large genesis file size" )
195+
192196 ctx , cancel := context .WithCancel (context .Background ())
193197 defer cancel ()
194198
Original file line number Diff line number Diff line change @@ -96,15 +96,21 @@ func (env *Environment) UnsafeDialPeers(
9696
9797// Genesis returns genesis file.
9898// More: https://docs.cometbft.com/v0.38.x/rpc/#/Info/genesis
99+ //
100+ //nolint:govet
99101func (env * Environment ) Genesis (* rpctypes.Context ) (* ctypes.ResultGenesis , error ) {
102+ return nil , errors .New ("endpoint is disabled due to large genesis file size" )
103+
100104 if len (env .genChunks ) > 1 {
101105 return nil , errors .New ("genesis response is large, please use the genesis_chunked API instead" )
102106 }
103107
104108 return & ctypes.ResultGenesis {Genesis : env .GenDoc }, nil
105109}
106110
111+ //nolint:govet
107112func (env * Environment ) GenesisChunked (_ * rpctypes.Context , chunk uint ) (* ctypes.ResultGenesisChunk , error ) {
113+ return nil , errors .New ("endpoint is disabled due to large genesis file size" )
108114 if env .genChunks == nil {
109115 return nil , fmt .Errorf ("service configuration error, genesis chunks are not initialized" )
110116 }
You can’t perform that action at this time.
0 commit comments