Skip to content
New issue

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

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

Already on GitHub? # to your account

Fetch peers p2p #559

Merged
merged 34 commits into from
Nov 26, 2024
Merged
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
366b0dc
bump to v1.12.0-initial-poc.2
iansuvak Oct 3, 2024
0c9b768
Merge branch 'main' into avago1.12.0
cam-schultz Oct 10, 2024
2db445c
avago poc v5
cam-schultz Oct 10, 2024
472c76d
avago initial poc 8
cam-schultz Nov 12, 2024
75fe28d
use latest local network framework
cam-schultz Nov 6, 2024
99c58e9
bump teleporter dep
cam-schultz Nov 13, 2024
92c36c6
Merge branch 'main' into avago1.12.0
cam-schultz Nov 14, 2024
498cb40
Merge branch 'avago1.12.0' into fetch-peers-p2p
cam-schultz Nov 14, 2024
6c29cff
manually tracked peers cfg
cam-schultz Nov 14, 2024
bbb2c71
wip
cam-schultz Nov 15, 2024
3ca88fe
p2p tests passing
cam-schultz Nov 21, 2024
9923b3e
cleanup
cam-schultz Nov 21, 2024
48dcc49
track subnet on connection
cam-schultz Nov 21, 2024
41362e0
enable all tests
cam-schultz Nov 21, 2024
4f2a325
fetch validators on new subnet tracked
cam-schultz Nov 21, 2024
3dae643
use temp avago workaround branch
cam-schultz Nov 22, 2024
e74f59b
remove local teleporter dep
cam-schultz Nov 22, 2024
75359d9
Merge branch 'main' into fetch-peers-p2p
cam-schultz Nov 22, 2024
3adfe8a
generate mocks & fix test build
cam-schultz Nov 22, 2024
69c93e2
lint
cam-schultz Nov 22, 2024
03485e1
remove info api metrics
cam-schultz Nov 22, 2024
6ddba1f
remove test artifacts
cam-schultz Nov 25, 2024
0f0671c
Merge branch 'main' into fetch-peers-p2p
cam-schultz Nov 25, 2024
0c51ebd
add lock helper
cam-schultz Nov 25, 2024
94fb5d5
reduce log level
cam-schultz Nov 25, 2024
dec5f93
updateValidatorSet appRequestNetwork method
cam-schultz Nov 25, 2024
0d38d51
organize go.mod
cam-schultz Nov 25, 2024
98cc1bc
warn not enough bootstrap nodes
cam-schultz Nov 25, 2024
fc45025
better bootstrap node sampling
cam-schultz Nov 25, 2024
f8eaf8b
fetch proposed validators
cam-schultz Nov 25, 2024
e160dcc
properly break out of loop
cam-schultz Nov 26, 2024
7988e70
correct comment
cam-schultz Nov 26, 2024
a1d0897
Merge branch 'main' into fetch-peers-p2p
cam-schultz Nov 26, 2024
9f47f1e
simplify control flow
cam-schultz Nov 26, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions peers/app_request_network.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,8 @@ func NewNetwork(
numConnected++
}
} else {
// If we've sampled all the nodes and still haven't connected to the target number of bootstrap nodes,
// then warn and stop sampling by either returning an error or breaking
logger.Warn(
"Failed to connect to enough bootstrap nodes",
zap.Int("targetBootstrapNodes", NumBootstrapNodes),
Expand All @@ -191,6 +193,7 @@ func NewNetwork(
if numConnected == 0 {
return nil, fmt.Errorf("failed to connect to any bootstrap nodes")
}
break
geoff-vball marked this conversation as resolved.
Show resolved Hide resolved
}
}

Expand Down