Skip to content

Commit

Permalink
chore: add silius p2p v06 files
Browse files Browse the repository at this point in the history
  • Loading branch information
Vid201 committed May 10, 2024
1 parent 8c88a8d commit 52d1e18
Show file tree
Hide file tree
Showing 12 changed files with 81 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Each bundler to run has a folder and yml file [./bundlers](./bundlers) folder
- see the `runbundler/.env` for global settings, like `FUND` for funded addresses.
- The bundler-specific RPC calls (eth_ and debug_) should be exposed on `BUNDLER_URL`
- To test bundler startup script:
* `./runbundler/runbundler.sh {./runblers/aabundler/aabundler.yml} start` - start the bundler (along with node, and deployed contract)
* `./runbundler/runbundler.sh {./bundlers/aabundler/aabundler.yml} start` - start the bundler (along with node, and deployed contract)
* `down` - stop all docker images.
* (or any other docker-compose command, such as `logs`)

Expand Down
2 changes: 1 addition & 1 deletion bundlers/silius/.env
Original file line number Diff line number Diff line change
@@ -1 +1 @@
BUNDLER_ACCOUNT=0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
BOOT_ENR=enr:-Iu4QKWfapgYurSypiE8Oa1ZdOyK8lC2BLytkihEd-b5QwWtd-szKPuncudIbUUQ9wHMhZk-cbzTsEUxS4QiTtrYKPwBgmlkgnY0gmlwhMCoZGWJc2VjcDI1NmsxoQJEdmi_LPA0b8j2BHHDsyGi_Y086wDplSGNVe96M4sWnIN0Y3CCIyiDdWRwgiMo
33 changes: 33 additions & 0 deletions bundlers/silius/p2p-boot.yml-v06
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
services:
bundler:
ports: [ "3000:3000" ]
image: ghcr.io/silius-rs/silius:latest
command: node
--eth-client-address $ETH_RPC_URL
--datadir data/silius
--mnemonic-file /root/0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
--beneficiary 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
--entry-points $ENTRYPOINT
--http --http.addr 0.0.0.0
--http.port 3000
--http.api eth,debug,web3
--poll-interval "5"
--enable-p2p
--p2p.addr $BUNDLER_IP
--p2p.baddr $BUNDLER_IP
volumes:
- ./keys:/root
- ./p2p-boot:/data/silius/p2p
networks:
default:
p2p:
ipv4_address: $BUNDLER_IP

bundler-verify:
image: docker
# volumes:
# - /var/run/docker.sock:/var/run/docker.sock
depends_on:
bundler:
condition: service_started
command: echo docker exec runbundler-bundler-1 cat /data/silius/p2p/node-enr
1 change: 1 addition & 0 deletions bundlers/silius/p2p-boot/node-enr
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
enr:-Iu4QKWfapgYurSypiE8Oa1ZdOyK8lC2BLytkihEd-b5QwWtd-szKPuncudIbUUQ9wHMhZk-cbzTsEUxS4QiTtrYKPwBgmlkgnY0gmlwhMCoZGWJc2VjcDI1NmsxoQJEdmi_LPA0b8j2BHHDsyGi_Y086wDplSGNVe96M4sWnIN0Y3CCIyiDdWRwgiMo
1 change: 1 addition & 0 deletions bundlers/silius/p2p-boot/node-key
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
 ��!4}���@;���v��|�� rC�<�ψRd�
25 changes: 25 additions & 0 deletions bundlers/silius/p2p-peer.yml-v06
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
services:
bundler:
ports: [ "3001:3000" ]
image: ghcr.io/silius-rs/silius:latest
command: node
--eth-client-address $ETH_RPC_URL
--datadir data/silius
--mnemonic-file /root/0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
--beneficiary 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
--entry-points $ENTRYPOINT
--http --http.addr 0.0.0.0
--http.port 3000
--http.api eth,debug,web3
--poll-interval "5"
--enable-p2p
--bootnodes $BOOT_ENR
--p2p.addr $BUNDLER2_IP
--p2p.baddr $BUNDLER2_IP
volumes:
- ./keys:/root
- ./p2p-peer:/data/silius/p2p
networks:
default:
p2p:
ipv4_address: $BUNDLER2_IP
1 change: 1 addition & 0 deletions bundlers/silius/p2p-peer/node-enr
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
enr:-Iu4QBIlfz_fSAGGmUkgPxFEvv_kgplO49l08Rg-la7v1zJoDYqvvatwDLl4Rk6xGXt0-OAd9Jakg-P8LNfPna-cvwABgmlkgnY0gmlwhMCoZGaJc2VjcDI1NmsxoQOKdUBFbAaoQIlmcvxyt2qn3yEwQK5fA3AUKElwyK1Zg4N0Y3CCIyiDdWRwgiMo
2 changes: 2 additions & 0 deletions bundlers/silius/p2p-peer/node-key
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
 ǁ�%#J�
�c��u!��LʆI����%ev��
2 changes: 1 addition & 1 deletion bundlers/silius/silius.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ services:
- --datadir
- data/silius
- --mnemonic-file
- /root/${BUNDLER_ACCOUNT}
- /root/0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
- --beneficiary
- "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"
- --entry-points
Expand Down
4 changes: 4 additions & 0 deletions tests/silius-silius.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export BUNDLER_YML=bundlers/silius/p2p-boot.yml
export BUNDLER2_YML=bundlers/silius/p2p-peer.yml

export ENVFILE=bundlers/silius/.env
5 changes: 5 additions & 0 deletions tests/silius-skandha.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export BUNDLER_YML=bundlers/silius/p2p-boot.yml
export BUNDLER2_YML=bundlers/skandha/p2p-peer.yml

# the peer should use this enr to connect to
export ENVFILE=bundlers/silius/.env
6 changes: 6 additions & 0 deletions tests/skandha-silius.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export BUNDLER_YML=bundlers/skandha/p2p-boot.yml
export BUNDLER2_YML=bundlers/silius/p2p-peer.yml

#the skanha env file defines the BOOT_ENR that is exposed by p2p-boot.
# the peer should use this enr to connect to
export ENVFILE=bundlers/skandha/.env

0 comments on commit 52d1e18

Please sign in to comment.