@@ -306,10 +306,12 @@ export class PgWriteStore extends PgStore {
306
306
// by their txs which are now also reorged. We must do this here because the block re-org
307
307
// logic is decoupled from the microblock re-org logic so previous balance updates will
308
308
// not apply.
309
- await this . updateFtBalancesFromMicroblockReOrg ( sql , [
310
- ...reorg . markedNonCanonical . microblockHashes ,
311
- ...reorg . markedCanonical . microblockHashes ,
312
- ] ) ;
309
+ q . enqueue ( async ( ) => {
310
+ await this . updateFtBalancesFromMicroblockReOrg ( sql , [
311
+ ...reorg . markedNonCanonical . microblockHashes ,
312
+ ...reorg . markedCanonical . microblockHashes ,
313
+ ] ) ;
314
+ } ) ;
313
315
}
314
316
if ( data . poxSetSigners && data . poxSetSigners . signers ) {
315
317
const poxSet = data . poxSetSigners ;
@@ -341,14 +343,16 @@ export class PgWriteStore extends PgStore {
341
343
const mempoolGarbageResults = await this . deleteGarbageCollectedMempoolTxs ( sql ) ;
342
344
garbageCollectedMempoolTxs = mempoolGarbageResults . deletedTxs ;
343
345
} ) ;
346
+ q . enqueue ( async ( ) => {
347
+ await this . updateReplacedByFeeStatusForTxIds (
348
+ sql ,
349
+ data . txs . map ( t => t . tx . tx_id ) ,
350
+ false
351
+ ) ;
352
+ } ) ;
344
353
await q . done ( ) ;
345
354
}
346
355
347
- await this . updateReplacedByFeeStatusForTxIds (
348
- sql ,
349
- data . txs . map ( t => t . tx . tx_id ) ,
350
- false
351
- ) ;
352
356
if ( ! this . isEventReplay ) {
353
357
this . debounceMempoolStat ( ) ;
354
358
}
0 commit comments