@@ -287,11 +287,17 @@ export class PgStore extends BasePgStore {
287287 } ) ;
288288 }
289289
290- async getPoxForcedUnlockHeightsInternal (
291- sql : PgSqlClient
292- ) : Promise < FoundOrNot < { pox1UnlockHeight : number | null ; pox2UnlockHeight : number | null } > > {
293- const query = await sql < { pox_v1_unlock_height : string ; pox_v2_unlock_height : string } [ ] > `
294- SELECT pox_v1_unlock_height, pox_v2_unlock_height
290+ async getPoxForcedUnlockHeightsInternal ( sql : PgSqlClient ) : Promise <
291+ FoundOrNot < {
292+ pox1UnlockHeight : number | null ;
293+ pox2UnlockHeight : number | null ;
294+ pox3UnlockHeight : number | null ;
295+ } >
296+ > {
297+ const query = await sql <
298+ { pox_v1_unlock_height : string ; pox_v2_unlock_height : string ; pox_v3_unlock_height : string } [ ]
299+ > `
300+ SELECT pox_v1_unlock_height, pox_v2_unlock_height, pox_v3_unlock_height
295301 FROM pox_state
296302 LIMIt 1
297303 ` ;
@@ -300,10 +306,11 @@ export class PgStore extends BasePgStore {
300306 }
301307 const pox1UnlockHeight = parseInt ( query [ 0 ] . pox_v1_unlock_height ) || null ;
302308 const pox2UnlockHeight = parseInt ( query [ 0 ] . pox_v2_unlock_height ) || null ;
309+ const pox3UnlockHeight = parseInt ( query [ 0 ] . pox_v3_unlock_height ) || null ;
303310 if ( pox2UnlockHeight === 0 ) {
304311 return { found : false } ;
305312 }
306- return { found : true , result : { pox1UnlockHeight, pox2UnlockHeight } } ;
313+ return { found : true , result : { pox1UnlockHeight, pox2UnlockHeight, pox3UnlockHeight } } ;
307314 }
308315
309316 async getPoxForceUnlockHeights ( ) {
0 commit comments