@@ -82,7 +82,7 @@ export class ChannelService {
8282 channelOpenInitOperator ,
8383 constructedAddress ,
8484 ) ;
85- const validToTime = Date . now ( ) + 3 * 1e5 ;
85+ const validToTime = Date . now ( ) + 2e4 ;
8686 const validToSlot = unixTimeToSlot ( this . lucidService . lucid . config ( ) . network , Number ( validToTime ) ) ;
8787 const currentSlot = this . lucidService . lucid . currentSlot ( ) ;
8888 if ( currentSlot > validToSlot ) {
@@ -126,7 +126,8 @@ export class ChannelService {
126126 channelOpenTryOperator ,
127127 constructedAddress ,
128128 ) ;
129- const unsignedChannelOpenTryTxValidTo : TxBuilder = unsignedChannelOpenTryTx . validTo ( Date . now ( ) + 300 * 1e3 ) ;
129+ const validToTime = Date . now ( ) + 2e4 ;
130+ const unsignedChannelOpenTryTxValidTo : TxBuilder = unsignedChannelOpenTryTx . validTo ( validToTime ) ;
130131 // TODO: signing should be done by the relayer in the future
131132 const signedChannelOpenTryTxCompleted = await ( await unsignedChannelOpenTryTxValidTo . complete ( ) ) . sign
132133 . withWallet ( )
@@ -159,7 +160,7 @@ export class ChannelService {
159160 channelOpenAckOperator ,
160161 constructedAddress ,
161162 ) ;
162- const validToTime = Date . now ( ) + 3 * 1e5 ;
163+ const validToTime = Date . now ( ) + 2e4 ;
163164 const validToSlot = unixTimeToSlot ( this . lucidService . lucid . config ( ) . network , Number ( validToTime ) ) ;
164165 const currentSlot = this . lucidService . lucid . currentSlot ( ) ;
165166 if ( currentSlot > validToSlot ) {
@@ -200,9 +201,8 @@ export class ChannelService {
200201 channelOpenConfirmOperator ,
201202 constructedAddress ,
202203 ) ;
203- const unsignedChannelConfirmInitTxValidTo : TxBuilder = unsignedChannelConfirmInitTx . validTo (
204- Date . now ( ) + 600 * 1e3 ,
205- ) ;
204+ const validToTime = Date . now ( ) + 2e4 ;
205+ const unsignedChannelConfirmInitTxValidTo : TxBuilder = unsignedChannelConfirmInitTx . validTo ( validToTime ) ;
206206
207207 // TODO: signing should be done by the relayer in the future
208208 const signedChannelConfirmInitTxCompleted = await ( await unsignedChannelConfirmInitTxValidTo . complete ( ) ) . sign
@@ -243,7 +243,8 @@ export class ChannelService {
243243 channelCloseInitOperator ,
244244 constructedAddress ,
245245 ) ;
246- const unsignedChannelCloseInitTxValidTo : TxBuilder = unsignedChannelCloseInitTx . validTo ( Date . now ( ) + 300 * 1e3 ) ;
246+ const validToTime = Date . now ( ) + 2e4 ;
247+ const unsignedChannelCloseInitTxValidTo : TxBuilder = unsignedChannelCloseInitTx . validTo ( validToTime ) ;
247248
248249 // TODO: signing should be done by the relayer in the future
249250 const signedChannelCloseInitTxCompleted = await ( await unsignedChannelCloseInitTxValidTo . complete ( ) ) . sign
0 commit comments