Skip to content

Commit 11d79bc

Browse files
author
Jan Xie
committed
add test config for EIP158
1 parent e5afd20 commit 11d79bc

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/test_helper.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,14 @@ def get_config_overrides(filename)
158158
override[:homestead_fork_blknum] = 0
159159
override[:anti_dos_fork_blknum] = 0
160160
override[:dao_fork_blknum] = 2**100
161+
elsif filename =~ /StateTests_EIP158/
162+
override[:anti_dos_fork_blknum] = 0
163+
override[:spurious_dragon_fork_blknum] = 0
164+
override[:homestead_fork_blknum] = 10000
165+
override[:dao_fork_blknum] = 2**100
166+
if filename =~ /StateTests_EIP158_Homestead/
167+
override[:homestead_fork_blknum] = 0
168+
end
161169
end
162170

163171
if filename =~ /bcTheDaoTest/
@@ -374,6 +382,8 @@ def block_hash(n)
374382
class Minitest::Test
375383
class <<self
376384
def run_fixture(path, limit: nil, except: nil, only: nil)
385+
only = /#{ARGV[1]}/ if ARGV[1]
386+
377387
fixture = load_fixture(path).to_a
378388
fixture = fixture[0,limit] if limit
379389

0 commit comments

Comments
 (0)