File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -300,6 +300,11 @@ class BlockchainTest(BaseTest):
300
300
genesis_environment : Environment = Field (default_factory = Environment )
301
301
verify_sync : bool = False
302
302
chain_id : int = 1
303
+ exclude_full_post_state_in_output : bool = False
304
+ """
305
+ Exclude the post state from the fixture output.
306
+ In this case, the state verification is only performed based on the state root.
307
+ """
303
308
304
309
supported_fixture_formats : ClassVar [Sequence [FixtureFormat | LabeledFixtureFormat ]] = [
305
310
BlockchainFixture ,
@@ -652,7 +657,7 @@ def make_fixture(
652
657
blocks = fixture_blocks ,
653
658
last_block_hash = head ,
654
659
pre = pre ,
655
- post_state = alloc ,
660
+ post_state = alloc if not self . exclude_full_post_state_in_output else None ,
656
661
config = FixtureConfig (
657
662
fork = network_info ,
658
663
blob_schedule = FixtureBlobSchedule .from_blob_schedule (fork .blob_schedule ()),
@@ -751,7 +756,7 @@ def make_hive_fixture(
751
756
payloads = fixture_payloads ,
752
757
fcu_version = fcu_version ,
753
758
pre = pre ,
754
- post_state = alloc ,
759
+ post_state = alloc if not self . exclude_full_post_state_in_output else None ,
755
760
sync_payload = sync_payload ,
756
761
last_block_hash = head_hash ,
757
762
config = FixtureConfig (
You can’t perform that action at this time.
0 commit comments