mirror of
https://github.com/tendermint/tendermint.git
synced 2026-02-05 11:31:16 +00:00
block/state: gas price for block and tx
This commit is contained in:
@@ -107,12 +107,16 @@ type Header struct {
|
||||
Height uint
|
||||
Time time.Time
|
||||
Fees uint64
|
||||
GasPrice uint64
|
||||
NumTxs uint
|
||||
LastBlockHash []byte
|
||||
LastBlockParts PartSetHeader
|
||||
StateHash []byte
|
||||
}
|
||||
|
||||
// possible for actual gas price to be less than 1
|
||||
var GasPriceDivisor = 1000000
|
||||
|
||||
func (h *Header) Hash() []byte {
|
||||
buf := new(bytes.Buffer)
|
||||
hasher, n, err := sha256.New(), new(int64), new(error)
|
||||
|
||||
Reference in New Issue
Block a user