mockChainBackend simulates a chain backend and tracks the number of calls via a private property called chainCallCount. This commit uses a write mutex instead of read mutex in the call to GetBlock, adds a getter method to access chainCallCount with a read mutex and uses a write mutex in resetChainCallCount. |
||
|---|---|---|
| .. | ||
| blockcache_test.go | ||
| blockcache.go | ||