Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Commit ec9ff9c

Browse files
committed
Removed unused parameter
1 parent 50a0e10 commit ec9ff9c

File tree

3 files changed

+1
-9
lines changed

3 files changed

+1
-9
lines changed

evm/vm/base.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,6 @@ def create_block(
287287
vm_state = cls.get_state_class()(
288288
chaindb=BaseChainDB({}),
289289
block_header=block_header,
290-
is_stateless=True,
291290
)
292291

293292
witness = {}
@@ -439,7 +438,6 @@ def get_state(self, chaindb=None, block_header=None):
439438
return self.get_state_class()(
440439
chaindb,
441440
block_header,
442-
self.is_stateless,
443441
)
444442

445443
@property

evm/vm_state.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,12 @@ class BaseVMState(object):
1616
_chaindb = None
1717
block_header = None
1818
computation_class = None
19-
is_stateless = None
2019
access_logs = AccessLogs()
2120
receipts = None
2221

23-
def __init__(self, chaindb, block_header, is_stateless):
22+
def __init__(self, chaindb, block_header):
2423
self._chaindb = chaindb
2524
self.block_header = block_header
26-
self.is_stateless = is_stateless
2725

2826
self.receipts = []
2927

tests/core/vm/test_vm_state.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ def test_apply_transaction(chain_without_block_validation): # noqa: F811
8181
vm_state = FrontierVMState(
8282
chaindb=chaindb00,
8383
block_header=block_header00,
84-
is_stateless=True,
8584
)
8685

8786
# Use FrontierVMState to apply transaction
@@ -91,7 +90,6 @@ def test_apply_transaction(chain_without_block_validation): # noqa: F811
9190
vm_state1 = FrontierVMState(
9291
chaindb=chaindb1,
9392
block_header=block_header1,
94-
is_stateless=True,
9593
)
9694

9795
computation, block, _ = vm_state1.apply_transaction(
@@ -129,7 +127,6 @@ def test_apply_transaction(chain_without_block_validation): # noqa: F811
129127
vm_state2 = FrontierVMState(
130128
chaindb=witness_db,
131129
block_header=block_header2,
132-
is_stateless=True,
133130
)
134131
# Before applying
135132
assert post_vm_state1.block_header.state_root != vm_state2.block_header.state_root
@@ -154,7 +151,6 @@ def test_apply_transaction(chain_without_block_validation): # noqa: F811
154151
vm_state3 = FrontierVMState(
155152
chaindb=witness_db,
156153
block_header=block.header,
157-
is_stateless=True,
158154
)
159155
assert vm_state3.block_header.state_root == post_vm_state1.block_header.state_root
160156
assert vm_state3.block_header.state_root == result_block.header.state_root

0 commit comments

Comments
 (0)