From 2370799b8b29a74b0b273a6662a91f376e857fdc Mon Sep 17 00:00:00 2001 From: Brice Dobry Date: Sun, 10 Nov 2024 17:23:16 -0500 Subject: [PATCH] fix(rosetta): add support for Nakamoto coinbase for unlock events (#2162) --- 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 ca2039e4f..4bf5871e8 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 `;