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

feat: GossipSub #6113

Closed
wants to merge 39 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
f80d6c8
feat(p2p): DiscV5 Peer Discovery
spypsy Apr 10, 2024
f703226
add cspell, docs
spypsy Apr 10, 2024
99d9a81
merge with master
spypsy Apr 10, 2024
393b422
discv5 unit test
spypsy Apr 10, 2024
65a0786
update logger usage
spypsy Apr 10, 2024
5e5bad1
use running promise
spypsy Apr 10, 2024
4cfcdf6
check discv5 persistence
spypsy Apr 10, 2024
d27fc52
docs & fixes
spypsy Apr 10, 2024
8f3c87a
fix peer store return types
spypsy Apr 10, 2024
1a8196f
fix e2e
spypsy Apr 10, 2024
801cfbc
p2p test app
spypsy Apr 11, 2024
4ec73fe
filter aztec nodes correctly
spypsy Apr 12, 2024
006a121
gossipsub for test app
spypsy Apr 17, 2024
27d32b6
PR Fixes
spypsy Apr 17, 2024
4ad3f84
bootnode config
spypsy Apr 17, 2024
93c7e0e
merge with master
spypsy Apr 17, 2024
03278ca
fix yarn.lock
spypsy Apr 17, 2024
165a6b2
fix config type
spypsy Apr 17, 2024
4f5becf
merge p2p updates
spypsy Apr 17, 2024
19bab6c
update libp2p service
spypsy Apr 22, 2024
d6b4174
merge with master
spypsy Apr 22, 2024
4529a1f
remove unused dep
spypsy Apr 22, 2024
5991fb3
merge with master
spypsy Apr 22, 2024
c7d82ee
Merge branch 'spy/discv5-peer-discovery' into spy/p2p-test-app
spypsy Apr 22, 2024
6cafbf4
yarn install
spypsy Apr 22, 2024
539ae67
lmdb datastore implementation
spypsy Apr 26, 2024
9a42570
tested datastore
spypsy Apr 29, 2024
ae8c18d
peer manager
spypsy May 1, 2024
3db0d5e
fixes
spypsy May 1, 2024
50693ff
minor adds
spypsy May 1, 2024
04f8762
merge with master
spypsy May 1, 2024
6effce8
rm foundry dir
spypsy May 1, 2024
c4a0d58
version fixes
spypsy May 1, 2024
6ee0708
rm unused fn
spypsy May 1, 2024
1977628
fix yarn.lock
spypsy May 1, 2024
eb243c0
fix tcp transport version
spypsy May 2, 2024
9397b42
fix bootstrap node parsing
spypsy May 2, 2024
8613d2c
remove silly log
spypsy May 2, 2024
cbae10e
rm db files
spypsy May 2, 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
Prev Previous commit
Next Next commit
fix bootstrap node parsing
spypsy committed May 2, 2024
commit 9397b42f31fa50a5a74d4cbf480742d4e7ba025e
5 changes: 5 additions & 0 deletions yarn-project/aztec/src/cli/cmds/start_node.ts
Original file line number Diff line number Diff line change
@@ -71,6 +71,11 @@ export const startNode = async (
nodeConfig = mergeEnvVarsAndCliOptions<AztecNodeConfig>(nodeConfig, parseModuleOptions(options.prover));
}

// ensure bootstrapNodes is an array
if (nodeConfig.bootstrapNodes && typeof nodeConfig.bootstrapNodes === 'string') {
nodeConfig.bootstrapNodes = (nodeConfig.bootstrapNodes as string).split(',');
}

if (!nodeConfig.disableSequencer && nodeConfig.disableProver) {
throw new Error('Cannot run a sequencer without a prover');
}
2 changes: 1 addition & 1 deletion yarn-project/aztec/src/cli/util.ts
Original file line number Diff line number Diff line change
@@ -59,7 +59,7 @@ export const parseModuleOptions = (options: string): Record<string, string> => {
if (!options?.length) {
return {};
}
const optionsArray = options.split(',');
const optionsArray = options.split(/,(?=\w+=)/);
return optionsArray.reduce((acc, option) => {
const [key, value] = option.split('=');
return { ...acc, [key]: value };