ethereum / py-evm

A Python implementation of the Ethereum Virtual Machine
https://py-evm.readthedocs.io/en/latest/
MIT License
2.26k stars 650 forks source link

update CodeStream slot name pc to program_counter #2115

Closed pacrob closed 1 year ago

pacrob commented 1 year ago

What was wrong?

pc was used in the __slots__ list, but program_counter was used throughout the rest of the CodeStream class. Closes #2109

How was it fixed?

Changed slot pc to program_counter. Quick timeit tests showed ~25% faster access to program_counter :tada:

Todo:

Cute Animal Picture

image