Open thenswan opened 3 weeks ago
One option to fix this is to wait till https://github.com/hashgraph/hedera-services/issues/14395 and make the pools above instance fields rather than static fields. There will be just on VirtualMap (per node), and it will have one hasher and one node cache.
This is a follow-up for https://github.com/hashgraph/hedera-services/pull/15562. After it will be merged, there will be static field initialization from a non-static method in the following classes:
VirtualNodeCache
-- staticgetCleaningPool
will be invoked from a non-static method and initializecleaningPool
.VirtualHasher
-- staticgetHashingPool
will be invoked from a non-static method and initializehashingPool
.(more detailed info will be in method-level docs)
The task is to refactor it so that there are no static fields but just instance fields.