Test Warm Coinbase¶
Documentation for test cases from tests/shanghai/eip3651_warm_coinbase/test_warm_coinbase.py
.
Generate fixtures for these test cases with:
fill -v tests/shanghai/eip3651_warm_coinbase/test_warm_coinbase.py
Tests EIP-3651: Warm COINBASE
Tests for EIP-3651: Warm COINBASE.
Tests ported from:
test_warm_coinbase_call_out_of_gas(state_test, fork, opcode, contract_under_test_code, call_gas_exact, use_sufficient_gas)
¶
Test that the coinbase is warm by accessing the COINBASE with each of the following opcodes:
- CALL
- CALLCODE
- DELEGATECALL
- STATICCALL
Source code in tests/shanghai/eip3651_warm_coinbase/test_warm_coinbase.py
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 |
|
test_warm_coinbase_gas_usage(state_test, fork, opcode, code_gas_measure)
¶
Test the gas usage of opcodes affected by assuming a warm coinbase:
- EXTCODESIZE
- EXTCODECOPY
- EXTCODEHASH
- BALANCE
- CALL
- CALLCODE
- DELEGATECALL
- STATICCALL
Source code in tests/shanghai/eip3651_warm_coinbase/test_warm_coinbase.py
215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 |
|