problem: block height cache doesn't evict when old blocks are added

rel: ce010e50
This commit is contained in:
Igor Artamonov
2020-07-20 21:25:31 -04:00
parent ce010e50ce
commit 0d1980ce70
3 changed files with 16 additions and 20 deletions

View File

@@ -72,6 +72,7 @@ class HeightCacheSpec extends Specification {
block.timestamp = Instant.now()
cache.add(BlockContainer.from(block))
}
cache.purge()
def act1 = cache.read(100).block()
def act2 = cache.read(101).block()