erigon-lib icon indicating copy to clipboard operation
erigon-lib copied to clipboard

Setup for stateful test of txpool

Open jomuel opened this issue 1 year ago • 2 comments

Remaining rules to draw input data and model txpool's behavior will be added in the next PR.

jomuel avatar Apr 27 '23 08:04 jomuel

@jomuel hi. need to merge "main" and run make test

AskAlexSharov avatar May 03 '23 06:05 AskAlexSharov

I think you need to do cleanup for db transactions (Rollback) and the databases (Close) using defer otherwise the tests hit the limit of open RO transactions. Also, it is better to create temporary directories using functions of the type testing.T, because these are automatically cleaned up on exit

AlexeyAkhunov avatar May 11 '23 16:05 AlexeyAkhunov