laconicd-deprecated/x/feemarket
yihuang eb17366dcc
fix: consistent BaseFee check logic (#855)
Closes: #755

```
if not london_hardfork {
    # reject DynamicFeeTx
    # no `baseFeePerGas` field in block response
    # baseFee = nil
} else {
    # allow DynamicFeeTx
    # add `baseFeePerGas` field in block response
    if feemarketParams.NoBaseFee or height < feemarketParams.EnableHeight {
        # baseFee = 0
    } else {
        # init baseFee to initBaseFee and adjust in later blocks
    }
}
```

Update x/evm/keeper/keeper.go

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

add unit tests

Update app/ante/utils_test.go

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

changelog
2021-12-28 07:59:28 +00:00
..
client/cli ci: lint (#500) 2021-08-26 15:45:45 +00:00
keeper fix: consistent BaseFee check logic (#855) 2021-12-28 07:59:28 +00:00
simulation evm: fixed commented out simulations, pubsub, and handler tests (#655) 2021-10-11 13:09:53 +02:00
types feekeeper: remove redundant code (#815) 2021-12-16 23:24:53 +01:00
genesis.go all: linter (#532) 2021-09-05 11:03:06 +00:00
module.go feemarket: update base fee in BeginBlock (#822) 2021-12-15 02:10:52 +00:00