Skip to content

Commit

Permalink
fix: add support for Nakamoto coinbase for unlock events
Browse files Browse the repository at this point in the history
  • Loading branch information
obycode committed Nov 10, 2024
1 parent a82583c commit b4c8b68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/datastore/pg-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4410,7 +4410,7 @@ export class PgStore extends BasePgStore {
SELECT tx_id
FROM txs
WHERE microblock_canonical = true AND canonical = true
AND block_height = ${block.block_height} AND (type_id = ${DbTxTypeId.Coinbase} OR type_id = ${DbTxTypeId.CoinbaseToAltRecipient})
AND block_height = ${block.block_height} AND (type_id = ${DbTxTypeId.Coinbase} OR type_id = ${DbTxTypeId.CoinbaseToAltRecipient} OR type_id = ${DbTxTypeId.NakamotoCoinbase})
LIMIT 1
`;

Expand Down

0 comments on commit b4c8b68

Please sign in to comment.