Skip to content

Instantly share code, notes, and snippets.

@justinschuldt
Last active February 2, 2023 21:36
Show Gist options
  • Save justinschuldt/bffdb4a83c5df0c8fb7da210feff7e80 to your computer and use it in GitHub Desktop.
Save justinschuldt/bffdb4a83c5df0c8fb7da210feff7e80 to your computer and use it in GitHub Desktop.
wormhole node debugger config
{
"version": "0.2.0",
"configurations": [
{
"name": "Connect to server",
"type": "go",
"request": "attach",
"mode": "remote",
"remotePath": "${workspaceFolder}",
"port": 2345,
"host": "127.0.0.1"
},
{
"name": "node",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${workspaceFolder}/main.go",
"buildFlags": "-gcflags='all=-N -l' --ldflags '-extldflags \"-Wl,--allow-multiple-definition\" -X \"github.com/certusone/wormhole/node/cmd/guardiand.Build=dev\"'",
"args": [
"node",
"--ethRPC",
"ws://localhost:8545",
"--bscRPC",
"ws://localhost:8545",
"--polygonRPC",
"ws://localhost:8545",
"--avalancheRPC",
"ws://localhost:8545",
"--auroraRPC",
"ws://localhost:8545",
"--fantomRPC",
"ws://localhost:8545",
"--oasisRPC",
"ws://localhost:8545",
"--karuraRPC",
"ws://localhost:8545",
"--acalaRPC",
"ws://localhost:8545",
"--klaytnRPC",
"ws://localhost:8545",
"--celoRPC",
"ws://localhost:8545",
"--moonbeamRPC",
"ws://localhost:8545",
"--neonRPC",
"ws://localhost:8545",
"--solanaContract",
"Bridge1p5gheXUvJ6jGWGeCsgPKgnE3YgdGKRVCMY9o",
// "--solanaWS",
// "ws://solana-devnet:8900",
// "--solanaRPC",
// "http://solana-devnet:8899",
"--pythnetContract",
"Bridge1p5gheXUvJ6jGWGeCsgPKgnE3YgdGKRVCMY9o",
// "--pythnetWS",
// "ws://solana-devnet:8900",
// "--pythnetRPC",
// "http://solana-devnet:8899",
"--unsafeDevMode",
"--guardianKey",
"/home/justin/tmp/bridge.key",
"--publicRPC",
":7070",
"--publicWeb",
":7071",
"--adminSocket",
"/home/justin/tmp/admin.sock",
"--dataDir",
"/home/justin/tmp/data",
// "--logLevel=debug",
],
"env": {
},
},
{
"name": "spy",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${workspaceFolder}/main.go",
"buildFlags": "-gcflags='all=-N -l' --ldflags '-extldflags \"-Wl,--allow-multiple-definition\" -X \"github.com/certusone/wormhole/node/cmd/guardiand.Build=dev\"'",
"args": [
"spy",
"--nodeKey",
"/tmp/node.key",
"--spyRPC",
"[::]:7072",
"--bootstrap",
"/dns4/guardian-0.guardian/udp/8999/quic/p2p/12D3KooWL3XJ9EMCyZvmmGXL2LMiVBtrVa2BuESsJiXkSj7333Jw",
"--logLevel=debug",
// "--logLevel=debug",
],
},
{
"name": "test",
"type": "go",
"request": "launch",
"mode": "test",
// "program": "test",
"program": "${relativeFileDirname}",
"buildFlags": "-v -race --ldflags '-extldflags \"-Wl,--allow-multiple-definition\" ",
"args": [
// "${workspaceFolder}/cmd/spy"
// "spy",
// "--nodeKey",
// "/tmp/node.key",
// "--spyRPC",
// "[::]:7072",
// "--bootstrap",
// "/dns4/guardian-0.guardian/udp/8999/quic/p2p/12D3KooWL3XJ9EMCyZvmmGXL2LMiVBtrVa2BuESsJiXkSj7333Jw",
// "--logLevel=debug",
// "--logLevel=debug",
"-test.v",
// "-test.run",
// "TestSpyHandleGossipVAA"
],
// "showLog": true
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment