mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-31 16:21:21 +00:00
475fa08fdf
Code news up an oracle for every call so existing cache checks always came back as 0. Moved cache up a layer and pass in via the new `gasprice.Cache` interface. Looked at putting the oracle instance onto the ethApi itself to re-use it that way, but the backend transaction made it a little hard work as we can't re-use that. This seemed cleaner but happy to take feedback. Locally takes me from ±2.5k rps to ±43k rps so quite a difference there. (k6 with 1000 virtual users) |
||
---|---|---|
.. | ||
feehistory_test.go | ||
feehistory.go | ||
gasprice_test.go | ||
gasprice.go |