test_coinbase_fee_with_state_gas_refund()¶
Documentation for tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_multi_block.py::test_coinbase_fee_with_state_gas_refund@622620d8.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_multi_block.py::test_coinbase_fee_with_state_gas_refund --fork Amsterdam
Assert the coinbase is paid on the post-refund gas, not the charge.
A 0 to x to 0 cycle refunds its state charge to the reservoir, so the sender is billed execution gas alone and the miner is paid on that same figure. Paying the miner on the pre-refund total would hand it the whole storage set for free.
Source code in tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_multi_block.py
345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 | |
Parametrized Test Cases¶
This test generates 1 parametrized test case across 1 fork.