Skip to content

Commit

Permalink
Merge pull request #24 from krish-nr/krish/p2p_sync
Browse files Browse the repository at this point in the history
snap: fix snap-tests to handle legacy code lookups
  • Loading branch information
owen-reorg authored Oct 18, 2023
2 parents e7cb32f + d792c9f commit d29df43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/devp2p/internal/ethtest/snap.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,11 +249,11 @@ func (s *Suite) TestSnapGetByteCodes(t *utesting.T) {
// A few stateroots
{
nBytes: 10000, hashes: []common.Hash{s.chain.RootAt(0), s.chain.RootAt(999)},
expHashes: 0,
expHashes: 1, // 32-byte keys are detected as code, even if not code (like genesis hash), in legacy lookups.
},
{
nBytes: 10000, hashes: []common.Hash{s.chain.RootAt(0), s.chain.RootAt(0)},
expHashes: 0,
expHashes: 2, // 32-byte keys are detected as code, even if not code (like genesis hash), in legacy lookups.
},
// Empties
{
Expand Down

0 comments on commit d29df43

Please sign in to comment.