Skip to content

Commit

Permalink
fix: only validate gaps for blessed numbers (#262)
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelcr committed Nov 2, 2023
1 parent c64c2f3 commit 29aaeda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pg/pg-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export class PgStore extends BasePgStore {
for (const operation of tx.metadata.ordinal_operations) {
if (operation.inscription_revealed) {
const reveal = operation.inscription_revealed;
if (blessedNumber + 1 !== reveal.inscription_number)
if (reveal.inscription_number >= 0 && blessedNumber + 1 !== reveal.inscription_number)
throw Error(
`PgStore inscription gap detected: Attempting to insert #${reveal.inscription_number} (${block_height}) but current max is #${blessedNumber}`
);
Expand Down

0 comments on commit 29aaeda

Please sign in to comment.