Skip to content
This repository has been archived by the owner on Feb 13, 2025. It is now read-only.

Add support for Packet Delay (on connection) #48

Open
ethanfrey opened this issue Feb 17, 2021 · 0 comments
Open

Add support for Packet Delay (on connection) #48

ethanfrey opened this issue Feb 17, 2021 · 0 comments
Labels
Library Functionality in the core library
Milestone

Comments

@ethanfrey
Copy link
Contributor

This one is tricky. We need to allow the option when creating a connection, and read the option when using an existing connection.

If delay=0, then the general behavior we have everywhere works.

If delay > 0, then we must do the following to relay packets.

  • SendPacket available at height H on chain A
  • Submit A header of H+1 on chain B (to prove H)
  • Store proof of packet pointing to this header (H+1)
  • Wait delay seconds after update client
  • Submit the SendPacket proof pointing to header (H+1), not a newer header

This means there is a delay between updating a client and being able to use that client header to prove anything. As a potential protection against byzantine networks.

@ethanfrey ethanfrey added this to the v2 milestone Feb 17, 2021
@ethanfrey ethanfrey added the Library Functionality in the core library label Feb 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Library Functionality in the core library
Projects
None yet
Development

No branches or pull requests

1 participant