fix duplicate stake misdetection

caused by dropping orphan blocks