# status store: chainBlockHeight 600450 (post-b2 is above it and unconfirmed)
Feature: Backfill profile recency
Background:
Given a psf-memo-db instance with profiles, posts, addrPostHeights, postParents, polls, status, and profileRecency stores
Given the fixture "profiles-with-post-history" is loaded into the profiles, posts, addrPostHeights, postParents, polls, status, and profileRecency stores
Scenario Outline: Backfill profile recency - 1 backfill records each profile's newest confirmed qualifying post
When the profile recency backfill utility is run
Then the profileRecency store records <addr> at block height <height> seen at <seen>
Examples:
| addr | height | seen |
| bitcoincash:qaddr-alice | 600100 | 100 |
| bitcoincash:qaddr-bob | 600400 | 200 |
Scenario: Backfill profile recency - 2 a profile with no qualifying post gets no recency record
When the profile recency backfill utility is run
Then the profileRecency store has no record for bitcoincash:qaddr-nopost
Scenario Outline: Backfill profile recency - 3 backfill is idempotent
When the profile recency backfill utility is run
And the profile recency backfill utility is run again
Then the profileRecency store records <addr> at block height <height> seen at <seen>