mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 14:46:42 +00:00
add : amoy flags and genesis (#1131)
* add : amoy flags and genesis * minor fix * add : amoy.json in internal/cli/server * disable : peer check in mining for Amoy * add : amoy genesis hash * add amoy testnet deployment entries * update : amoy genesis * fix typos * add : post london forks + burn contract * add : amoy genesis hash * bump : version meta to amoy (#1092) * add : amoy bootnodes * chg : maxpeers of amoy val to 3 from 1 * bump : version to v1.1.0-amoy-2 * add : amoychain worker restriction on peercount --------- Co-authored-by: sreevalsanmr <sreevalsan@polygon.technology>
This commit is contained in:
parent
0660fac39b
commit
2a35bf8340
27 changed files with 1359 additions and 17 deletions
2
.github/ISSUE_TEMPLATE/bug.md
vendored
2
.github/ISSUE_TEMPLATE/bug.md
vendored
|
|
@ -20,7 +20,7 @@ Heimdall client version: [e.g. v0.2.10] <!--Can be found by running the command
|
|||
|
||||
OS & Version: Windows / Linux / OSX
|
||||
|
||||
Environment: Polygon Mainnet / Polygon Mumbai / Devnet
|
||||
Environment: Polygon Mainnet / Polygon Mumbai / Polygon Amoy / Devnet
|
||||
|
||||
Type of node: Validator / Sentry / Archive
|
||||
|
||||
|
|
|
|||
2
.github/pull_request_template.md
vendored
2
.github/pull_request_template.md
vendored
|
|
@ -39,7 +39,7 @@ In case this PR includes changes that must be applied only to a subset of nodes,
|
|||
- [ ] I have added tests to CI
|
||||
- [ ] I have tested this code manually on local environment
|
||||
- [ ] I have tested this code manually on remote devnet using express-cli
|
||||
- [ ] I have tested this code manually on mumbai
|
||||
- [ ] I have tested this code manually on mumbai/amoy
|
||||
- [ ] I have created new e2e tests into express-cli
|
||||
|
||||
### Manual tests
|
||||
|
|
|
|||
416
.github/workflows/packager.yml
vendored
416
.github/workflows/packager.yml
vendored
|
|
@ -114,6 +114,61 @@ jobs:
|
|||
NODE: bootnode
|
||||
NETWORK: mumbai
|
||||
|
||||
- name: Prepping ${{ env.NETWORK }} ${{ env.NODE }} bootnode for ${{ env.ARCH }}
|
||||
run: cp -rp packaging/deb/bor packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}
|
||||
env:
|
||||
ARCH: amd64
|
||||
NODE: bootnode
|
||||
NETWORK: amoy
|
||||
- name: Putting toml for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: cp -rp packaging/templates/testnet-amoy/sentry/sentry/bor/config.toml packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/var/lib/bor/
|
||||
env:
|
||||
ARCH: amd64
|
||||
NODE: bootnode
|
||||
NETWORK: amoy
|
||||
- name: Copying the preinst for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: cp -rp packaging/templates/package_scripts/preinst packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/DEBIAN/preinst
|
||||
env:
|
||||
ARCH: amd64
|
||||
NODE: bootnode
|
||||
NETWORK: amoy
|
||||
- name: Copying the postinst for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: cp -rp packaging/templates/package_scripts/postinst.profile packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/DEBIAN/postinst
|
||||
env:
|
||||
ARCH: amd64
|
||||
NODE: bootnode
|
||||
NETWORK: amoy
|
||||
- name: Copying the prerm for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: cp -rp packaging/templates/package_scripts/prerm packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/DEBIAN/prerm
|
||||
env:
|
||||
ARCH: amd64
|
||||
NODE: bootnode
|
||||
NETWORK: amoy
|
||||
- name: Copying the postrm for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: cp -rp packaging/templates/package_scripts/postrm packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/DEBIAN/postrm
|
||||
env:
|
||||
ARCH: amd64
|
||||
NODE: bootnode
|
||||
NETWORK: amoy
|
||||
- name: Copying systemd file for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: cp -rp packaging/templates/systemd/bor_bootnode.service packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/lib/systemd/system/bor.service
|
||||
env:
|
||||
ARCH: amd64
|
||||
NODE: bootnode
|
||||
NETWORK: amoy
|
||||
- name: Copying profile control file for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: cp -rp packaging/templates/package_scripts/control.profile.amd64 packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/DEBIAN/control
|
||||
env:
|
||||
ARCH: amd64
|
||||
NODE: bootnode
|
||||
NETWORK: amoy
|
||||
- name: Running package build for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: dpkg-deb --build --root-owner-group packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}
|
||||
env:
|
||||
ARCH: amd64
|
||||
NODE: bootnode
|
||||
NETWORK: amoy
|
||||
|
||||
- name: Prepping ${{ env.NETWORK }} ${{ env.NODE }} bootnode for ${{ env.ARCH }}
|
||||
run: cp -rp packaging/deb/bor packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}
|
||||
env:
|
||||
|
|
@ -224,6 +279,61 @@ jobs:
|
|||
NODE: sentry
|
||||
NETWORK: mumbai
|
||||
|
||||
- name: Prepping ${{ env.NETWORK }} ${{ env.NODE }} node for ${{ env.ARCH }}
|
||||
run: cp -rp packaging/deb/bor packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}
|
||||
env:
|
||||
ARCH: amd64
|
||||
NODE: sentry
|
||||
NETWORK: amoy
|
||||
- name: Putting toml for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: cp -rp packaging/templates/testnet-amoy/sentry/sentry/bor/config.toml packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/var/lib/bor/
|
||||
env:
|
||||
ARCH: amd64
|
||||
NODE: sentry
|
||||
NETWORK: amoy
|
||||
- name: Copying the preinst for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: cp -rp packaging/templates/package_scripts/preinst packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/DEBIAN/preinst
|
||||
env:
|
||||
ARCH: amd64
|
||||
NODE: sentry
|
||||
NETWORK: amoy
|
||||
- name: Copying the postinst for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: cp -rp packaging/templates/package_scripts/postinst.profile packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/DEBIAN/postinst
|
||||
env:
|
||||
ARCH: amd64
|
||||
NODE: sentry
|
||||
NETWORK: amoy
|
||||
- name: Copying the prerm for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: cp -rp packaging/templates/package_scripts/prerm packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/DEBIAN/prerm
|
||||
env:
|
||||
ARCH: amd64
|
||||
NODE: sentry
|
||||
NETWORK: amoy
|
||||
- name: Copying the postrm for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: cp -rp packaging/templates/package_scripts/postrm packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/DEBIAN/postrm
|
||||
env:
|
||||
ARCH: amd64
|
||||
NODE: sentry
|
||||
NETWORK: amoy
|
||||
- name: Copying systemd file for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: cp -rp packaging/templates/systemd/bor.service packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/lib/systemd/system/
|
||||
env:
|
||||
ARCH: amd64
|
||||
NODE: sentry
|
||||
NETWORK: amoy
|
||||
- name: Copying profile control file for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: cp -rp packaging/templates/package_scripts/control.profile.amd64 packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/DEBIAN/control
|
||||
env:
|
||||
ARCH: amd64
|
||||
NODE: sentry
|
||||
NETWORK: amoy
|
||||
- name: Running package build for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: dpkg-deb --build --root-owner-group packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}
|
||||
env:
|
||||
ARCH: amd64
|
||||
NODE: sentry
|
||||
NETWORK: amoy
|
||||
|
||||
- name: Setting up ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: cp -rp packaging/deb/bor packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}
|
||||
env:
|
||||
|
|
@ -328,6 +438,55 @@ jobs:
|
|||
NODE: validator
|
||||
NETWORK: mumbai
|
||||
|
||||
- name: Prepping Bor ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: cp -rp packaging/deb/bor packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}
|
||||
env:
|
||||
ARCH: amd64
|
||||
NODE: validator
|
||||
NETWORK: amoy
|
||||
- name: Copying control file for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: cp -rp packaging/templates/package_scripts/control.validator packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/DEBIAN/control
|
||||
env:
|
||||
ARCH: amd64
|
||||
NODE: validator
|
||||
NETWORK: amoy
|
||||
- name: Copying Postinstall script for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: cp -rp packaging/templates/package_scripts/postinst.profile packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/DEBIAN/postinst
|
||||
env:
|
||||
ARCH: amd64
|
||||
NODE: validator
|
||||
NETWORK: amoy
|
||||
- name: Copying Prerm script for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: cp -rp packaging/templates/package_scripts/prerm packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/DEBIAN/prerm
|
||||
env:
|
||||
ARCH: amd64
|
||||
NODE: validator
|
||||
NETWORK: amoy
|
||||
- name: Copying Postrm script for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: cp -rp packaging/templates/package_scripts/postrm packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/DEBIAN/postrm
|
||||
env:
|
||||
ARCH: amd64
|
||||
NODE: validator
|
||||
NETWORK: amoy
|
||||
- name: Copying config.toml for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: cp -rp packaging/templates/testnet-amoy/sentry/validator/bor/config.toml packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/var/lib/bor/
|
||||
env:
|
||||
ARCH: amd64
|
||||
NODE: validator
|
||||
NETWORK: amoy
|
||||
- name: Copying profile control file for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: cp -rp packaging/templates/package_scripts/control.profile.amd64 packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/DEBIAN/control
|
||||
env:
|
||||
ARCH: amd64
|
||||
NODE: validator
|
||||
NETWORK: amoy
|
||||
- name: Building bor ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }} profile
|
||||
run: dpkg-deb --build --root-owner-group packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}
|
||||
env:
|
||||
ARCH: amd64
|
||||
NODE: validator
|
||||
NETWORK: amoy
|
||||
|
||||
- name: Prepping Bor ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: cp -rp packaging/deb/bor packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}
|
||||
env:
|
||||
|
|
@ -432,6 +591,55 @@ jobs:
|
|||
NODE: archive
|
||||
NETWORK: mumbai
|
||||
|
||||
- name: Creating bor ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: cp -rp packaging/deb/bor packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}
|
||||
env:
|
||||
ARCH: amd64
|
||||
NODE: archive
|
||||
NETWORK: amoy
|
||||
- name: Copying profile control file for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: cp -rp packaging/templates/package_scripts/control.profile.amd64 packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/DEBIAN/control
|
||||
env:
|
||||
ARCH: amd64
|
||||
NODE: archive
|
||||
NETWORK: amoy
|
||||
- name: Copying profile preinst file for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: cp -rp packaging/templates/package_scripts/preinst packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/DEBIAN/preinst
|
||||
env:
|
||||
ARCH: amd64
|
||||
NODE: archive
|
||||
NETWORK: amoy
|
||||
- name: Copying the profile postinst for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: cp -rp packaging/templates/package_scripts/postinst.profile packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/DEBIAN/postinst
|
||||
env:
|
||||
ARCH: amd64
|
||||
NODE: archive
|
||||
NETWORK: amoy
|
||||
- name: Copying profile prerm file for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: cp -rp packaging/templates/package_scripts/prerm packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/DEBIAN/prerm
|
||||
env:
|
||||
ARCH: amd64
|
||||
NODE: archive
|
||||
NETWORK: amoy
|
||||
- name: Copying profile postrm file for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: cp -rp packaging/templates/package_scripts/postrm packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/DEBIAN/postrm
|
||||
env:
|
||||
ARCH: amd64
|
||||
NODE: archive
|
||||
NETWORK: amoy
|
||||
- name: Copying the toml for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: cp -rp packaging/templates/testnet-amoy/archive/config.toml packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/var/lib/bor/
|
||||
env:
|
||||
ARCH: amd64
|
||||
NODE: archive
|
||||
NETWORK: amoy
|
||||
- name: Building bor ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }} profile
|
||||
run: dpkg-deb --build --root-owner-group packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}
|
||||
env:
|
||||
ARCH: amd64
|
||||
NODE: archive
|
||||
NETWORK: amoy
|
||||
|
||||
- name: Creating bor ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: cp -rp packaging/deb/bor packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}
|
||||
env:
|
||||
|
|
@ -579,6 +787,61 @@ jobs:
|
|||
NODE: bootnode
|
||||
NETWORK: mumbai
|
||||
|
||||
- name: Prepping ${{ env.NETWORK }} ${{ env.NODE }} bootnode for ${{ env.ARCH }}
|
||||
run: cp -rp packaging/deb/bor packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}
|
||||
env:
|
||||
ARCH: arm64
|
||||
NODE: bootnode
|
||||
NETWORK: amoy
|
||||
- name: Putting toml for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: cp -rp packaging/templates/testnet-amoy/sentry/sentry/bor/config.toml packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/var/lib/bor/
|
||||
env:
|
||||
ARCH: arm64
|
||||
NODE: bootnode
|
||||
NETWORK: amoy
|
||||
- name: Copying the preinst for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: cp -rp packaging/templates/package_scripts/preinst packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/DEBIAN/preinst
|
||||
env:
|
||||
ARCH: arm64
|
||||
NODE: bootnode
|
||||
NETWORK: amoy
|
||||
- name: Copying the postinst for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: cp -rp packaging/templates/package_scripts/postinst.profile packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/DEBIAN/postinst
|
||||
env:
|
||||
ARCH: arm64
|
||||
NODE: bootnode
|
||||
NETWORK: amoy
|
||||
- name: Copying the prerm for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: cp -rp packaging/templates/package_scripts/prerm packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/DEBIAN/prerm
|
||||
env:
|
||||
ARCH: arm64
|
||||
NODE: bootnode
|
||||
NETWORK: amoy
|
||||
- name: Copying the postrm for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: cp -rp packaging/templates/package_scripts/postrm packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/DEBIAN/postrm
|
||||
env:
|
||||
ARCH: arm64
|
||||
NODE: bootnode
|
||||
NETWORK: amoy
|
||||
- name: Copying systemd file for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: cp -rp packaging/templates/systemd/bor_bootnode.service packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/lib/systemd/system/
|
||||
env:
|
||||
ARCH: arm64
|
||||
NODE: bootnode
|
||||
NETWORK: amoy
|
||||
- name: Copying profile control file for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: cp -rp packaging/templates/package_scripts/control.profile.amd64 packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/DEBIAN/control
|
||||
env:
|
||||
ARCH: arm64
|
||||
NODE: bootnode
|
||||
NETWORK: amoy
|
||||
- name: Running package build for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: dpkg-deb --build --root-owner-group packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}
|
||||
env:
|
||||
ARCH: arm64
|
||||
NODE: bootnode
|
||||
NETWORK: amoy
|
||||
|
||||
- name: Prepping ${{ env.NETWORK }} ${{ env.NODE }} bootnode for ${{ env.ARCH }}
|
||||
run: cp -rp packaging/deb/bor packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}
|
||||
env:
|
||||
|
|
@ -689,6 +952,61 @@ jobs:
|
|||
NODE: sentry
|
||||
NETWORK: mumbai
|
||||
|
||||
- name: Setting up bor for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: cp -rp packaging/deb/bor packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}
|
||||
env:
|
||||
ARCH: arm64
|
||||
NODE: sentry
|
||||
NETWORK: amoy
|
||||
- name: Copying control file for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: cp -rp packaging/templates/package_scripts/control.arm64 packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/DEBIAN/control
|
||||
env:
|
||||
ARCH: arm64
|
||||
NODE: sentry
|
||||
NETWORK: amoy
|
||||
- name: Putting toml for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: cp -rp packaging/templates/testnet-amoy/sentry/sentry/bor/config.toml packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/var/lib/bor/
|
||||
env:
|
||||
ARCH: arm64
|
||||
NODE: sentry
|
||||
NETWORK: amoy
|
||||
- name: Copying the preinst for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: cp -rp packaging/templates/package_scripts/preinst packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/DEBIAN/preinst
|
||||
env:
|
||||
ARCH: arm64
|
||||
NODE: sentry
|
||||
NETWORK: amoy
|
||||
- name: Copying the prerm for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: cp -rp packaging/templates/package_scripts/prerm packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/DEBIAN/prerm
|
||||
env:
|
||||
ARCH: arm64
|
||||
NODE: sentry
|
||||
NETWORK: amoy
|
||||
- name: Copying the postrm for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: cp -rp packaging/templates/package_scripts/postrm packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/DEBIAN/postrm
|
||||
env:
|
||||
ARCH: arm64
|
||||
NODE: sentry
|
||||
NETWORK: amoy
|
||||
- name: Copying the postinst for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: cp -rp packaging/templates/package_scripts/postinst.profile packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/DEBIAN/postinst
|
||||
env:
|
||||
ARCH: arm64
|
||||
NODE: sentry
|
||||
NETWORK: amoy
|
||||
- name: Copying profile control file for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: cp -rp packaging/templates/package_scripts/control.profile.arm64 packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/DEBIAN/control
|
||||
env:
|
||||
ARCH: arm64
|
||||
NODE: sentry
|
||||
NETWORK: amoy
|
||||
- name: Building bor ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }} profile
|
||||
run: dpkg-deb --build --root-owner-group packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}
|
||||
env:
|
||||
ARCH: arm64
|
||||
NODE: sentry
|
||||
NETWORK: amoy
|
||||
|
||||
- name: Setting up bor for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: cp -rp packaging/deb/bor packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}
|
||||
env:
|
||||
|
|
@ -799,6 +1117,61 @@ jobs:
|
|||
NODE: validator
|
||||
NETWORK: mumbai
|
||||
|
||||
- name: Prepping Bor for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: cp -rp packaging/deb/bor packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}
|
||||
env:
|
||||
ARCH: arm64
|
||||
NODE: validator
|
||||
NETWORK: amoy
|
||||
- name: Copying control file for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: cp -rp packaging/templates/package_scripts/control.validator.arm64 packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/DEBIAN/control
|
||||
env:
|
||||
ARCH: arm64
|
||||
NODE: validator
|
||||
NETWORK: amoy
|
||||
- name: Copying the preinst for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: cp -rp packaging/templates/package_scripts/preinst packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/DEBIAN/preinst
|
||||
env:
|
||||
ARCH: arm64
|
||||
NODE: validator
|
||||
NETWORK: amoy
|
||||
- name: Copying Postinstall script for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: cp -rp packaging/templates/package_scripts/postinst.profile packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/DEBIAN/postinst
|
||||
env:
|
||||
ARCH: arm64
|
||||
NODE: validator
|
||||
NETWORK: amoy
|
||||
- name: Copying the prerm for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: cp -rp packaging/templates/package_scripts/prerm packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/DEBIAN/prerm
|
||||
env:
|
||||
ARCH: arm64
|
||||
NODE: validator
|
||||
NETWORK: amoy
|
||||
- name: Copying the postrm for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: cp -rp packaging/templates/package_scripts/postrm packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/DEBIAN/postrm
|
||||
env:
|
||||
ARCH: arm64
|
||||
NODE: validator
|
||||
NETWORK: amoy
|
||||
- name: Copying config.toml for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: cp -rp packaging/templates/testnet-amoy/sentry/validator/bor/config.toml packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/var/lib/bor/
|
||||
env:
|
||||
ARCH: arm64
|
||||
NODE: validator
|
||||
NETWORK: amoy
|
||||
- name: Copying profile control file for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: cp -rp packaging/templates/package_scripts/control.profile.arm64 packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/DEBIAN/control
|
||||
env:
|
||||
ARCH: arm64
|
||||
NODE: validator
|
||||
NETWORK: amoy
|
||||
- name: Building bor ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }} profile
|
||||
run: dpkg-deb --build --root-owner-group packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}
|
||||
env:
|
||||
ARCH: arm64
|
||||
NODE: validator
|
||||
NETWORK: amoy
|
||||
|
||||
- name: Prepping Bor ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: cp -rp packaging/deb/bor packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}
|
||||
env:
|
||||
|
|
@ -900,6 +1273,49 @@ jobs:
|
|||
NODE: archive
|
||||
NETWORK: mumbai
|
||||
|
||||
- name: Creating bor ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: cp -rp packaging/deb/bor packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}
|
||||
env:
|
||||
ARCH: arm64
|
||||
NODE: archive
|
||||
NETWORK: amoy
|
||||
- name: Copying profile control file for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: cp -rp packaging/templates/package_scripts/control.profile.arm64 packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/DEBIAN/control
|
||||
env:
|
||||
ARCH: arm64
|
||||
NODE: archive
|
||||
NETWORK: amoy
|
||||
- name: Copying over profile postinst for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: cp -rp packaging/templates/package_scripts/postinst.profile packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/DEBIAN/postinst
|
||||
env:
|
||||
ARCH: arm64
|
||||
NODE: archive
|
||||
NETWORK: amoy
|
||||
- name: Copying prerm for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: cp -rp packaging/templates/package_scripts/prerm packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/DEBIAN/prerm
|
||||
env:
|
||||
ARCH: arm64
|
||||
NODE: archive
|
||||
NETWORK: amoy
|
||||
- name: Copying postrm for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: cp -rp packaging/templates/package_scripts/postrm packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/DEBIAN/postrm
|
||||
env:
|
||||
ARCH: arm64
|
||||
NODE: archive
|
||||
NETWORK: amoy
|
||||
- name: Copying the toml for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: cp -rp packaging/templates/testnet-amoy/archive/config.toml packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/var/lib/bor/
|
||||
env:
|
||||
ARCH: arm64
|
||||
NODE: archive
|
||||
NETWORK: amoy
|
||||
- name: Building bor ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }} profile
|
||||
run: dpkg-deb --build --root-owner-group packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}
|
||||
env:
|
||||
ARCH: arm64
|
||||
NODE: archive
|
||||
NETWORK: amoy
|
||||
|
||||
- name: Creating bor ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: cp -rp packaging/deb/bor packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}
|
||||
env:
|
||||
|
|
|
|||
|
|
@ -15,13 +15,13 @@ The easiest way to get started with bor is to install the packages using the com
|
|||
|
||||
curl -L https://raw.githubusercontent.com/maticnetwork/install/main/bor.sh | bash -s -- v0.4.0 <network> <node_type>
|
||||
|
||||
The network accepts `mainnet` or `mumbai` and the node type accepts `validator` or `sentry` or `archive`. The installation script does the following things:
|
||||
The network accepts `mainnet`,`amoy` or `mumbai` and the node type accepts `validator` or `sentry` or `archive`. The installation script does the following things:
|
||||
- Create a new user named `bor`.
|
||||
- Install the bor binary at `/usr/bin/bor`.
|
||||
- Dump the suitable config file (based on the network and node type provided) at `/var/lib/bor` and uses it as the home dir.
|
||||
- Create a systemd service named `bor` at `/lib/systemd/system/bor.service` which starts bor using the config file as `bor` user.
|
||||
|
||||
The releases supports both the networks i.e. Polygon Mainnet and Mumbai (Testnet) unless explicitly specified. Before the stable release for mainnet, pre-releases will be available marked with `beta` tag for deploying on Mumbai (testnet). On sufficient testing, stable release for mainnet will be announced with a forum post.
|
||||
The releases supports both the networks i.e. Polygon Mainnet, Amoy and Mumbai (Testnet) unless explicitly specified. Before the stable release for mainnet, pre-releases will be available marked with `beta` tag for deploying on Mumbai/Amoy (testnet). On sufficient testing, stable release for mainnet will be announced with a forum post.
|
||||
|
||||
### Building from source
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
# `mine`, `etherbase`, `nodiscover`, `maxpeers`, `keystore`, `allow-insecure-unlock`, `password`, `unlock`
|
||||
|
||||
chain = "mainnet"
|
||||
# chain = "mumbai"
|
||||
# chain = "mumbai", "amoy"
|
||||
# identity = "Annon-Identity"
|
||||
# verbosity = 3
|
||||
# vmdebug = false
|
||||
|
|
|
|||
|
|
@ -268,6 +268,8 @@ func ethFilter(args []string) (nodeFilter, error) {
|
|||
filter = forkid.NewStaticFilter(params.MumbaiChainConfig, params.MumbaiGenesisHash)
|
||||
case "bor-mainnet":
|
||||
filter = forkid.NewStaticFilter(params.BorMainnetChainConfig, params.BorMainnetGenesisHash)
|
||||
case "bor-amoy":
|
||||
filter = forkid.NewStaticFilter(params.AmoyChainConfig, params.AmoyGenesisHash)
|
||||
default:
|
||||
return nil, fmt.Errorf("unknown network %q", args[0])
|
||||
}
|
||||
|
|
|
|||
|
|
@ -88,6 +88,7 @@ var (
|
|||
goerliFlag = flag.Bool("goerli", false, "Initializes the faucet with Görli network config")
|
||||
sepoliaFlag = flag.Bool("sepolia", false, "Initializes the faucet with Sepolia network config")
|
||||
mumbaiFlag = flag.Bool("bor-mumbai", false, "Initializes the faucet with Bor-Mumbai network config")
|
||||
amoyFlag = flag.Bool("bor-amoy", false, "Initializes the faucet with Bor-Amoy network config")
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
@ -146,7 +147,7 @@ func main() {
|
|||
log.Crit("Failed to render the faucet template", "err", err)
|
||||
}
|
||||
// Load and parse the genesis block requested by the user
|
||||
genesis, err := getGenesis(*genesisFlag, *goerliFlag, *sepoliaFlag, *mumbaiFlag)
|
||||
genesis, err := getGenesis(*genesisFlag, *goerliFlag, *sepoliaFlag, *mumbaiFlag, *amoyFlag)
|
||||
if err != nil {
|
||||
log.Crit("Failed to parse genesis config", "err", err)
|
||||
}
|
||||
|
|
@ -962,7 +963,7 @@ func authNoAuth(url string) (string, string, common.Address, error) {
|
|||
}
|
||||
|
||||
// getGenesis returns a genesis based on input args
|
||||
func getGenesis(genesisFlag string, goerliFlag bool, sepoliaFlag bool, mumbaiFlag bool) (*core.Genesis, error) {
|
||||
func getGenesis(genesisFlag string, goerliFlag bool, sepoliaFlag bool, mumbaiFlag bool, amoyFlag bool) (*core.Genesis, error) {
|
||||
switch {
|
||||
case genesisFlag != "":
|
||||
var genesis core.Genesis
|
||||
|
|
@ -975,6 +976,8 @@ func getGenesis(genesisFlag string, goerliFlag bool, sepoliaFlag bool, mumbaiFla
|
|||
return core.DefaultSepoliaGenesisBlock(), nil
|
||||
case mumbaiFlag:
|
||||
return core.DefaultMumbaiGenesisBlock(), nil
|
||||
case amoyFlag:
|
||||
return core.DefaultAmoyGenesisBlock(), nil
|
||||
default:
|
||||
return nil, errors.New("no genesis flag provided")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -118,6 +118,10 @@ func loadBaseConfig(ctx *cli.Context) gethConfig {
|
|||
setDefaultMumbaiGethConfig(ctx, &cfg)
|
||||
}
|
||||
|
||||
if ctx.IsSet(utils.AmoyFlag.Name) {
|
||||
setDefaultAmoyGethConfig(ctx, &cfg)
|
||||
}
|
||||
|
||||
if ctx.IsSet(utils.BorMainnetFlag.Name) {
|
||||
setDefaultBorMainnetGethConfig(ctx, &cfg)
|
||||
}
|
||||
|
|
@ -358,6 +362,30 @@ func setDefaultMumbaiGethConfig(ctx *cli.Context, config *gethConfig) {
|
|||
// --pprof is enabled in 'internal/debug/flags.go'
|
||||
}
|
||||
|
||||
// nolint : wsl
|
||||
func setDefaultAmoyGethConfig(ctx *cli.Context, config *gethConfig) {
|
||||
config.Node.P2P.ListenAddr = fmt.Sprintf(":%d", 30303)
|
||||
config.Node.HTTPHost = "0.0.0.0"
|
||||
config.Node.HTTPVirtualHosts = []string{"*"}
|
||||
config.Node.HTTPCors = []string{"*"}
|
||||
config.Node.HTTPPort = 8545
|
||||
config.Node.IPCPath = utils.MakeDataDir(ctx) + "/bor.ipc"
|
||||
config.Node.HTTPModules = []string{"eth", "net", "web3", "txpool", "bor"}
|
||||
config.Eth.SyncMode = downloader.FullSync
|
||||
config.Eth.NetworkId = 80002
|
||||
config.Eth.Miner.GasCeil = 20000000
|
||||
//--miner.gastarget is deprecated, No longed used
|
||||
config.Eth.TxPool.NoLocals = true
|
||||
config.Eth.TxPool.AccountSlots = 16
|
||||
config.Eth.TxPool.GlobalSlots = 131072
|
||||
config.Eth.TxPool.AccountQueue = 64
|
||||
config.Eth.TxPool.GlobalQueue = 131072
|
||||
config.Eth.TxPool.Lifetime = 90 * time.Minute
|
||||
config.Node.P2P.MaxPeers = 50
|
||||
config.Metrics.Enabled = true
|
||||
// --pprof is enabled in 'internal/debug/flags.go'
|
||||
}
|
||||
|
||||
func setDefaultBorMainnetGethConfig(ctx *cli.Context, config *gethConfig) {
|
||||
config.Node.P2P.ListenAddr = fmt.Sprintf(":%d", 30303)
|
||||
config.Node.HTTPHost = "0.0.0.0"
|
||||
|
|
|
|||
|
|
@ -132,7 +132,7 @@ func remoteConsole(ctx *cli.Context) error {
|
|||
if path != "" {
|
||||
if ctx.Bool(utils.GoerliFlag.Name) {
|
||||
path = filepath.Join(path, "goerli")
|
||||
} else if ctx.Bool(utils.MumbaiFlag.Name) || ctx.Bool(utils.BorMainnetFlag.Name) {
|
||||
} else if ctx.Bool(utils.MumbaiFlag.Name) || ctx.Bool(utils.AmoyFlag.Name) || ctx.Bool(utils.BorMainnetFlag.Name) {
|
||||
homeDir, _ := os.UserHomeDir()
|
||||
path = filepath.Join(homeDir, "/.bor/data")
|
||||
} else if ctx.Bool(utils.SepoliaFlag.Name) {
|
||||
|
|
|
|||
|
|
@ -141,6 +141,7 @@ var (
|
|||
utils.SepoliaFlag,
|
||||
utils.GoerliFlag,
|
||||
utils.MumbaiFlag,
|
||||
utils.AmoyFlag,
|
||||
utils.BorMainnetFlag,
|
||||
utils.DeveloperPeriodFlag,
|
||||
utils.VMEnableDebugFlag,
|
||||
|
|
@ -289,6 +290,9 @@ func prepare(ctx *cli.Context) {
|
|||
case ctx.IsSet(utils.MumbaiFlag.Name):
|
||||
log.Info("Starting Bor on Mumbai testnet...")
|
||||
|
||||
case ctx.IsSet(utils.AmoyFlag.Name):
|
||||
log.Info("Starting Bor on Amoy testnet...")
|
||||
|
||||
case ctx.IsSet(utils.BorMainnetFlag.Name):
|
||||
log.Info("Starting Bor on Bor mainnet...")
|
||||
|
||||
|
|
@ -319,6 +323,7 @@ func prepare(ctx *cli.Context) {
|
|||
if !ctx.IsSet(utils.SepoliaFlag.Name) &&
|
||||
!ctx.IsSet(utils.GoerliFlag.Name) &&
|
||||
!ctx.IsSet(utils.MumbaiFlag.Name) &&
|
||||
!ctx.IsSet(utils.AmoyFlag.Name) &&
|
||||
!ctx.IsSet(utils.DeveloperFlag.Name) {
|
||||
// Nope, we're really on mainnet. Bump that cache up!
|
||||
log.Info("Bumping default cache on mainnet", "provided", ctx.Int(utils.CacheFlag.Name), "updated", 4096)
|
||||
|
|
|
|||
|
|
@ -157,6 +157,10 @@ var (
|
|||
Name: "bor-mumbai",
|
||||
Usage: "Mumbai network: pre-configured proof-of-stake test network",
|
||||
}
|
||||
AmoyFlag = &cli.BoolFlag{
|
||||
Name: "bor-amoy",
|
||||
Usage: "Amoy network: pre-configured proof-of-stake test network",
|
||||
}
|
||||
BorMainnetFlag = &cli.BoolFlag{
|
||||
Name: "bor-mainnet",
|
||||
Usage: "Bor mainnet",
|
||||
|
|
|
|||
17
core/allocs/amoy.json
Normal file
17
core/allocs/amoy.json
Normal file
File diff suppressed because one or more lines are too long
|
|
@ -481,6 +481,8 @@ func (g *Genesis) configOrDefault(ghash common.Hash) *params.ChainConfig {
|
|||
return params.MumbaiChainConfig
|
||||
case ghash == params.BorMainnetGenesisHash:
|
||||
return params.BorMainnetChainConfig
|
||||
case ghash == params.AmoyGenesisHash:
|
||||
return params.AmoyChainConfig
|
||||
default:
|
||||
return params.AllEthashProtocolChanges
|
||||
}
|
||||
|
|
@ -646,6 +648,20 @@ func DefaultMumbaiGenesisBlock() *Genesis {
|
|||
}
|
||||
}
|
||||
|
||||
// DefaultAmoyGenesisBlock returns the Amoy network genesis block.
|
||||
func DefaultAmoyGenesisBlock() *Genesis {
|
||||
return &Genesis{
|
||||
Config: params.AmoyChainConfig,
|
||||
Nonce: 0,
|
||||
Timestamp: 1700225065,
|
||||
GasLimit: 10000000,
|
||||
Difficulty: big.NewInt(1),
|
||||
Mixhash: common.HexToHash("0x0000000000000000000000000000000000000000000000000000000000000000"),
|
||||
Coinbase: common.HexToAddress("0x0000000000000000000000000000000000000000"),
|
||||
Alloc: readPrealloc("allocs/amoy.json"),
|
||||
}
|
||||
}
|
||||
|
||||
// DefaultBorMainnet returns the Bor Mainnet network gensis block.
|
||||
func DefaultBorMainnetGenesisBlock() *Genesis {
|
||||
return &Genesis{
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
# This configuration file is for reference and learning purpose only.
|
||||
# The default value of the flags is provided below (except a few flags which has custom defaults which are explicitly mentioned).
|
||||
# Recommended values for mainnet and/or mumbai are also provided.
|
||||
# Recommended values for mainnet and/or mumbai,amoy are also provided.
|
||||
|
||||
chain = "mainnet" # Name of the chain to sync ("mumbai", "mainnet") or path to a genesis file
|
||||
chain = "mainnet" # Name of the chain to sync ("amoy", "mumbai", "mainnet") or path to a genesis file
|
||||
identity = "Annon-Identity" # Name/Identity of the node (default = OS hostname)
|
||||
verbosity = 3 # Logging verbosity for the server (5=trace|4=debug|3=info|2=warn|1=error|0=crit) (`log-level` was replaced by `verbosity`, and thus will be deprecated soon)
|
||||
vmdebug = false # Record information useful for VM and contract debugging
|
||||
|
|
@ -73,7 +73,7 @@ devfakeauthor = false # Run miner without validator set authorization
|
|||
etherbase = "" # Public address for block mining rewards
|
||||
extradata = "" # Block extra data set by the miner (default = client version)
|
||||
gaslimit = 30000000 # Target gas ceiling for mined blocks
|
||||
gasprice = "1000000000" # Minimum gas price for mining a transaction (recommended for mainnet = 30000000000, default suitable for mumbai/devnet)
|
||||
gasprice = "1000000000" # Minimum gas price for mining a transaction (recommended for mainnet = 30000000000, default suitable for amoy/mumbai/devnet)
|
||||
recommit = "2m5s" # The time interval for miner to re-create mining work
|
||||
commitinterrupt = true # Interrupt the current mining work when time is exceeded and create partial blocks
|
||||
|
||||
|
|
@ -127,7 +127,7 @@ devfakeauthor = false # Run miner without validator set authorization
|
|||
maxheaderhistory = 1024 # Maximum header history of gasprice oracle
|
||||
maxblockhistory = 1024 # Maximum block history of gasprice oracle
|
||||
maxprice = "5000000000000" # Maximum gas price will be recommended by gpo
|
||||
ignoreprice = "2" # Gas price below which gpo will ignore transactions (recommended for mainnet = 30000000000, default suitable for mumbai/devnet)
|
||||
ignoreprice = "2" # Gas price below which gpo will ignore transactions (recommended for mainnet = 30000000000, default suitable for amoy/mumbai/devnet)
|
||||
|
||||
[telemetry]
|
||||
metrics = false # Enable metrics collection and reporting
|
||||
|
|
@ -151,7 +151,7 @@ devfakeauthor = false # Run miner without validator set authorization
|
|||
region = "us-north-1"
|
||||
|
||||
[cache]
|
||||
cache = 1024 # Megabytes of memory allocated to internal caching (recommended for mainnet = 4096, default suitable for mumbai/devnet)
|
||||
cache = 1024 # Megabytes of memory allocated to internal caching (recommended for mainnet = 4096, default suitable for amoy/mumbai/devnet)
|
||||
gc = 25 # Percentage of cache memory allowance to use for trie pruning (default = 25% full mode, 0% archive mode)
|
||||
snapshot = 10 # Percentage of cache memory allowance to use for snapshot caching (default = 10% full mode, 20% archive mode)
|
||||
database = 50 # Percentage of cache memory allowance to use for database io
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ The ```bor server``` command runs the Bor client.
|
|||
|
||||
- ```bor.withoutheimdall```: Run without Heimdall service (for testing purpose) (default: false)
|
||||
|
||||
- ```chain```: Name of the chain to sync ('mumbai', 'mainnet') or path to a genesis file (default: mainnet)
|
||||
- ```chain```: Name of the chain to sync ('mumbai', 'mainnet', 'amoy') or path to a genesis file (default: mainnet)
|
||||
|
||||
- ```config```: Path to the TOML configuration file
|
||||
|
||||
|
|
@ -304,4 +304,4 @@ The ```bor server``` command runs the Bor client.
|
|||
|
||||
- ```txpool.pricelimit```: Minimum gas price limit to enforce for acceptance into the pool (default: 1)
|
||||
|
||||
- ```txpool.rejournal```: Time interval to regenerate the local transaction journal (default: 1h0m0s)
|
||||
- ```txpool.rejournal```: Time interval to regenerate the local transaction journal (default: 1h0m0s)
|
||||
|
|
|
|||
17
internal/cli/server/chains/allocs/amoy.json
Normal file
17
internal/cli/server/chains/allocs/amoy.json
Normal file
File diff suppressed because one or more lines are too long
70
internal/cli/server/chains/amoy.go
Normal file
70
internal/cli/server/chains/amoy.go
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
package chains
|
||||
|
||||
import (
|
||||
"math/big"
|
||||
|
||||
"github.com/ethereum/go-ethereum/common"
|
||||
"github.com/ethereum/go-ethereum/core"
|
||||
"github.com/ethereum/go-ethereum/params"
|
||||
)
|
||||
|
||||
var amoyTestnet = &Chain{
|
||||
NetworkId: 80002,
|
||||
Genesis: &core.Genesis{
|
||||
Config: ¶ms.ChainConfig{
|
||||
ChainID: big.NewInt(80002),
|
||||
HomesteadBlock: big.NewInt(0),
|
||||
DAOForkBlock: nil,
|
||||
DAOForkSupport: true,
|
||||
EIP150Block: big.NewInt(0),
|
||||
EIP155Block: big.NewInt(0),
|
||||
EIP158Block: big.NewInt(0),
|
||||
ByzantiumBlock: big.NewInt(0),
|
||||
ConstantinopleBlock: big.NewInt(0),
|
||||
PetersburgBlock: big.NewInt(0),
|
||||
IstanbulBlock: big.NewInt(0),
|
||||
MuirGlacierBlock: big.NewInt(0),
|
||||
BerlinBlock: big.NewInt(0),
|
||||
LondonBlock: big.NewInt(73100),
|
||||
ShanghaiBlock: big.NewInt(73100),
|
||||
Bor: ¶ms.BorConfig{
|
||||
JaipurBlock: big.NewInt(73100),
|
||||
DelhiBlock: big.NewInt(73100),
|
||||
ParallelUniverseBlock: nil,
|
||||
IndoreBlock: big.NewInt(73100),
|
||||
StateSyncConfirmationDelay: map[string]uint64{
|
||||
"0": 128,
|
||||
},
|
||||
Period: map[string]uint64{
|
||||
"0": 2,
|
||||
},
|
||||
ProducerDelay: map[string]uint64{
|
||||
"0": 4,
|
||||
},
|
||||
Sprint: map[string]uint64{
|
||||
"0": 16,
|
||||
},
|
||||
BackupMultiplier: map[string]uint64{
|
||||
"0": 2,
|
||||
},
|
||||
ValidatorContract: "0x0000000000000000000000000000000000001000",
|
||||
StateReceiverContract: "0x0000000000000000000000000000000000001001",
|
||||
BurntContract: map[string]string{
|
||||
"0": "0x000000000000000000000000000000000000dead",
|
||||
"73100": "0xeCDD77cE6f146cCf5dab707941d318Bd50eeD2C9",
|
||||
},
|
||||
},
|
||||
},
|
||||
Nonce: 0,
|
||||
Timestamp: 1700225065,
|
||||
GasLimit: 10000000,
|
||||
Difficulty: big.NewInt(1),
|
||||
Mixhash: common.HexToHash("0x0000000000000000000000000000000000000000000000000000000000000000"),
|
||||
Coinbase: common.HexToAddress("0x0000000000000000000000000000000000000000"),
|
||||
Alloc: readPrealloc("allocs/amoy.json"),
|
||||
},
|
||||
Bootnodes: []string{
|
||||
"enode://bce861be777e91b0a5a49d58a51e14f32f201b4c6c2d1fbea6c7a1f14756cbb3f931f3188d6b65de8b07b53ff28d03b6e366d09e56360d2124a9fc5a15a0913d@54.217.171.196:30303",
|
||||
"enode://4a3dc0081a346d26a73d79dd88216a9402d2292318e2db9947dbc97ea9c4afb2498dc519c0af04420dc13a238c279062da0320181e7c1461216ce4513bfd40bf@13.251.184.185:30303",
|
||||
},
|
||||
}
|
||||
|
|
@ -22,6 +22,7 @@ type Chain struct {
|
|||
var chains = map[string]*Chain{
|
||||
"mainnet": mainnetBor,
|
||||
"mumbai": mumbaiTestnet,
|
||||
"amoy": amoyTestnet,
|
||||
}
|
||||
|
||||
func GetChain(name string) (*Chain, error) {
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ func (c *Command) Flags(config *Config) *flagset.Flagset {
|
|||
|
||||
f.StringFlag(&flagset.StringFlag{
|
||||
Name: "chain",
|
||||
Usage: "Name of the chain to sync ('mumbai', 'mainnet') or path to a genesis file",
|
||||
Usage: "Name of the chain to sync ('amoy', 'mumbai', 'mainnet') or path to a genesis file",
|
||||
Value: &c.cliConfig.Chain,
|
||||
Default: c.cliConfig.Chain,
|
||||
})
|
||||
|
|
|
|||
|
|
@ -595,7 +595,7 @@ func (w *worker) mainLoop(ctx context.Context) {
|
|||
for {
|
||||
select {
|
||||
case req := <-w.newWorkCh:
|
||||
if w.chainConfig.ChainID.Cmp(params.BorMainnetChainConfig.ChainID) == 0 || w.chainConfig.ChainID.Cmp(params.MumbaiChainConfig.ChainID) == 0 {
|
||||
if w.chainConfig.ChainID.Cmp(params.BorMainnetChainConfig.ChainID) == 0 || w.chainConfig.ChainID.Cmp(params.MumbaiChainConfig.ChainID) == 0 || w.chainConfig.ChainID.Cmp(params.AmoyChainConfig.ChainID) == 0 {
|
||||
if w.eth.PeerCount() > 0 {
|
||||
//nolint:contextcheck
|
||||
w.commitWork(req.ctx, req.interrupt, req.noempty, req.timestamp)
|
||||
|
|
|
|||
175
packaging/templates/testnet-amoy/archive/config.toml
Normal file
175
packaging/templates/testnet-amoy/archive/config.toml
Normal file
|
|
@ -0,0 +1,175 @@
|
|||
chain = "amoy"
|
||||
# identity = "node_name"
|
||||
# verbosity = 3
|
||||
# vmdebug = false
|
||||
datadir = "/var/lib/bor/data"
|
||||
# ancient = ""
|
||||
# db.engine = "leveldb"
|
||||
# keystore = ""
|
||||
# "rpc.batchlimit" = 100
|
||||
# "rpc.returndatalimit" = 100000
|
||||
syncmode = "full"
|
||||
gcmode = "archive"
|
||||
# snapshot = true
|
||||
# ethstats = ""
|
||||
# devfakeauthor = false
|
||||
|
||||
# ["eth.requiredblocks"]
|
||||
|
||||
# [log]
|
||||
# vmodule = ""
|
||||
# json = false
|
||||
# backtrace = ""
|
||||
# debug = true
|
||||
|
||||
[p2p]
|
||||
maxpeers = 50
|
||||
port = 30303
|
||||
# maxpendpeers = 50
|
||||
# bind = "0.0.0.0"
|
||||
# nodiscover = false
|
||||
# nat = "any"
|
||||
# netrestrict = ""
|
||||
# nodekey = ""
|
||||
# nodekeyhex = ""
|
||||
# txarrivalwait = "500ms"
|
||||
# [p2p.discovery]
|
||||
# v5disc = false
|
||||
# bootnodes = []
|
||||
# bootnodesv4 = []
|
||||
# bootnodesv5 = []
|
||||
# static-nodes = []
|
||||
# trusted-nodes = []
|
||||
# dns = []
|
||||
|
||||
# [heimdall]
|
||||
# url = "http://localhost:1317"
|
||||
# "bor.without" = false
|
||||
# grpc-address = ""
|
||||
|
||||
[txpool]
|
||||
nolocals = true
|
||||
accountslots = 16
|
||||
globalslots = 131072
|
||||
accountqueue = 64
|
||||
globalqueue = 131072
|
||||
lifetime = "1h30m0s"
|
||||
# locals = []
|
||||
# journal = ""
|
||||
# rejournal = "1h0m0s"
|
||||
# pricelimit = 1
|
||||
# pricebump = 10
|
||||
|
||||
[miner]
|
||||
gaslimit = 30000000
|
||||
# gasprice = "1000000000"
|
||||
# mine = false
|
||||
# etherbase = ""
|
||||
# extradata = ""
|
||||
# recommit = "2m5s"
|
||||
# commitinterrupt = true
|
||||
|
||||
[jsonrpc]
|
||||
ipcpath = "/var/lib/bor/bor.ipc"
|
||||
# ipcdisable = false
|
||||
# gascap = 50000000
|
||||
# evmtimeout = "5s"
|
||||
# txfeecap = 5.0
|
||||
# allow-unprotected-txs = false
|
||||
# enabledeprecatedpersonal = false
|
||||
[jsonrpc.http]
|
||||
enabled = true
|
||||
port = 8545
|
||||
host = "0.0.0.0"
|
||||
api = ["eth", "net", "web3", "txpool", "bor"]
|
||||
vhosts = ["*"]
|
||||
corsdomain = ["*"]
|
||||
# prefix = ""
|
||||
# ep-size = 40
|
||||
# ep-requesttimeout = "0s"
|
||||
[jsonrpc.ws]
|
||||
enabled = true
|
||||
port = 8546
|
||||
# prefix = ""
|
||||
# host = "localhost"
|
||||
# api = ["web3", "net"]
|
||||
origins = ["*"]
|
||||
# ep-size = 40
|
||||
# ep-requesttimeout = "0s"
|
||||
# [jsonrpc.graphql]
|
||||
# enabled = false
|
||||
# port = 0
|
||||
# prefix = ""
|
||||
# host = ""
|
||||
# vhosts = ["*"]
|
||||
# corsdomain = ["*"]
|
||||
# [jsonrpc.auth]
|
||||
# jwtsecret = ""
|
||||
# addr = "localhost"
|
||||
# port = 8551
|
||||
# vhosts = ["localhost"]
|
||||
# [jsonrpc.timeouts]
|
||||
# read = "10s"
|
||||
# write = "30s"
|
||||
# idle = "2m0s"
|
||||
|
||||
# [gpo]
|
||||
# blocks = 20
|
||||
# percentile = 60
|
||||
# maxheaderhistory = 1024
|
||||
# maxblockhistory = 1024
|
||||
# maxprice = "5000000000000"
|
||||
# ignoreprice = "2"
|
||||
|
||||
[telemetry]
|
||||
metrics = true
|
||||
# expensive = false
|
||||
# prometheus-addr = ""
|
||||
# opencollector-endpoint = ""
|
||||
# [telemetry.influx]
|
||||
# influxdb = false
|
||||
# endpoint = ""
|
||||
# database = ""
|
||||
# username = ""
|
||||
# password = ""
|
||||
# influxdbv2 = false
|
||||
# token = ""
|
||||
# bucket = ""
|
||||
# organization = ""
|
||||
# [telemetry.influx.tags]
|
||||
|
||||
[cache]
|
||||
# cache = 1024
|
||||
gc = 0
|
||||
snapshot = 20
|
||||
# database = 50
|
||||
trie = 30
|
||||
# journal = "triecache"
|
||||
# rejournal = "1h0m0s"
|
||||
# noprefetch = false
|
||||
# preimages = false
|
||||
# txlookuplimit = 2350000
|
||||
# timeout = "1h0m0s"
|
||||
# fdlimit = 0
|
||||
|
||||
# [accounts]
|
||||
# unlock = []
|
||||
# password = ""
|
||||
# allow-insecure-unlock = false
|
||||
# lightkdf = false
|
||||
# disable-bor-wallet = false
|
||||
|
||||
# [grpc]
|
||||
# addr = ":3131"
|
||||
|
||||
# [developer]
|
||||
# dev = false
|
||||
# period = 0
|
||||
# gaslimit = 11500000
|
||||
|
||||
# [pprof]
|
||||
# pprof = false
|
||||
# port = 6060
|
||||
# addr = "127.0.0.1"
|
||||
# memprofilerate = 524288
|
||||
# blockprofilerate = 0
|
||||
175
packaging/templates/testnet-amoy/sentry/sentry/bor/config.toml
Normal file
175
packaging/templates/testnet-amoy/sentry/sentry/bor/config.toml
Normal file
|
|
@ -0,0 +1,175 @@
|
|||
chain = "amoy"
|
||||
# identity = "node_name"
|
||||
# verbosity = 3
|
||||
# vmdebug = false
|
||||
datadir = "/var/lib/bor/data"
|
||||
# ancient = ""
|
||||
# db.engine = "leveldb"
|
||||
# keystore = ""
|
||||
# "rpc.batchlimit" = 100
|
||||
# "rpc.returndatalimit" = 100000
|
||||
syncmode = "full"
|
||||
# gcmode = "full"
|
||||
# snapshot = true
|
||||
# ethstats = ""
|
||||
# devfakeauthor = false
|
||||
|
||||
# ["eth.requiredblocks"]
|
||||
|
||||
# [log]
|
||||
# vmodule = ""
|
||||
# json = false
|
||||
# backtrace = ""
|
||||
# debug = true
|
||||
|
||||
[p2p]
|
||||
maxpeers = 50
|
||||
port = 30303
|
||||
# maxpendpeers = 50
|
||||
# bind = "0.0.0.0"
|
||||
# nodiscover = false
|
||||
# nat = "any"
|
||||
# netrestrict = ""
|
||||
# nodekey = ""
|
||||
# nodekeyhex = ""
|
||||
# txarrivalwait = "500ms"
|
||||
# [p2p.discovery]
|
||||
# v5disc = false
|
||||
# bootnodes = []
|
||||
# bootnodesv4 = []
|
||||
# bootnodesv5 = []
|
||||
# static-nodes = []
|
||||
# trusted-nodes = []
|
||||
# dns = []
|
||||
|
||||
# [heimdall]
|
||||
# url = "http://localhost:1317"
|
||||
# "bor.without" = false
|
||||
# grpc-address = ""
|
||||
|
||||
[txpool]
|
||||
nolocals = true
|
||||
accountslots = 16
|
||||
globalslots = 131072
|
||||
accountqueue = 64
|
||||
globalqueue = 131072
|
||||
lifetime = "1h30m0s"
|
||||
# locals = []
|
||||
# journal = ""
|
||||
# rejournal = "1h0m0s"
|
||||
# pricelimit = 1
|
||||
# pricebump = 10
|
||||
|
||||
[miner]
|
||||
gaslimit = 30000000
|
||||
# gasprice = "1000000000"
|
||||
# mine = false
|
||||
# etherbase = ""
|
||||
# extradata = ""
|
||||
# recommit = "2m5s"
|
||||
# commitinterrupt = true
|
||||
|
||||
[jsonrpc]
|
||||
ipcpath = "/var/lib/bor/bor.ipc"
|
||||
# ipcdisable = false
|
||||
# gascap = 50000000
|
||||
# evmtimeout = "5s"
|
||||
# txfeecap = 5.0
|
||||
# allow-unprotected-txs = false
|
||||
# enabledeprecatedpersonal = false
|
||||
[jsonrpc.http]
|
||||
enabled = true
|
||||
port = 8545
|
||||
host = "0.0.0.0"
|
||||
api = ["eth", "net", "web3", "txpool", "bor"]
|
||||
vhosts = ["*"]
|
||||
corsdomain = ["*"]
|
||||
# prefix = ""
|
||||
# ep-size = 40
|
||||
# ep-requesttimeout = "0s"
|
||||
# [jsonrpc.ws]
|
||||
# enabled = false
|
||||
# port = 8546
|
||||
# prefix = ""
|
||||
# host = "localhost"
|
||||
# api = ["web3", "net"]
|
||||
# origins = ["*"]
|
||||
# ep-size = 40
|
||||
# ep-requesttimeout = "0s"
|
||||
# [jsonrpc.graphql]
|
||||
# enabled = false
|
||||
# port = 0
|
||||
# prefix = ""
|
||||
# host = ""
|
||||
# vhosts = ["*"]
|
||||
# corsdomain = ["*"]
|
||||
# [jsonrpc.auth]
|
||||
# jwtsecret = ""
|
||||
# addr = "localhost"
|
||||
# port = 8551
|
||||
# vhosts = ["localhost"]
|
||||
# [jsonrpc.timeouts]
|
||||
# read = "10s"
|
||||
# write = "30s"
|
||||
# idle = "2m0s"
|
||||
|
||||
# [gpo]
|
||||
# blocks = 20
|
||||
# percentile = 60
|
||||
# maxheaderhistory = 1024
|
||||
# maxblockhistory = 1024
|
||||
# maxprice = "5000000000000"
|
||||
# ignoreprice = "2"
|
||||
|
||||
[telemetry]
|
||||
metrics = true
|
||||
# expensive = false
|
||||
# prometheus-addr = ""
|
||||
# opencollector-endpoint = ""
|
||||
# [telemetry.influx]
|
||||
# influxdb = false
|
||||
# endpoint = ""
|
||||
# database = ""
|
||||
# username = ""
|
||||
# password = ""
|
||||
# influxdbv2 = false
|
||||
# token = ""
|
||||
# bucket = ""
|
||||
# organization = ""
|
||||
# [telemetry.influx.tags]
|
||||
|
||||
# [cache]
|
||||
# cache = 1024
|
||||
# gc = 25
|
||||
# snapshot = 10
|
||||
# database = 50
|
||||
# trie = 15
|
||||
# journal = "triecache"
|
||||
# rejournal = "1h0m0s"
|
||||
# noprefetch = false
|
||||
# preimages = false
|
||||
# txlookuplimit = 2350000
|
||||
# timeout = "1h0m0s"
|
||||
# fdlimit = 0
|
||||
|
||||
# [accounts]
|
||||
# unlock = []
|
||||
# password = ""
|
||||
# allow-insecure-unlock = false
|
||||
# lightkdf = false
|
||||
# disable-bor-wallet = false
|
||||
|
||||
# [grpc]
|
||||
# addr = ":3131"
|
||||
|
||||
# [developer]
|
||||
# dev = false
|
||||
# period = 0
|
||||
# gaslimit = 11500000
|
||||
|
||||
# [pprof]
|
||||
# pprof = false
|
||||
# port = 6060
|
||||
# addr = "127.0.0.1"
|
||||
# memprofilerate = 524288
|
||||
# blockprofilerate = 0
|
||||
|
|
@ -0,0 +1,176 @@
|
|||
# NOTE: Update and uncomment: `keystore`, `password`, and `unlock` fields.
|
||||
|
||||
chain = "amoy"
|
||||
# identity = "node_name"
|
||||
# verbosity = 3
|
||||
# vmdebug = false
|
||||
datadir = "/var/lib/bor/data"
|
||||
# ancient = ""
|
||||
# db.engine = "leveldb"
|
||||
# keystore = "$BOR_DIR/keystore"
|
||||
# "rpc.batchlimit" = 100
|
||||
# "rpc.returndatalimit" = 100000
|
||||
syncmode = "full"
|
||||
# gcmode = "full"
|
||||
# snapshot = true
|
||||
# ethstats = ""
|
||||
# devfakeauthor = false
|
||||
|
||||
# ["eth.requiredblocks"]
|
||||
|
||||
# [log]
|
||||
# vmodule = ""
|
||||
# json = false
|
||||
# backtrace = ""
|
||||
# debug = true
|
||||
|
||||
[p2p]
|
||||
maxpeers = 3
|
||||
port = 30303
|
||||
nodiscover = true
|
||||
# maxpendpeers = 50
|
||||
# bind = "0.0.0.0"
|
||||
# nat = "any"
|
||||
# netrestrict = ""
|
||||
# nodekey = ""
|
||||
# nodekeyhex = ""
|
||||
# txarrivalwait = "500ms"
|
||||
# [p2p.discovery]
|
||||
# v5disc = false
|
||||
# bootnodes = []
|
||||
# bootnodesv4 = []
|
||||
# bootnodesv5 = []
|
||||
# static-nodes = []
|
||||
# trusted-nodes = []
|
||||
# dns = []
|
||||
|
||||
# [heimdall]
|
||||
# url = "http://localhost:1317"
|
||||
# "bor.without" = false
|
||||
# grpc-address = ""
|
||||
|
||||
[txpool]
|
||||
nolocals = true
|
||||
accountslots = 16
|
||||
globalslots = 131072
|
||||
accountqueue = 64
|
||||
globalqueue = 131072
|
||||
lifetime = "1h30m0s"
|
||||
# locals = []
|
||||
# journal = ""
|
||||
# rejournal = "1h0m0s"
|
||||
# pricelimit = 1
|
||||
# pricebump = 10
|
||||
|
||||
[miner]
|
||||
mine = true
|
||||
gaslimit = 30000000
|
||||
# gasprice = "1000000000"
|
||||
# etherbase = ""
|
||||
# extradata = ""
|
||||
# recommit = "2m5s"
|
||||
# commitinterrupt = true
|
||||
|
||||
[jsonrpc]
|
||||
ipcpath = "/var/lib/bor/bor.ipc"
|
||||
# ipcdisable = false
|
||||
# gascap = 50000000
|
||||
# evmtimeout = "5s"
|
||||
# txfeecap = 5.0
|
||||
# allow-unprotected-txs = false
|
||||
# enabledeprecatedpersonal = false
|
||||
[jsonrpc.http]
|
||||
enabled = true
|
||||
port = 8545
|
||||
host = "0.0.0.0"
|
||||
api = ["eth", "net", "web3", "txpool", "bor"]
|
||||
vhosts = ["*"]
|
||||
corsdomain = ["*"]
|
||||
# prefix = ""
|
||||
# ep-size = 40
|
||||
# ep-requesttimeout = "0s"
|
||||
# [jsonrpc.ws]
|
||||
# enabled = false
|
||||
# port = 8546
|
||||
# prefix = ""
|
||||
# host = "localhost"
|
||||
# api = ["web3", "net"]
|
||||
# origins = ["*"]
|
||||
# ep-size = 40
|
||||
# ep-requesttimeout = "0s"
|
||||
# [jsonrpc.graphql]
|
||||
# enabled = false
|
||||
# port = 0
|
||||
# prefix = ""
|
||||
# host = ""
|
||||
# vhosts = ["*"]
|
||||
# corsdomain = ["*"]
|
||||
# [jsonrpc.auth]
|
||||
# jwtsecret = ""
|
||||
# addr = "localhost"
|
||||
# port = 8551
|
||||
# vhosts = ["localhost"]
|
||||
# [jsonrpc.timeouts]
|
||||
# read = "10s"
|
||||
# write = "30s"
|
||||
# idle = "2m0s"
|
||||
|
||||
# [gpo]
|
||||
# blocks = 20
|
||||
# percentile = 60
|
||||
# maxheaderhistory = 1024
|
||||
# maxblockhistory = 1024
|
||||
# maxprice = "5000000000000"
|
||||
# ignoreprice = "2"
|
||||
|
||||
[telemetry]
|
||||
metrics = true
|
||||
# expensive = false
|
||||
# prometheus-addr = ""
|
||||
# opencollector-endpoint = ""
|
||||
# [telemetry.influx]
|
||||
# influxdb = false
|
||||
# endpoint = ""
|
||||
# database = ""
|
||||
# username = ""
|
||||
# password = ""
|
||||
# influxdbv2 = false
|
||||
# token = ""
|
||||
# bucket = ""
|
||||
# organization = ""
|
||||
# [telemetry.influx.tags]
|
||||
|
||||
# [cache]
|
||||
# cache = 1024
|
||||
# gc = 25
|
||||
# snapshot = 10
|
||||
# database = 50
|
||||
# trie = 15
|
||||
# journal = "triecache"
|
||||
# rejournal = "1h0m0s"
|
||||
# noprefetch = false
|
||||
# preimages = false
|
||||
# txlookuplimit = 2350000
|
||||
# timeout = "1h0m0s"
|
||||
# fdlimit = 0
|
||||
|
||||
[accounts]
|
||||
allow-insecure-unlock = true
|
||||
# password = "$BOR_DIR/password.txt"
|
||||
# unlock = ["$ADDRESS"]
|
||||
# lightkdf = false
|
||||
# disable-bor-wallet = false
|
||||
|
||||
# [grpc]
|
||||
# addr = ":3131"
|
||||
|
||||
# [developer]
|
||||
# dev = false
|
||||
# period = 0
|
||||
# gaslimit = 11500000
|
||||
|
||||
# pprof = false
|
||||
# port = 6060
|
||||
# addr = "127.0.0.1"
|
||||
# memprofilerate = 524288
|
||||
# blockprofilerate = 0
|
||||
177
packaging/templates/testnet-amoy/without-sentry/bor/config.toml
Normal file
177
packaging/templates/testnet-amoy/without-sentry/bor/config.toml
Normal file
|
|
@ -0,0 +1,177 @@
|
|||
# NOTE: Update and uncomment: `keystore`, `password`, and `unlock` fields.
|
||||
|
||||
chain = "amoy"
|
||||
# identity = "node_name"
|
||||
# verbosity = 3
|
||||
# vmdebug = false
|
||||
datadir = "/var/lib/bor/data"
|
||||
# ancient = ""
|
||||
# db.engine = "leveldb"
|
||||
# keystore = "$BOR_DIR/keystore"
|
||||
# "rpc.batchlimit" = 100
|
||||
# "rpc.returndatalimit" = 100000
|
||||
syncmode = "full"
|
||||
# gcmode = "full"
|
||||
# snapshot = true
|
||||
# ethstats = ""
|
||||
# devfakeauthor = false
|
||||
|
||||
# ["eth.requiredblocks"]
|
||||
|
||||
# [log]
|
||||
# vmodule = ""
|
||||
# json = false
|
||||
# backtrace = ""
|
||||
# debug = true
|
||||
|
||||
[p2p]
|
||||
maxpeers = 50
|
||||
port = 30303
|
||||
# maxpendpeers = 50
|
||||
# bind = "0.0.0.0"
|
||||
# nodiscover = false
|
||||
# nat = "any"
|
||||
# netrestrict = ""
|
||||
# nodekey = ""
|
||||
# nodekeyhex = ""
|
||||
# txarrivalwait = "500ms"
|
||||
# [p2p.discovery]
|
||||
# v5disc = false
|
||||
# bootnodes = []
|
||||
# bootnodesv4 = []
|
||||
# bootnodesv5 = []
|
||||
# static-nodes = []
|
||||
# trusted-nodes = []
|
||||
# dns = []
|
||||
|
||||
# [heimdall]
|
||||
# url = "http://localhost:1317"
|
||||
# "bor.without" = false
|
||||
# grpc-address = ""
|
||||
|
||||
[txpool]
|
||||
nolocals = true
|
||||
accountslots = 16
|
||||
globalslots = 131072
|
||||
accountqueue = 64
|
||||
globalqueue = 131072
|
||||
lifetime = "1h30m0s"
|
||||
# locals = []
|
||||
# journal = ""
|
||||
# rejournal = "1h0m0s"
|
||||
# pricelimit = 1
|
||||
# pricebump = 10
|
||||
|
||||
[miner]
|
||||
mine = true
|
||||
gaslimit = 30000000
|
||||
# gasprice = "1000000000"
|
||||
# etherbase = ""
|
||||
# extradata = ""
|
||||
# recommit = "2m5s"
|
||||
# commitinterrupt = true
|
||||
|
||||
[jsonrpc]
|
||||
ipcpath = "/var/lib/bor/bor.ipc"
|
||||
# ipcdisable = false
|
||||
# gascap = 50000000
|
||||
# evmtimeout = "5s"
|
||||
# txfeecap = 5.0
|
||||
# allow-unprotected-txs = false
|
||||
# enabledeprecatedpersonal = false
|
||||
[jsonrpc.http]
|
||||
enabled = true
|
||||
port = 8545
|
||||
host = "0.0.0.0"
|
||||
api = ["eth", "net", "web3", "txpool", "bor"]
|
||||
vhosts = ["*"]
|
||||
corsdomain = ["*"]
|
||||
# prefix = ""
|
||||
# ep-size = 40
|
||||
# ep-requesttimeout = "0s"
|
||||
# [jsonrpc.ws]
|
||||
# enabled = false
|
||||
# port = 8546
|
||||
# prefix = ""
|
||||
# host = "localhost"
|
||||
# api = ["web3", "net"]
|
||||
# origins = ["*"]
|
||||
# ep-size = 40
|
||||
# ep-requesttimeout = "0s"
|
||||
# [jsonrpc.graphql]
|
||||
# enabled = false
|
||||
# port = 0
|
||||
# prefix = ""
|
||||
# host = ""
|
||||
# vhosts = ["*"]
|
||||
# corsdomain = ["*"]
|
||||
# [jsonrpc.auth]
|
||||
# jwtsecret = ""
|
||||
# addr = "localhost"
|
||||
# port = 8551
|
||||
# vhosts = ["localhost"]
|
||||
# [jsonrpc.timeouts]
|
||||
# read = "10s"
|
||||
# write = "30s"
|
||||
# idle = "2m0s"
|
||||
|
||||
# [gpo]
|
||||
# blocks = 20
|
||||
# percentile = 60
|
||||
# maxheaderhistory = 1024
|
||||
# maxblockhistory = 1024
|
||||
# maxprice = "5000000000000"
|
||||
# ignoreprice = "2"
|
||||
|
||||
[telemetry]
|
||||
metrics = true
|
||||
# expensive = false
|
||||
# prometheus-addr = ""
|
||||
# opencollector-endpoint = ""
|
||||
# [telemetry.influx]
|
||||
# influxdb = false
|
||||
# endpoint = ""
|
||||
# database = ""
|
||||
# username = ""
|
||||
# password = ""
|
||||
# influxdbv2 = false
|
||||
# token = ""
|
||||
# bucket = ""
|
||||
# organization = ""
|
||||
# [telemetry.influx.tags]
|
||||
|
||||
# [cache]
|
||||
# cache = 1024
|
||||
# gc = 25
|
||||
# snapshot = 10
|
||||
# database = 50
|
||||
# trie = 15
|
||||
# journal = "triecache"
|
||||
# rejournal = "1h0m0s"
|
||||
# noprefetch = false
|
||||
# preimages = false
|
||||
# txlookuplimit = 2350000
|
||||
# timeout = "1h0m0s"
|
||||
# fdlimit = 0
|
||||
|
||||
[accounts]
|
||||
allow-insecure-unlock = true
|
||||
# password = "$BOR_DIR/password.txt"
|
||||
# unlock = ["$ADDRESS"]
|
||||
# lightkdf = false
|
||||
# disable-bor-wallet = false
|
||||
|
||||
# [grpc]
|
||||
# addr = ":3131"
|
||||
|
||||
# [developer]
|
||||
# dev = false
|
||||
# period = 0
|
||||
# gaslimit = 11500000
|
||||
|
||||
# [pprof]
|
||||
# pprof = false
|
||||
# port = 6060
|
||||
# addr = "127.0.0.1"
|
||||
# memprofilerate = 524288
|
||||
# blockprofilerate = 0
|
||||
|
|
@ -67,6 +67,13 @@ var MumbaiBootnodes = []string{
|
|||
"enode://209aaf7ed549cf4a5700fd833da25413f80a1248bd3aa7fe2a87203e3f7b236dd729579e5c8df61c97bf508281bae4969d6de76a7393bcbd04a0af70270333b3@54.216.248.9:30303",
|
||||
}
|
||||
|
||||
// AmoyBootnodes are the enode URLs of the P2P bootstrap nodes running on the
|
||||
// Amoy test network.
|
||||
var AmoyBootnodes = []string{
|
||||
"enode://bce861be777e91b0a5a49d58a51e14f32f201b4c6c2d1fbea6c7a1f14756cbb3f931f3188d6b65de8b07b53ff28d03b6e366d09e56360d2124a9fc5a15a0913d@54.217.171.196:30303",
|
||||
"enode://4a3dc0081a346d26a73d79dd88216a9402d2292318e2db9947dbc97ea9c4afb2498dc519c0af04420dc13a238c279062da0320181e7c1461216ce4513bfd40bf@13.251.184.185:30303",
|
||||
}
|
||||
|
||||
// BorMainnetBootnodes are the enode URLs of the P2P bootstrap nodes running on the
|
||||
// main Bor network.
|
||||
var BorMainnetBootnodes = []string{
|
||||
|
|
@ -118,6 +125,8 @@ func KnownDNSNetwork(genesis common.Hash, protocol string) string {
|
|||
net = "mumbai"
|
||||
case BorMainnetGenesisHash:
|
||||
net = "bor-mainnet"
|
||||
case AmoyGenesisHash:
|
||||
net = "amoy"
|
||||
case SepoliaGenesisHash:
|
||||
net = "sepolia"
|
||||
default:
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@ var (
|
|||
MumbaiGenesisHash = common.HexToHash("0x7b66506a9ebdbf30d32b43c5f15a3b1216269a1ec3a75aa3182b86176a2b1ca7")
|
||||
BorMainnetGenesisHash = common.HexToHash("0xa9c28ce2141b56c474f1dc504bee9b01eb1bd7d1a507580d5519d4437a97de1b")
|
||||
KilnGenesisHash = common.HexToHash("0x51c7fe41be669f69c45c33a56982cbde405313342d9e2b00d7c91a7b284dd4f8")
|
||||
AmoyGenesisHash = common.HexToHash("0x7202b2b53c5a0836e773e319d18922cc756dd67432f9a1f65352b61f4406c697")
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
@ -247,6 +248,52 @@ var (
|
|||
},
|
||||
}
|
||||
|
||||
// AmoyChainConfig contains the chain parameters to run a node on the Amoy test network.
|
||||
AmoyChainConfig = &ChainConfig{
|
||||
ChainID: big.NewInt(80002),
|
||||
HomesteadBlock: big.NewInt(0),
|
||||
DAOForkBlock: nil,
|
||||
DAOForkSupport: true,
|
||||
EIP150Block: big.NewInt(0),
|
||||
EIP155Block: big.NewInt(0),
|
||||
EIP158Block: big.NewInt(0),
|
||||
ByzantiumBlock: big.NewInt(0),
|
||||
ConstantinopleBlock: big.NewInt(0),
|
||||
PetersburgBlock: big.NewInt(0),
|
||||
IstanbulBlock: big.NewInt(0),
|
||||
MuirGlacierBlock: big.NewInt(0),
|
||||
BerlinBlock: big.NewInt(0),
|
||||
LondonBlock: big.NewInt(73100),
|
||||
ShanghaiBlock: big.NewInt(73100),
|
||||
Bor: &BorConfig{
|
||||
JaipurBlock: big.NewInt(73100),
|
||||
DelhiBlock: big.NewInt(73100),
|
||||
ParallelUniverseBlock: nil,
|
||||
IndoreBlock: big.NewInt(73100),
|
||||
StateSyncConfirmationDelay: map[string]uint64{
|
||||
"0": 128,
|
||||
},
|
||||
Period: map[string]uint64{
|
||||
"0": 2,
|
||||
},
|
||||
ProducerDelay: map[string]uint64{
|
||||
"0": 4,
|
||||
},
|
||||
Sprint: map[string]uint64{
|
||||
"0": 16,
|
||||
},
|
||||
BackupMultiplier: map[string]uint64{
|
||||
"0": 2,
|
||||
},
|
||||
ValidatorContract: "0x0000000000000000000000000000000000001000",
|
||||
StateReceiverContract: "0x0000000000000000000000000000000000001001",
|
||||
BurntContract: map[string]string{
|
||||
"0": "0x000000000000000000000000000000000000dead",
|
||||
"73100": "0xeCDD77cE6f146cCf5dab707941d318Bd50eeD2C9",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
BorMainnetChainConfig = &ChainConfig{
|
||||
ChainID: big.NewInt(137),
|
||||
HomesteadBlock: big.NewInt(0),
|
||||
|
|
@ -481,6 +528,7 @@ var NetworkNames = map[string]string{
|
|||
SepoliaChainConfig.ChainID.String(): "sepolia",
|
||||
BorMainnetChainConfig.ChainID.String(): "bor",
|
||||
MumbaiChainConfig.ChainID.String(): "mumbai",
|
||||
AmoyChainConfig.ChainID.String(): "amoy",
|
||||
}
|
||||
|
||||
// ChainConfig is the core config which determines the blockchain settings.
|
||||
|
|
|
|||
|
|
@ -38,6 +38,7 @@ var flagMap = map[string][]string{
|
|||
"mainnet": {"BoolFlag", "No"},
|
||||
"goerli": {"BoolFlag", "No"},
|
||||
"bor-mumbai": {"BoolFlag", "No"},
|
||||
"bor-amoy": {"BoolFlag", "No"},
|
||||
"bor-mainnet": {"BoolFlag", "No"},
|
||||
"sepolia": {"BoolFlag", "No"},
|
||||
"exitwhensynced": {"BoolFlag", "No"},
|
||||
|
|
@ -209,6 +210,8 @@ var replacedFlagsMapFlagAndValue = map[string]map[string]map[string]string{
|
|||
"137": "mainnet",
|
||||
"'80001'": "mumbai",
|
||||
"80001": "mumbai",
|
||||
"'80002'": "amoy",
|
||||
"80002": "amoy",
|
||||
},
|
||||
},
|
||||
"verbosity": {
|
||||
|
|
|
|||
Loading…
Reference in a new issue