Skip to content

Commit

Permalink
Merge pull request #19 from ElrondNetwork/add-total-gas-save-block
Browse files Browse the repository at this point in the history
Add total gas save block
  • Loading branch information
bogdan-rosianu authored Sep 22, 2021
2 parents b02b3f7 + d6e1032 commit d384f8a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions data/indexer/dtos.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,17 @@ type ArgsSaveBlockData struct {
Header data.HeaderHandler
SignersIndexes []uint64
NotarizedHeadersHashes []string
HeaderGasConsumption HeaderGasConsumption
TransactionsPool *Pool
}

// HeaderGasConsumption holds the data needed to save gas consumption of a header
type HeaderGasConsumption struct {
GasConsumed uint64
GasRefunded uint64
MaxGasPerBlock uint64
}

// Pool will holds all types of transaction
type Pool struct {
Txs map[string]data.TransactionHandler
Expand Down

0 comments on commit d384f8a

Please sign in to comment.