What Happens to the Shares That Were Submitted Immediately after a Valid Block Is Found?
Shares submitted immediately after a valid block is found are considered 'stale shares' because the work they represent is based on the previous block's template and is no longer valid for the new block. These shares are rejected by the pool and do not contribute to the miner's reward for the newly found block.
The pool must immediately issue a new mining job.