vocdoni-node icon indicating copy to clipboard operation
vocdoni-node copied to clipboard

Disable vote cache during replay

Open p4u opened this issue 1 year ago • 0 comments

The cache purge is triggered many times per second. That's caused during the block replay stage.

2022-10-26T16:43:59Z	DEBUG	vochain/cache.go:110	removed 0 votes from cache
2022-10-26T16:44:00Z	DEBUG	vochain/cache.go:110	removed 0 votes from cache
2022-10-26T16:44:00Z	DEBUG	vochain/cache.go:110	removed 0 votes from cache
2022-10-26T16:44:00Z	DEBUG	vochain/cache.go:110	removed 0 votes from cache
2022-10-26T16:44:00Z	DEBUG	vochain/cache.go:110	removed 0 votes from cache

The Vote Cache might be disabled while replaying blocks since deliverTx() is executed directly (without previous checkTx() execution since the mempool is not working).

p4u avatar Oct 26 '22 16:10 p4u