From b4c8b6851188408bb4d2b67dd92ba2fb6039337c Mon Sep 17 00:00:00 2001 From: Brice Dobry Date: Sun, 10 Nov 2024 16:10:28 -0500 Subject: [PATCH] fix: add support for Nakamoto coinbase for unlock events --- src/datastore/pg-store.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/datastore/pg-store.ts b/src/datastore/pg-store.ts index 1641e459d..36a21e1c2 100644 --- a/src/datastore/pg-store.ts +++ b/src/datastore/pg-store.ts @@ -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 `;