@@ -1666,7 +1666,7 @@ describe('mempool tests', () => {
16661666 // Simulate the bug with a txs being in the mempool at confirmed at the same time by
16671667 // directly inserting the mempool-tx and mined-tx, bypassing the normal update functions.
16681668 await db . updateBlock ( db . sql , dbBlock1 ) ;
1669- const chainTip = await db . getChainTip ( ) ;
1669+ const chainTip = await db . getChainTip ( db . sql ) ;
16701670 await db . insertDbMempoolTxs ( [ mempoolTx ] , chainTip , db . sql ) ;
16711671 await db . updateTx ( db . sql , dbTx1 ) ;
16721672
@@ -1828,7 +1828,7 @@ describe('mempool tests', () => {
18281828
18291829 await db . updateMempoolTxs ( { mempoolTxs : [ mempoolTx ] } ) ;
18301830
1831- let chainTip = await db . getChainTip ( ) ;
1831+ let chainTip = await db . getChainTip ( db . sql ) ;
18321832 expect ( chainTip . mempool_tx_count ) . toBe ( 1 ) ;
18331833
18341834 // Verify tx shows up in mempool (non-pruned)
@@ -1852,7 +1852,7 @@ describe('mempool tests', () => {
18521852 expect ( mempoolResult2 . body . results ) . toHaveLength ( 0 ) ;
18531853 const mempoolCount2 = await supertest ( api . server ) . get ( `/extended/v1/tx/mempool` ) ;
18541854 expect ( mempoolCount2 . body . total ) . toBe ( 0 ) ;
1855- chainTip = await db . getChainTip ( ) ;
1855+ chainTip = await db . getChainTip ( db . sql ) ;
18561856 expect ( chainTip . mempool_tx_count ) . toBe ( 0 ) ;
18571857
18581858 // Re-broadcast mempool tx
@@ -1865,7 +1865,7 @@ describe('mempool tests', () => {
18651865 expect ( mempoolResult3 . body . results [ 0 ] . tx_id ) . toBe ( txId ) ;
18661866 const mempoolCount3 = await supertest ( api . server ) . get ( `/extended/v1/tx/mempool` ) ;
18671867 expect ( mempoolCount3 . body . total ) . toBe ( 1 ) ;
1868- chainTip = await db . getChainTip ( ) ;
1868+ chainTip = await db . getChainTip ( db . sql ) ;
18691869 expect ( chainTip . mempool_tx_count ) . toBe ( 1 ) ;
18701870
18711871 // Mine tx in block to prune from mempool
@@ -1898,7 +1898,7 @@ describe('mempool tests', () => {
18981898 expect ( mempoolResult4 . body . results ) . toHaveLength ( 0 ) ;
18991899 const mempoolCount4 = await supertest ( api . server ) . get ( `/extended/v1/tx/mempool` ) ;
19001900 expect ( mempoolCount4 . body . total ) . toBe ( 0 ) ;
1901- chainTip = await db . getChainTip ( ) ;
1901+ chainTip = await db . getChainTip ( db . sql ) ;
19021902 expect ( chainTip . mempool_tx_count ) . toBe ( 0 ) ;
19031903
19041904 // Verify tx is mined
@@ -1931,7 +1931,7 @@ describe('mempool tests', () => {
19311931 expect ( mempoolResult5 . body . results [ 0 ] . tx_id ) . toBe ( txId ) ;
19321932 const mempoolCount5 = await supertest ( api . server ) . get ( `/extended/v1/tx/mempool` ) ;
19331933 expect ( mempoolCount5 . body . total ) . toBe ( 1 ) ;
1934- chainTip = await db . getChainTip ( ) ;
1934+ chainTip = await db . getChainTip ( db . sql ) ;
19351935 expect ( chainTip . mempool_tx_count ) . toBe ( 1 ) ;
19361936
19371937 // Re-broadcast mempool tx
0 commit comments