|
71 | 71 | )
|
72 | 72 |
|
73 | 73 |
|
74 |
| -VMConfigurationType = Iterable[Tuple[int, Type[BaseVM]]] |
| 74 | +VMConfiguration = Iterable[Tuple[int, Type[BaseVM]]] |
75 | 75 |
|
76 | 76 |
|
77 | 77 | def build(obj: Any, *applicators: Callable[..., Any]) -> Any:
|
@@ -159,7 +159,7 @@ def _is_homestead(vm_class: Type[BaseVM]) -> bool:
|
159 | 159 |
|
160 | 160 |
|
161 | 161 | @to_tuple
|
162 |
| -def _set_vm_dao_support_false(vm_configuration: VMConfigurationType) -> VMConfigurationType: |
| 162 | +def _set_vm_dao_support_false(vm_configuration: VMConfiguration) -> VMConfiguration: |
163 | 163 | for fork_block, vm_class in vm_configuration:
|
164 | 164 | if _is_homestead(vm_class):
|
165 | 165 | yield fork_block, vm_class.configure(support_dao_fork=False)
|
@@ -187,7 +187,7 @@ def disable_dao_fork(chain_class: BaseChain) -> type:
|
187 | 187 |
|
188 | 188 | @to_tuple
|
189 | 189 | def _set_vm_dao_fork_block_number(dao_fork_block_number: int,
|
190 |
| - vm_configuration: VMConfigurationType) -> VMConfigurationType: |
| 190 | + vm_configuration: VMConfiguration) -> VMConfiguration: |
191 | 191 | for fork_block, vm_class in vm_configuration:
|
192 | 192 | if _is_homestead(vm_class):
|
193 | 193 | yield fork_block, vm_class.configure(
|
@@ -256,7 +256,7 @@ def _get_default_genesis_params(genesis_state: AccountState) -> Iterable[Tuple[s
|
256 | 256 |
|
257 | 257 |
|
258 | 258 | @to_tuple
|
259 |
| -def _mix_in_pow_mining(vm_configuration: VMConfigurationType) -> VMConfigurationType: |
| 259 | +def _mix_in_pow_mining(vm_configuration: VMConfiguration) -> VMConfiguration: |
260 | 260 | for fork_block, vm_class in vm_configuration:
|
261 | 261 | vm_class_with_pow_mining = type(vm_class.__name__, (POWMiningMixin, vm_class), {})
|
262 | 262 | yield fork_block, vm_class_with_pow_mining
|
@@ -288,7 +288,7 @@ def validate_seal(cls, header: BlockHeader) -> None:
|
288 | 288 |
|
289 | 289 |
|
290 | 290 | @to_tuple
|
291 |
| -def _mix_in_disable_seal_validation(vm_configuration: VMConfigurationType) -> VMConfigurationType: |
| 291 | +def _mix_in_disable_seal_validation(vm_configuration: VMConfiguration) -> VMConfiguration: |
292 | 292 | for fork_block, vm_class in vm_configuration:
|
293 | 293 | vm_class_without_seal_validation = type(
|
294 | 294 | vm_class.__name__,
|
|
0 commit comments