Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UDP will cause Blockchain failures - QUIC required. #1

Open
johnstudarus opened this issue Jul 31, 2022 · 0 comments
Open

UDP will cause Blockchain failures - QUIC required. #1

johnstudarus opened this issue Jul 31, 2022 · 0 comments
Assignees

Comments

@johnstudarus
Copy link

ln, err := pan.ListenUDP(context.Background(), local, nil)

address, err := pan.ResolveUDPAddr(addr)
conn, err := pan.DialUDP(context.Background(), netaddr.IPPort{}, address, nil, nil)

You'll want to use QUIC instead of UDP. The blockchain project is dependent on TCP so using UDP across a real network (and not just on a single host) is going to cause the blockchain to fail. QUIC provides the same network functionality as TCP and is built into SCION.

You can see an example of using QUIC in the following sample code:
https://github.com/netsec-ethz/scion-apps/blob/master/ssh/client/ssh/ssh.go

Please replace your UDP code with QUIC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants