diff --git a/data/indexer/dtos.go b/data/indexer/dtos.go index 0b253e239..b7b96250a 100644 --- a/data/indexer/dtos.go +++ b/data/indexer/dtos.go @@ -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