• Mark Tyneway's avatar
    gas-oracle: update to set L1 base fee · d89b5005
    Mark Tyneway authored
    The `gas-oracle` will now periodically ping L1 asking
    for the latest header and will update the `l1BaseFee`
    value in the `OVM_GasPriceOracle` oracle predeploy when
    the base fee changes more than a configurable amount.
    
    This is very similar to the way that the `gas-oracle` sets
    the L2 gas price based on the amount of gas that has
    been used in an amount of time.
    
    Note that this is a breaking change when it comes to config.
    Some config options are renamed and some config options are added.
    
    `--ethereum-http-url` now corresponds to the L1 URL and
    `--layer-two-http-url` corresponds to the L2 URL. Previously,
    only an L2 URL was provided and it was called `--ethereum-http-url`.
    
    Now there are flags for `--l1-chain-id` and `--l2-chain-id` when
    previously `--chain-id` corresponded to the L2 chain id.
    
    There are also now flags for turning on and off functionality.
    `--enable-l1-base-fee` and `--enable-l2-gas-price` are used
    to turn on updating of the corresponding values. They are on by
    default.
    
    The `--l1-base-fee-significant-factor` is expected to be a decimal
    and determines how much the base fee on L1 must change before the
    `gas-oracle` will consider updating the base fee by sending
    a transaction to the `OVM_GasPriceOracle`.
    d89b5005
Name
Last commit
Last update
..
README.md Loading commit data...
big-candles-flow.md Loading commit data...
config.json Loading commit data...
curly-pumpkins-yell.md Loading commit data...
cyan-ghosts-live.md Loading commit data...
dirty-bees-repair.md Loading commit data...
fifty-bulldogs-march.md Loading commit data...
five-baboons-serve.md Loading commit data...
five-coins-bake.md Loading commit data...
flat-goats-taste.md Loading commit data...
four-news-drive.md Loading commit data...
good-grapes-wonder.md Loading commit data...
happy-candles-burn.md Loading commit data...
hungry-mails-applaud.md Loading commit data...
khaki-pots-repeat.md Loading commit data...
large-dryers-tap.md Loading commit data...
large-phones-smile.md Loading commit data...
many-masks-exercise.md Loading commit data...
metal-llamas-kneel.md Loading commit data...
nice-flowers-lay.md Loading commit data...
olive-knives-itch.md Loading commit data...
olive-mirrors-kick.md Loading commit data...
pink-tomatoes-approve.md Loading commit data...
plenty-numbers-breathe.md Loading commit data...
popular-gorillas-burn.md Loading commit data...
silent-rice-shout.md Loading commit data...
sixty-countries-know.md Loading commit data...
smart-garlics-glow.md Loading commit data...
sour-lemons-chew.md Loading commit data...
stale-moons-add.md Loading commit data...
stale-olives-stare.md Loading commit data...
three-gifts-fail.md Loading commit data...
twenty-items-sneeze.md Loading commit data...
unlucky-beds-train.md Loading commit data...