Skip to content

Commit

Permalink
fix: set timeout for close init event
Browse files Browse the repository at this point in the history
  • Loading branch information
ALPAC-4 committed Dec 6, 2024
1 parent 6521916 commit d322283
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/db/controller/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,12 @@ export class ChannelController {

return () => {
insert(DB, this.tableName, channelOnOpen)

// Mark all packets as timed out
PacketController.updateTimeout(
chainId,
event.channelOpenCloseInfo.srcChannelId
)
}
}

Expand Down

0 comments on commit d322283

Please sign in to comment.