vyperlang / titanoboa

a vyper interpreter
https://titanoboa.readthedocs.io
Other
251 stars 49 forks source link

Forked caching does not work #205

Closed sajal closed 5 months ago

sajal commented 5 months ago

It seems caching is not working as it should.

I installed plyvel manually , and with liberal use of print statements in boa/vm/fork.py. I observe self._db is the leveldb backed database at the end of __init__ , however during all fetch_multi calls, its value is MemoryDB({})

It appears that something is calling _init_mem_db and __init__ multiple times and between each usage of the cache, this in-effect disables both memory and disk cache.

charles-cooper commented 5 months ago

should be fixed in f84bad9cd437132dec9a1f2c3dc7f007bfb5fb43. thanks for the report!