Skip to content

Commit

Permalink
Refactoring: remove unused fields from parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky committed Mar 4, 2025
1 parent 74810f8 commit 9ae96f5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ linters:
- errcheck
- ineffassign
- containedctx
- tenv
- usetesting
- musttag
- mirror
- tagalign
Expand Down
18 changes: 0 additions & 18 deletions pkg/indexer/parser/parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,24 +134,6 @@ func getBlock() types.BlockData {
TxsResults: nil,
BeginBlockEvents: nil,
EndBlockEvents: nil,
ValidatorUpdates: nil,
ConsensusParamUpdates: &types.ConsensusParams{
Block: &types.BlockParams{
MaxBytes: 0,
MaxGas: 0,
},
Evidence: &types.EvidenceParams{
MaxAgeNumBlocks: 0,
MaxAgeDuration: 0,
MaxBytes: 0,
},
Validator: &types.ValidatorParams{
PubKeyTypes: nil,
},
Version: &types.VersionParams{
AppVersion: 0,
},
},
},
}
}
Expand Down
12 changes: 6 additions & 6 deletions pkg/types/block_results.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ import (
// ResultBlockResults is an ABCI results from a block
// origin: github.com/celestiaorg/[email protected]/rpc/core/types/responses.go
type ResultBlockResults struct {
Height Level `json:"height,string"`
TxsResults []*ResponseDeliverTx `json:"txs_results"`
BeginBlockEvents []Event `json:"begin_block_events"`
EndBlockEvents []Event `json:"end_block_events"`
ValidatorUpdates []ValidatorUpdate `json:"validator_updates"`
ConsensusParamUpdates *ConsensusParams `json:"consensus_param_updates"`
Height Level `json:"height,string"`
TxsResults []*ResponseDeliverTx `json:"txs_results"`
BeginBlockEvents []Event `json:"begin_block_events"`
EndBlockEvents []Event `json:"end_block_events"`
// ValidatorUpdates []ValidatorUpdate `json:"validator_updates"`
// ConsensusParamUpdates *ConsensusParams `json:"consensus_param_updates"`
}

type ResponseDeliverTx struct {
Expand Down

0 comments on commit 9ae96f5

Please sign in to comment.