mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-10 22:13:47 +00:00
merge current qa branch
This commit is contained in:
commit
c807faaa94
26 changed files with 1054 additions and 472 deletions
839
.github/workflows/packager.yml
vendored
839
.github/workflows/packager.yml
vendored
|
|
@ -2,6 +2,10 @@ name: packager
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
branches:
|
||||||
|
- 'main'
|
||||||
|
paths:
|
||||||
|
- '**'
|
||||||
tags:
|
tags:
|
||||||
- 'v*.*.*'
|
- 'v*.*.*'
|
||||||
- 'v*.*.*-*'
|
- 'v*.*.*-*'
|
||||||
|
|
@ -37,10 +41,15 @@ jobs:
|
||||||
- name: removing systemd file for binary
|
- name: removing systemd file for binary
|
||||||
run: rm -rf lib/systemd/system/bor.service
|
run: rm -rf lib/systemd/system/bor.service
|
||||||
|
|
||||||
- name: Creating package for binary only bor
|
- name: Creating package for binary for bor ${{ env.ARCH }}
|
||||||
run: cp -rp packaging/deb/bor packaging/deb/bor-v0.3.0-beta-amd64
|
run: cp -rp packaging/deb/bor packaging/deb/bor-${{ env.GIT_TAG }}-${{ env.ARCH }}
|
||||||
|
env:
|
||||||
|
ARCH: amd64
|
||||||
|
|
||||||
- name: Running package build
|
- name: Running package build
|
||||||
run: dpkg-deb --build --root-owner-group packaging/deb/bor-v0.3.0-beta-amd64
|
run: dpkg-deb --build --root-owner-group packaging/deb/bor-${{ env.GIT_TAG }}-${{ env.ARCH }}
|
||||||
|
env:
|
||||||
|
ARCH: amd64
|
||||||
|
|
||||||
- name: Removing the bor binary
|
- name: Removing the bor binary
|
||||||
run: rm -rf packaging/deb/bor/usr/bin/bor
|
run: rm -rf packaging/deb/bor/usr/bin/bor
|
||||||
|
|
@ -50,113 +59,317 @@ jobs:
|
||||||
- name: Copying systemd file
|
- name: Copying systemd file
|
||||||
run: cp -rp packaging/templates/systemd/bor.service packaging/deb/bor/lib/systemd/system/bor.service
|
run: cp -rp packaging/templates/systemd/bor.service packaging/deb/bor/lib/systemd/system/bor.service
|
||||||
|
|
||||||
- name: Prepping Mumbai Sentry Node Profile for amd64
|
- name: Prepping ${{ env.NETWORK }} ${{ env.NODE }} node for ${{ env.ARCH }}
|
||||||
run: cp -rp packaging/deb/bor packaging/deb/bor-mumbai-sentry-config_v0.3.0-beta-amd64
|
run: cp -rp packaging/deb/bor packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}
|
||||||
- name: Putting toml
|
env:
|
||||||
run: cp -rp packaging/templates/testnet-v4/sentry/sentry/bor/config.toml packaging/deb/bor-mumbai-sentry-config_v0.3.0-beta-amd64/var/lib/bor/
|
ARCH: amd64
|
||||||
- name: Copying the preinst
|
NODE: sentry
|
||||||
run: cp -rp packaging/templates/package_scripts/preinst packaging/deb/bor-mumbai-sentry-config_v0.3.0-beta-amd64/DEBIAN/preinst
|
NETWORK: mumbai
|
||||||
- name: Copying the postinst
|
- name: Putting toml for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||||
run: cp -rp packaging/templates/package_scripts/postinst.profile packaging/deb/bor-mumbai-sentry-config_v0.3.0-beta-amd64/DEBIAN/postinst
|
run: cp -rp packaging/templates/testnet-v4/sentry/sentry/bor/config.toml packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/var/lib/bor/
|
||||||
- name: Copying the prerm
|
env:
|
||||||
run: cp -rp packaging/templates/package_scripts/prerm packaging/deb/bor-mumbai-sentry-config_v0.3.0-beta-amd64/DEBIAN/prerm
|
ARCH: amd64
|
||||||
- name: Copying the postrm
|
NODE: sentry
|
||||||
run: cp -rp packaging/templates/package_scripts/postrm packaging/deb/bor-mumbai-sentry-config_v0.3.0-beta-amd64/DEBIAN/postrm
|
NETWORK: mumbai
|
||||||
- name: Copying systemd file
|
- name: Copying the preinst for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||||
run: cp -rp packaging/templates/systemd/bor.service packaging/deb/bor-mumbai-sentry-config_v0.3.0-beta-amd64/lib/systemd/system/
|
run: cp -rp packaging/templates/package_scripts/preinst packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/DEBIAN/preinst
|
||||||
- name: Copying profile control file
|
env:
|
||||||
run: cp -rp packaging/templates/package_scripts/control.profile.amd64 packaging/deb/bor-mumbai-sentry-config_v0.3.0-beta-amd64/DEBIAN/control
|
ARCH: amd64
|
||||||
- name: Running package build for sentry on amd64
|
NODE: sentry
|
||||||
run: dpkg-deb --build --root-owner-group packaging/deb/bor-mumbai-sentry-config_v0.3.0-beta-amd64
|
NETWORK: mumbai
|
||||||
|
- 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: mumbai
|
||||||
|
- 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: mumbai
|
||||||
|
- 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: mumbai
|
||||||
|
- 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: mumbai
|
||||||
|
- 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: mumbai
|
||||||
|
- 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: mumbai
|
||||||
|
|
||||||
- name: Setting up Mainnet Sentry Config for amd64
|
- name: Setting up ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||||
run: cp -rp packaging/deb/bor packaging/deb/bor-mainnet-sentry-config_v0.3.0-beta-amd64
|
run: cp -rp packaging/deb/bor packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}
|
||||||
- name: Copying control file
|
env:
|
||||||
run: cp -rp packaging/templates/package_scripts/control packaging/deb/bor-mainnet-sentry-config_v0.3.0-beta-amd64/DEBIAN/control
|
ARCH: amd64
|
||||||
- name: Putting toml
|
NODE: sentry
|
||||||
run: cp -rp packaging/templates/mainnet-v1/sentry/sentry/bor/config.toml packaging/deb/bor-mainnet-sentry-config_v0.3.0-beta-amd64/var/lib/bor/
|
NETWORK: mainnet
|
||||||
- name: Copying the preinst
|
- name: Copying control file for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||||
run: cp -rp packaging/templates/package_scripts/preinst packaging/deb/bor-mainnet-sentry-config_v0.3.0-beta-amd64/DEBIAN/preinst
|
run: cp -rp packaging/templates/package_scripts/control packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/DEBIAN/control
|
||||||
- name: Copying the postinst
|
env:
|
||||||
run: cp -rp packaging/templates/package_scripts/postinst.profile packaging/deb/bor-mainnet-sentry-config_v0.3.0-beta-amd64/DEBIAN/postinst
|
ARCH: amd64
|
||||||
- name: Copying the prerm
|
NODE: sentry
|
||||||
run: cp -rp packaging/templates/package_scripts/prerm packaging/deb/bor-mainnet-sentry-config_v0.3.0-beta-amd64/DEBIAN/prerm
|
NETWORK: mainnet
|
||||||
- name: Copying the postrm
|
- name: Putting toml for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||||
run: cp -rp packaging/templates/package_scripts/postrm packaging/deb/bor-mainnet-sentry-config_v0.3.0-beta-amd64/DEBIAN/postrm
|
run: cp -rp packaging/templates/mainnet-v1/sentry/sentry/bor/config.toml packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/var/lib/bor/
|
||||||
- name: Copying profile control file
|
env:
|
||||||
run: cp -rp packaging/templates/package_scripts/control.profile.amd64 packaging/deb/bor-mainnet-sentry-config_v0.3.0-beta-amd64/DEBIAN/control
|
ARCH: amd64
|
||||||
- name: Building Sentry for amd64
|
NODE: sentry
|
||||||
run: dpkg-deb --build --root-owner-group packaging/deb/bor-mainnet-sentry-config_v0.3.0-beta-amd64
|
NETWORK: mainnet
|
||||||
|
- 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: mainnet
|
||||||
|
- 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: mainnet
|
||||||
|
- 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: mainnet
|
||||||
|
- 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: mainnet
|
||||||
|
- 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: mainnet
|
||||||
|
- name: Building ${{ 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: sentry
|
||||||
|
NETWORK: mainnet
|
||||||
|
|
||||||
- name: Prepping Bor Validator Profile for amd64
|
- name: Prepping Bor ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||||
run: cp -rp packaging/deb/bor packaging/deb/bor-mumbai-validator-config_v0.3.0-beta-amd64
|
run: cp -rp packaging/deb/bor packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}
|
||||||
- name: Copying control file for validator on amd64
|
env:
|
||||||
run: cp -rp packaging/templates/package_scripts/control.validator packaging/deb/bor-mumbai-validator-config_v0.3.0-beta-amd64/DEBIAN/control
|
ARCH: amd64
|
||||||
- name: Copying Postinstall script
|
NODE: validator
|
||||||
run: cp -rp packaging/templates/package_scripts/postinst.profile packaging/deb/bor-mumbai-validator-config_v0.3.0-beta-amd64/DEBIAN/postinst
|
NETWORK: mumbai
|
||||||
- name: Copying Prerm script
|
- name: Copying control file for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||||
run: cp -rp packaging/templates/package_scripts/prerm packaging/deb/bor-mumbai-validator-config_v0.3.0-beta-amd64/DEBIAN/prerm
|
run: cp -rp packaging/templates/package_scripts/control.validator packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/DEBIAN/control
|
||||||
- name: Copying Postrm script
|
env:
|
||||||
run: cp -rp packaging/templates/package_scripts/postrm packaging/deb/bor-mumbai-validator-config_v0.3.0-beta-amd64/DEBIAN/postrm
|
ARCH: amd64
|
||||||
- name: Copying config.toml for validator for bor
|
NODE: validator
|
||||||
run: cp -rp packaging/templates/testnet-v4/sentry/validator/bor/config.toml packaging/deb/bor-mumbai-validator-config_v0.3.0-beta-amd64/var/lib/bor/
|
NETWORK: mumbai
|
||||||
- name: Copying profile control file
|
- name: Copying Postinstall script for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||||
run: cp -rp packaging/templates/package_scripts/control.profile.amd64 packaging/deb/bor-mumbai-validator-config_v0.3.0-beta-amd64/DEBIAN/control
|
run: cp -rp packaging/templates/package_scripts/postinst.profile packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/DEBIAN/postinst
|
||||||
- name: Building bor validator on amd64
|
env:
|
||||||
run: dpkg-deb --build --root-owner-group packaging/deb/bor-mumbai-validator-config_v0.3.0-beta-amd64
|
ARCH: amd64
|
||||||
|
NODE: validator
|
||||||
|
NETWORK: mumbai
|
||||||
|
- 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: mumbai
|
||||||
|
- 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: mumbai
|
||||||
|
- name: Copying config.toml for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||||
|
run: cp -rp packaging/templates/testnet-v4/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: mumbai
|
||||||
|
- 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: mumbai
|
||||||
|
- 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: mumbai
|
||||||
|
|
||||||
- name: Prepping Bor Mainnet Validator for amd64
|
- name: Prepping Bor ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||||
run: cp -rp packaging/deb/bor packaging/deb/bor-mainnet-validator-config_v0.3.0-beta-amd64
|
run: cp -rp packaging/deb/bor packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}
|
||||||
- name: Copying control file for validator on arm64
|
env:
|
||||||
run: cp -rp packaging/templates/package_scripts/control.validator packaging/deb/bor-mainnet-validator-config_v0.3.0-beta-amd64/DEBIAN/control
|
ARCH: amd64
|
||||||
- name: Copying the preinst
|
NODE: validator
|
||||||
run: cp -rp packaging/templates/package_scripts/preinst packaging/deb/bor-mainnet-validator-config_v0.3.0-beta-amd64/DEBIAN/preinst
|
NETWORK: mainnet
|
||||||
- name: Copying Postinstall script
|
- name: Copying control file for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||||
run: cp -rp packaging/templates/package_scripts/postinst.profile packaging/deb/bor-mainnet-validator-config_v0.3.0-beta-amd64/DEBIAN/postinst
|
run: cp -rp packaging/templates/package_scripts/control.validator packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/DEBIAN/control
|
||||||
- name: Copying the prerm
|
env:
|
||||||
run: cp -rp packaging/templates/package_scripts/prerm packaging/deb/bor-mainnet-validator-config_v0.3.0-beta-amd64/DEBIAN/prerm
|
ARCH: amd64
|
||||||
- name: Copying the postrm
|
NODE: validator
|
||||||
run: cp -rp packaging/templates/package_scripts/postrm packaging/deb/bor-mainnet-validator-config_v0.3.0-beta-amd64/DEBIAN/postrm
|
NETWORK: mainnet
|
||||||
- name: Copying config.toml for validator for bor
|
- name: Copying the preinst for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||||
run: cp -rp packaging/templates/mainnet-v1/sentry/validator/bor/config.toml packaging/deb/bor-mainnet-validator-config_v0.3.0-beta-amd64/var/lib/bor/
|
run: cp -rp packaging/templates/package_scripts/preinst packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/DEBIAN/preinst
|
||||||
- name: Copying profile control file
|
env:
|
||||||
run: cp -rp packaging/templates/package_scripts/control.profile.amd64 packaging/deb/bor-mainnet-validator-config_v0.3.0-beta-amd64/DEBIAN/control
|
ARCH: amd64
|
||||||
- name: Building bor validator on amd64
|
NODE: validator
|
||||||
run: dpkg-deb --build --root-owner-group packaging/deb/bor-mainnet-validator-config_v0.3.0-beta-amd64
|
NETWORK: mainnet
|
||||||
|
- 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: mainnet
|
||||||
|
- 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: validator
|
||||||
|
NETWORK: mainnet
|
||||||
|
- 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: validator
|
||||||
|
NETWORK: mainnet
|
||||||
|
- name: Copying config.toml for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||||
|
run: cp -rp packaging/templates/mainnet-v1/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: mainnet
|
||||||
|
- 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: mainnet
|
||||||
|
- 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: mainnet
|
||||||
|
|
||||||
- name: Creating mumbai archive node profile for amd64
|
- name: Creating bor ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||||
run: cp -rp packaging/deb/bor packaging/deb/bor-mumbai-archive-config_v0.3.0-beta-amd64
|
run: cp -rp packaging/deb/bor packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}
|
||||||
- name: Copying profile control file
|
env:
|
||||||
run: cp -rp packaging/templates/package_scripts/control.profile.amd64 packaging/deb/bor-mumbai-archive-config_v0.3.0-beta-amd64/DEBIAN/control
|
ARCH: amd64
|
||||||
- name: Copying profile preinst file
|
NODE: archive
|
||||||
run: cp -rp packaging/templates/package_scripts/preinst packaging/deb/bor-mumbai-archive-config_v0.3.0-beta-amd64/DEBIAN/preinst
|
NETWORK: mumbai
|
||||||
- name: Copying the profile postinst
|
- name: Copying profile control file for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||||
run: cp -rp packaging/templates/package_scripts/postinst.profile packaging/deb/bor-mumbai-archive-config_v0.3.0-beta-amd64/DEBIAN/postinst
|
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
|
||||||
- name: Copying profile prerm file
|
env:
|
||||||
run: cp -rp packaging/templates/package_scripts/prerm packaging/deb/bor-mumbai-archive-config_v0.3.0-beta-amd64/DEBIAN/prerm
|
ARCH: amd64
|
||||||
- name: Copying profile postrm file
|
NODE: archive
|
||||||
run: cp -rp packaging/templates/package_scripts/postrm packaging/deb/bor-mumbai-archive-config_v0.3.0-beta-amd64/DEBIAN/postrm
|
NETWORK: mumbai
|
||||||
- name: Copying the toml
|
- name: Copying profile preinst file for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||||
run: cp -rp packaging/templates/testnet-v4/archive/config.toml packaging/deb/bor-mumbai-archive-config_v0.3.0-beta-amd64/var/lib/bor/
|
run: cp -rp packaging/templates/package_scripts/preinst packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/DEBIAN/preinst
|
||||||
- name: Building profile package
|
env:
|
||||||
run: dpkg-deb --build --root-owner-group packaging/deb/bor-mumbai-archive-config_v0.3.0-beta-amd64
|
ARCH: amd64
|
||||||
|
NODE: archive
|
||||||
|
NETWORK: mumbai
|
||||||
|
- 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: mumbai
|
||||||
|
- 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: mumbai
|
||||||
|
- 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: mumbai
|
||||||
|
- name: Copying the toml for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||||
|
run: cp -rp packaging/templates/testnet-v4/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: mumbai
|
||||||
|
- 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: mumbai
|
||||||
|
|
||||||
- name: Creating mainnet archive node profile for amd64
|
- name: Creating bor ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||||
run: cp -rp packaging/deb/bor packaging/deb/bor-mainnet-archive-config_v0.3.0-beta-amd64
|
run: cp -rp packaging/deb/bor packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}
|
||||||
- name: Copying profile control file
|
env:
|
||||||
run: cp -rp packaging/templates/package_scripts/control.profile.amd64 packaging/deb/bor-mumbai-archive-config_v0.3.0-beta-amd64/DEBIAN/control
|
ARCH: amd64
|
||||||
- name: Copying profile preinst file
|
NODE: archive
|
||||||
run: cp -rp packaging/templates/package_scripts/preinst packaging/deb/bor-mainnet-archive-config_v0.3.0-beta-amd64/DEBIAN/preinst
|
NETWORK: mainnet
|
||||||
- name: Copying the profile postinst
|
- name: Copying control file for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||||
run: cp -rp packaging/templates/package_scripts/postinst.profile packaging/deb/bor-mainnet-archive-config_v0.3.0-beta-amd64/DEBIAN/postinst
|
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
|
||||||
- name: Copying profile prerm file
|
env:
|
||||||
run: cp -rp packaging/templates/package_scripts/prerm packaging/deb/bor-mainnet-archive-config_v0.3.0-beta-amd64/DEBIAN/prerm
|
ARCH: amd64
|
||||||
- name: Copying profile postrm file
|
NODE: archive
|
||||||
run: cp -rp packaging/templates/package_scripts/postrm packaging/deb/bor-mainnet-archive-config_v0.3.0-beta-amd64/DEBIAN/postrm
|
NETWORK: mainnet
|
||||||
- name: Copying the toml
|
- name: Copying profile preinst file for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||||
run: cp -rp packaging/templates/mainnet-v1/archive/config.toml packaging/deb/bor-mainnet-archive-config_v0.3.0-beta-amd64/var/lib/bor/
|
run: cp -rp packaging/templates/package_scripts/preinst packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/DEBIAN/preinst
|
||||||
- name: Building porfile package
|
env:
|
||||||
run: dpkg-deb --build --root-owner-group packaging/deb/bor-mainnet-archive-config_v0.3.0-beta-amd64
|
ARCH: amd64
|
||||||
|
NODE: archive
|
||||||
|
NETWORK: mainnet
|
||||||
|
- 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: mainnet
|
||||||
|
- 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: mainnet
|
||||||
|
- 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: mainnet
|
||||||
|
- name: Copying the toml for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||||
|
run: cp -rp packaging/templates/mainnet-v1/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: mainnet
|
||||||
|
- 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: mainnet
|
||||||
|
|
||||||
- name: Cleaning build directory for arm64 build
|
- name: Cleaning build directory for arm64 build
|
||||||
run: make clean
|
run: make clean
|
||||||
|
|
@ -177,11 +390,17 @@ jobs:
|
||||||
run: cp -rp build/bin/bor packaging/deb/bor/usr/bin/
|
run: cp -rp build/bin/bor packaging/deb/bor/usr/bin/
|
||||||
|
|
||||||
- name: Creating package for binary only bor
|
- name: Creating package for binary only bor
|
||||||
run: cp -rp packaging/deb/bor packaging/deb/bor-v0.3.0-beta-arm64
|
run: cp -rp packaging/deb/bor packaging/deb/bor-${{ env.GIT_TAG }}-${{ env.ARCH }}
|
||||||
|
env:
|
||||||
|
ARCH: arm64
|
||||||
- name: Copying control file
|
- name: Copying control file
|
||||||
run: cp -rp packaging/templates/package_scripts/control.arm64 packaging/deb/bor-v0.3.0-beta-arm64/DEBIAN/control
|
run: cp -rp packaging/templates/package_scripts/control.arm64 packaging/deb/bor-${{ env.GIT_TAG }}-${{ env.ARCH }}/DEBIAN/control
|
||||||
|
env:
|
||||||
|
ARCH: arm64
|
||||||
- name: Running package build
|
- name: Running package build
|
||||||
run: dpkg-deb --build --root-owner-group packaging/deb/bor-v0.3.0-beta-arm64
|
run: dpkg-deb --build --root-owner-group packaging/deb/bor-${{ env.GIT_TAG }}-${{ env.ARCH }}
|
||||||
|
env:
|
||||||
|
ARCH: arm64
|
||||||
|
|
||||||
- name: Removing the bor binary
|
- name: Removing the bor binary
|
||||||
run: rm -rf packaging/deb/bor/usr/bin/bor
|
run: rm -rf packaging/deb/bor/usr/bin/bor
|
||||||
|
|
@ -192,123 +411,323 @@ jobs:
|
||||||
- name: Updating the control file to use with the arm64 profile
|
- name: Updating the control file to use with the arm64 profile
|
||||||
run: cp -rp packaging/templates/package_scripts/control.profile.arm64 packaging/deb/bor/DEBIAN/control
|
run: cp -rp packaging/templates/package_scripts/control.profile.arm64 packaging/deb/bor/DEBIAN/control
|
||||||
|
|
||||||
- name: Setting up Mumbai Sentry Config for arm64
|
- name: Setting up bor for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||||
run: cp -rp packaging/deb/bor packaging/deb/bor-mumbai-sentry-config_v0.3.0-beta-arm64
|
run: cp -rp packaging/deb/bor packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}
|
||||||
- name: Copying control file
|
env:
|
||||||
run: cp -rp packaging/templates/package_scripts/control.arm64 packaging/deb/bor-mumbai-sentry-config_v0.3.0-beta-arm64/DEBIAN/control
|
ARCH: arm64
|
||||||
- name: Putting toml
|
NODE: sentry
|
||||||
run: cp -rp packaging/templates/testnet-v4/sentry/sentry/bor/config.toml packaging/deb/bor-mumbai-sentry-config_v0.3.0-beta-arm64/var/lib/bor/
|
NETWORK: mumbai
|
||||||
- name: Copying the preinst
|
- name: Copying control file for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||||
run: cp -rp packaging/templates/package_scripts/preinst packaging/deb/bor-mumbai-sentry-config_v0.3.0-beta-arm64/DEBIAN/preinst
|
run: cp -rp packaging/templates/package_scripts/control.arm64 packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/DEBIAN/control
|
||||||
- name: Copying the prerm
|
env:
|
||||||
run: cp -rp packaging/templates/package_scripts/prerm packaging/deb/bor-mumbai-sentry-config_v0.3.0-beta-arm64/DEBIAN/prerm
|
ARCH: arm64
|
||||||
- name: Copying the postrm
|
NODE: sentry
|
||||||
run: cp -rp packaging/templates/package_scripts/postrm packaging/deb/bor-mumbai-sentry-config_v0.3.0-beta-arm64/DEBIAN/postrm
|
NETWORK: mumbai
|
||||||
- name: Copying the postinst
|
- name: Putting toml for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||||
run: cp -rp packaging/templates/package_scripts/postinst.profile packaging/deb/bor-mumbai-sentry-config_v0.3.0-beta-arm64/DEBIAN/postinst
|
run: cp -rp packaging/templates/testnet-v4/sentry/sentry/bor/config.toml packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/var/lib/bor/
|
||||||
- name: Copying profile control file
|
env:
|
||||||
run: cp -rp packaging/templates/package_scripts/control.profile.arm64 packaging/deb/bor-mumbai-sentry-config_v0.3.0-beta-arm64/DEBIAN/control
|
ARCH: arm64
|
||||||
- name: Building Sentry for arm64
|
NODE: sentry
|
||||||
run: dpkg-deb --build --root-owner-group packaging/deb/bor-mumbai-sentry-config_v0.3.0-beta-arm64
|
NETWORK: mumbai
|
||||||
|
- 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: mumbai
|
||||||
|
- 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: mumbai
|
||||||
|
- 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: mumbai
|
||||||
|
- 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: mumbai
|
||||||
|
- 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: mumbai
|
||||||
|
- 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: mumbai
|
||||||
|
|
||||||
- name: Setting up Mainnet Sentry Config for arm64
|
- name: Setting up bor for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||||
run: cp -rp packaging/deb/bor packaging/deb/bor-mainnet-sentry-config_v0.3.0-beta-arm64
|
run: cp -rp packaging/deb/bor packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}
|
||||||
- name: Copying control file
|
env:
|
||||||
run: cp -rp packaging/templates/package_scripts/control.arm64 packaging/deb/bor-mainnet-sentry-config_v0.3.0-beta-arm64/DEBIAN/control
|
ARCH: arm64
|
||||||
- name: Putting toml
|
NODE: sentry
|
||||||
run: cp -rp packaging/templates/mainnet-v1/sentry/sentry/bor/config.toml packaging/deb/bor-mainnet-sentry-config_v0.3.0-beta-arm64/var/lib/bor/
|
NETWORK: mainnet
|
||||||
- name: Copying the preinst
|
- name: Copying control file for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||||
run: cp -rp packaging/templates/package_scripts/preinst packaging/deb/bor-mainnet-sentry-config_v0.3.0-beta-arm64/DEBIAN/preinst
|
run: cp -rp packaging/templates/package_scripts/control.arm64 packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/DEBIAN/control
|
||||||
- name: Copying the prerm
|
env:
|
||||||
run: cp -rp packaging/templates/package_scripts/prerm packaging/deb/bor-mainnet-sentry-config_v0.3.0-beta-arm64/DEBIAN/prerm
|
ARCH: arm64
|
||||||
- name: Copying the postrm
|
NODE: sentry
|
||||||
run: cp -rp packaging/templates/package_scripts/postrm packaging/deb/bor-mainnet-sentry-config_v0.3.0-beta-arm64/DEBIAN/postrm
|
NETWORK: mainnet
|
||||||
- name: Copying the postinst
|
- name: Putting toml for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||||
run: cp -rp packaging/templates/package_scripts/postinst.profile packaging/deb/bor-mainnet-sentry-config_v0.3.0-beta-arm64/DEBIAN/postinst
|
run: cp -rp packaging/templates/mainnet-v1/sentry/sentry/bor/config.toml packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/var/lib/bor/
|
||||||
- name: Copying profile control file
|
env:
|
||||||
run: cp -rp packaging/templates/package_scripts/control.profile.arm64 packaging/deb/bor-mainnet-sentry-config_v0.3.0-beta-arm64/DEBIAN/control
|
ARCH: arm64
|
||||||
- name: Building Sentry for arm64
|
NODE: sentry
|
||||||
run: dpkg-deb --build --root-owner-group packaging/deb/bor-mainnet-sentry-config_v0.3.0-beta-arm64
|
NETWORK: mainnet
|
||||||
|
- 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: mainnet
|
||||||
|
- 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: mainnet
|
||||||
|
- 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: mainnet
|
||||||
|
- 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: mainnet
|
||||||
|
- 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: mainnet
|
||||||
|
- 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: mainnet
|
||||||
|
|
||||||
- name: Prepping Bor Mumbai Validator for arm64
|
- name: Prepping Bor for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||||
run: cp -rp packaging/deb/bor packaging/deb/bor-mumbai-validator-config_v0.3.0-beta-arm64
|
run: cp -rp packaging/deb/bor packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}
|
||||||
- name: Copying control file for validator on arm64
|
env:
|
||||||
run: cp -rp packaging/templates/package_scripts/control.validator.arm64 packaging/deb/bor-mumbai-validator-config_v0.3.0-beta-arm64/DEBIAN/control
|
ARCH: arm64
|
||||||
- name: Copying the preinst
|
NODE: validator
|
||||||
run: cp -rp packaging/templates/package_scripts/preinst packaging/deb/bor-mumbai-sentry-config_v0.3.0-beta-arm64/DEBIAN/preinst
|
NETWORK: mumbai
|
||||||
- name: Copying Postinstall script
|
- name: Copying control file for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||||
run: cp -rp packaging/templates/package_scripts/postinst.profile packaging/deb/bor-mumbai-validator-config_v0.3.0-beta-arm64/DEBIAN/postinst
|
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
|
||||||
- name: Copying the prerm
|
env:
|
||||||
run: cp -rp packaging/templates/package_scripts/prerm packaging/deb/bor-mumbai-sentry-config_v0.3.0-beta-arm64/DEBIAN/prerm
|
ARCH: arm64
|
||||||
- name: Copying the postrm
|
NODE: validator
|
||||||
run: cp -rp packaging/templates/package_scripts/postrm packaging/deb/bor-mumbai-sentry-config_v0.3.0-beta-arm64/DEBIAN/postrm
|
NETWORK: mumbai
|
||||||
- name: Copying config.toml for validator for bor
|
- name: Copying the preinst for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||||
run: cp -rp packaging/templates/testnet-v4/sentry/validator/bor/config.toml packaging/deb/bor-mumbai-validator-config_v0.3.0-beta-arm64/var/lib/bor/
|
run: cp -rp packaging/templates/package_scripts/preinst packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/DEBIAN/preinst
|
||||||
- name: Copying profile control file
|
env:
|
||||||
run: cp -rp packaging/templates/package_scripts/control.profile.arm64 packaging/deb/bor-mumbai-validator-config_v0.3.0-beta-arm64/DEBIAN/control
|
ARCH: arm64
|
||||||
- name: Building bor validator on arm64
|
NODE: validator
|
||||||
run: dpkg-deb --build --root-owner-group packaging/deb/bor-mumbai-validator-config_v0.3.0-beta-arm64
|
NETWORK: mumbai
|
||||||
|
- 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: mumbai
|
||||||
|
- 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: mumbai
|
||||||
|
- 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: mumbai
|
||||||
|
- name: Copying config.toml for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||||
|
run: cp -rp packaging/templates/testnet-v4/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: mumbai
|
||||||
|
- 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: mumbai
|
||||||
|
- 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: mumbai
|
||||||
|
|
||||||
- name: Prepping Bor Mainnet Validator for arm64
|
- name: Prepping Bor ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||||
run: cp -rp packaging/deb/bor packaging/deb/bor-mainnet-validator-config_v0.3.0-beta-arm64
|
run: cp -rp packaging/deb/bor packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}
|
||||||
- name: Copying control file for validator on arm64
|
env:
|
||||||
run: cp -rp packaging/templates/package_scripts/control.validator.arm64 packaging/deb/bor-mainnet-validator-config_v0.3.0-beta-arm64/DEBIAN/control
|
ARCH: arm64
|
||||||
- name: Copying the preinst
|
NODE: validator
|
||||||
run: cp -rp packaging/templates/package_scripts/preinst packaging/deb/bor-mainnet-validator-config_v0.3.0-beta-arm64/DEBIAN/preinst
|
NETWORK: mainnet
|
||||||
- name: Copying Postinstall script
|
- name: Copying control file for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||||
run: cp -rp packaging/templates/package_scripts/postinst.profile packaging/deb/bor-mainnet-validator-config_v0.3.0-beta-arm64/DEBIAN/postinst
|
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
|
||||||
- name: Copying the prerm
|
env:
|
||||||
run: cp -rp packaging/templates/package_scripts/prerm packaging/deb/bor-mainnet-validator-config_v0.3.0-beta-arm64/DEBIAN/prerm
|
ARCH: arm64
|
||||||
- name: Copying the postrm
|
NODE: validator
|
||||||
run: cp -rp packaging/templates/package_scripts/postrm packaging/deb/bor-mainnet-validator-config_v0.3.0-beta-arm64/DEBIAN/postrm
|
NETWORK: mainnet
|
||||||
- name: Copying config.toml for validator for bor
|
- name: Copying the preinst for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||||
run: cp -rp packaging/templates/mainnet-v1/sentry/validator/bor/config.toml packaging/deb/bor-mainnet-validator-config_v0.3.0-beta-arm64/var/lib/bor/
|
run: cp -rp packaging/templates/package_scripts/preinst packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/DEBIAN/preinst
|
||||||
- name: Copying profile control file
|
env:
|
||||||
run: cp -rp packaging/templates/package_scripts/control.profile.arm64 packaging/deb/bor-mainnet-validator-config_v0.3.0-beta-arm64/DEBIAN/control
|
ARCH: arm64
|
||||||
- name: Building bor validator on arm64
|
NODE: validator
|
||||||
run: dpkg-deb --build --root-owner-group packaging/deb/bor-mainnet-validator-config_v0.3.0-beta-arm64
|
NETWORK: mainnet
|
||||||
|
- 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: mainnet
|
||||||
|
- 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: mainnet
|
||||||
|
- 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: mainnet
|
||||||
|
- name: Copying config.toml for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||||
|
run: cp -rp packaging/templates/mainnet-v1/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: mainnet
|
||||||
|
- 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: mainnet
|
||||||
|
- 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: mainnet
|
||||||
|
|
||||||
- name: Updating the control file to use with the arm64 profile
|
- name: Updating the control file to use with the arm64 profile
|
||||||
run: cp -rp packaging/templates/package_scripts/control.profile.arm64 packaging/deb/bor/DEBIAN/control
|
run: cp -rp packaging/templates/package_scripts/control.profile.arm64 packaging/deb/bor/DEBIAN/control
|
||||||
|
|
||||||
- name: Creating mumbai archive node profile for arm64
|
- name: Creating bor ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||||
run: cp -rp packaging/deb/bor packaging/deb/bor-mumbai-archive-config_v0.3.0-beta-arm64
|
run: cp -rp packaging/deb/bor packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}
|
||||||
- name: Copying profile control file
|
env:
|
||||||
run: cp -rp packaging/templates/package_scripts/control.profile.arm64 packaging/deb/bor-mumbai-archive-config_v0.3.0-beta-arm64/DEBIAN/control
|
ARCH: arm64
|
||||||
- name: Copying over profile postinst
|
NODE: archive
|
||||||
run: cp -rp packaging/templates/package_scripts/postinst.profile packaging/deb/bor-mumbai-archive-config_v0.3.0-beta-arm64/DEBIAN/postinst
|
NETWORK: mumbai
|
||||||
- name: Copying prerm
|
- name: Copying profile control file for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||||
run: cp -rp packaging/templates/package_scripts/prerm packaging/deb/bor-mumbai-archive-config_v0.3.0-beta-arm64/DEBIAN/prerm
|
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
|
||||||
- name: Copying postrm
|
env:
|
||||||
run: cp -rp packaging/templates/package_scripts/postrm packaging/deb/bor-mumbai-archive-config_v0.3.0-beta-arm64/DEBIAN/postrm
|
ARCH: arm64
|
||||||
- name: Copying the toml
|
NODE: archive
|
||||||
run: cp -rp packaging/templates/testnet-v4/archive/config.toml packaging/deb/bor-mumbai-archive-config_v0.3.0-beta-arm64/var/lib/bor/
|
NETWORK: mumbai
|
||||||
- name: Building profile package
|
- name: Copying over profile postinst for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||||
run: dpkg-deb --build --root-owner-group packaging/deb/bor-mumbai-archive-config_v0.3.0-beta-arm64
|
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: mumbai
|
||||||
|
- 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: mumbai
|
||||||
|
- 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: mumbai
|
||||||
|
- name: Copying the toml for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||||
|
run: cp -rp packaging/templates/testnet-v4/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: mumbai
|
||||||
|
- 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: mumbai
|
||||||
|
|
||||||
- name: Creating mainnet archive node profile for arm64
|
- name: Creating bor ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||||
run: cp -rp packaging/deb/bor packaging/deb/bor-mainnet-archive-config_v0.3.0-beta-arm64
|
run: cp -rp packaging/deb/bor packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}
|
||||||
- name: Copying profile control file
|
env:
|
||||||
run: cp -rp packaging/templates/package_scripts/control.profile.arm64 packaging/deb/bor-mainnet-archive-config_v0.3.0-beta-arm64/DEBIAN/control
|
ARCH: arm64
|
||||||
- name: Copying over profile postinst
|
NODE: archive
|
||||||
run: cp -rp packaging/templates/package_scripts/postinst.profile packaging/deb/bor-mainnet-archive-config_v0.3.0-beta-arm64/DEBIAN/postinst
|
NETWORK: mainnet
|
||||||
- name: Copying prerm
|
- name: Copying profile control file for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||||
run: cp -rp packaging/templates/package_scripts/prerm packaging/deb/bor-mainnet-archive-config_v0.3.0-beta-arm64/DEBIAN/prerm
|
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
|
||||||
- name: Copying postrm
|
env:
|
||||||
run: cp -rp packaging/templates/package_scripts/postrm packaging/deb/bor-mainnet-archive-config_v0.3.0-beta-arm64/DEBIAN/postrm
|
ARCH: arm64
|
||||||
- name: Copying the toml
|
NODE: archive
|
||||||
run: cp -rp packaging/templates/mainnet-v1/archive/config.toml packaging/deb/bor-mainnet-archive-config_v0.3.0-beta-arm64/var/lib/bor/
|
NETWORK: mainnet
|
||||||
- name: Building porfile package
|
- name: Copying over profile postinst for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||||
run: dpkg-deb --build --root-owner-group packaging/deb/bor-mainnet-archive-config_v0.3.0-beta-arm64
|
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: mainnet
|
||||||
|
- 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: mainnet
|
||||||
|
- 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: mainnet
|
||||||
|
- name: Copying the toml for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||||
|
run: cp -rp packaging/templates/mainnet-v1/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: mainnet
|
||||||
|
- 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: mainnet
|
||||||
|
|
||||||
- name: Confirming package built
|
- name: Confirming package built
|
||||||
run: ls -ltr packaging/deb/ | grep bor
|
run: ls -ltr packaging/deb/ | grep bor
|
||||||
|
|
||||||
- name: Pre-Release bor Packages
|
- name: Release bor Packages
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ env.GIT_TAG }}
|
tag_name: ${{ env.GIT_TAG }}
|
||||||
prerelease: true
|
prerelease: true
|
||||||
files: |
|
files: |
|
||||||
packaging/deb/bor**.deb
|
packaging/deb/bor**.deb
|
||||||
binary/bo**
|
binary/bo**
|
||||||
8
.github/workflows/release.yml
vendored
8
.github/workflows/release.yml
vendored
|
|
@ -29,6 +29,12 @@ jobs:
|
||||||
TAG=${GITHUB_REF#refs/tags/}
|
TAG=${GITHUB_REF#refs/tags/}
|
||||||
echo ::set-output name=tag_name::${TAG}
|
echo ::set-output name=tag_name::${TAG}
|
||||||
|
|
||||||
|
- name: Login to Docker Hub
|
||||||
|
uses: docker/login-action@v2
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKERHUB }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_KEY }}
|
||||||
|
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v1
|
uses: docker/setup-qemu-action@v1
|
||||||
|
|
||||||
|
|
@ -39,5 +45,3 @@ jobs:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
VERSION: ${{ steps.prepare.outputs.tag_name }}
|
VERSION: ${{ steps.prepare.outputs.tag_name }}
|
||||||
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
|
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
|
||||||
DOCKER_USERNAME: ${{ secrets.DOCKERHUB }}
|
|
||||||
DOCKER_PASSWORD: ${{ secrets.DOCKERHUB_KEY }}
|
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ chain = "mainnet"
|
||||||
# identity = "Pratiks-MacBook-Pro.local"
|
# identity = "Pratiks-MacBook-Pro.local"
|
||||||
# log-level = "INFO"
|
# log-level = "INFO"
|
||||||
datadir = "/var/lib/bor/data"
|
datadir = "/var/lib/bor/data"
|
||||||
|
# ancient = ""
|
||||||
# keystore = "/var/lib/bor/keystore"
|
# keystore = "/var/lib/bor/keystore"
|
||||||
syncmode = "full"
|
syncmode = "full"
|
||||||
# gcmode = "full"
|
# gcmode = "full"
|
||||||
|
|
@ -60,32 +61,36 @@ syncmode = "full"
|
||||||
|
|
||||||
|
|
||||||
# [jsonrpc]
|
# [jsonrpc]
|
||||||
# ipcdisable = false
|
# ipcdisable = false
|
||||||
# ipcpath = ""
|
# ipcpath = ""
|
||||||
# gascap = 50000000
|
# gascap = 50000000
|
||||||
# txfeecap = 5.0
|
# txfeecap = 5.0
|
||||||
# [jsonrpc.http]
|
# [jsonrpc.http]
|
||||||
# enabled = false
|
# enabled = false
|
||||||
# port = 8545
|
# port = 8545
|
||||||
# prefix = ""
|
# prefix = ""
|
||||||
# host = "localhost"
|
# host = "localhost"
|
||||||
# api = ["eth", "net", "web3", "txpool", "bor"]
|
# api = ["eth", "net", "web3", "txpool", "bor"]
|
||||||
# vhosts = ["*"]
|
# vhosts = ["*"]
|
||||||
# corsdomain = ["*"]
|
# corsdomain = ["*"]
|
||||||
# [jsonrpc.ws]
|
# [jsonrpc.ws]
|
||||||
# enabled = false
|
# enabled = false
|
||||||
# port = 8546
|
# port = 8546
|
||||||
# prefix = ""
|
# prefix = ""
|
||||||
# host = "localhost"
|
# host = "localhost"
|
||||||
# api = ["web3", "net"]
|
# api = ["web3", "net"]
|
||||||
# origins = ["*"]
|
# origins = ["*"]
|
||||||
# [jsonrpc.graphql]
|
# [jsonrpc.graphql]
|
||||||
# enabled = false
|
# enabled = false
|
||||||
# port = 0
|
# port = 0
|
||||||
# prefix = ""
|
# prefix = ""
|
||||||
# host = ""
|
# host = ""
|
||||||
# vhosts = ["*"]
|
# vhosts = ["*"]
|
||||||
# corsdomain = ["*"]
|
# corsdomain = ["*"]
|
||||||
|
# [jsonrpc.timeouts]
|
||||||
|
# read = "30s"
|
||||||
|
# write = "30s"
|
||||||
|
# idle = "2m0s"
|
||||||
|
|
||||||
[gpo]
|
[gpo]
|
||||||
# blocks = 20
|
# blocks = 20
|
||||||
|
|
@ -122,6 +127,7 @@ syncmode = "full"
|
||||||
# preimages = false
|
# preimages = false
|
||||||
# txlookuplimit = 2350000
|
# txlookuplimit = 2350000
|
||||||
# triesinmemory = 128
|
# triesinmemory = 128
|
||||||
|
# timeout = "1h0m0s"
|
||||||
|
|
||||||
[accounts]
|
[accounts]
|
||||||
# allow-insecure-unlock = true
|
# allow-insecure-unlock = true
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,7 @@
|
||||||
|
|
||||||
# Documentation
|
# Documentation
|
||||||
|
|
||||||
- [Command-line-interface](./cli)
|
- [The new command line interface](./cli)
|
||||||
|
|
||||||
- [Configuration file](./config.md)
|
|
||||||
|
|
||||||
## Additional notes
|
## Additional notes
|
||||||
|
|
||||||
|
|
@ -13,8 +11,14 @@
|
||||||
$ bor server <flags>
|
$ bor server <flags>
|
||||||
```
|
```
|
||||||
|
|
||||||
- Toml files used earlier just to configure static/trusted nodes are being deprecated. Instead, a toml file now can be used instead of flags and can contain all configuration for the node to run. The link to a sample config file is given above. To simply run bor with a configuration file, the following command can be used.
|
- The `bor dumpconfig` sub-command prints the default configurations, in the TOML format, on the terminal. One can `pipe (>)` this to a file (say `config.toml`) and use it to start bor.
|
||||||
|
|
||||||
|
- A toml file now can be used instead of flags and can contain all configuration for the node to run. To simply run bor with a configuration file, the following command can be used.
|
||||||
|
|
||||||
```
|
```
|
||||||
$ bor server --config <path_to_config.toml>
|
$ bor server --config <path_to_config.toml>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
- You can find an example config file [here](./cli/example_config.toml) to know more about what each flag is used for, what are the defaults and recommended values for different networks.
|
||||||
|
|
||||||
|
- Toml files used earlier (with `--config` flag) to configure additional fields (like static and trusted nodes) are being deprecated and have been converted to flags.
|
||||||
|
|
|
||||||
147
docs/cli/example_config.toml
Normal file
147
docs/cli/example_config.toml
Normal file
|
|
@ -0,0 +1,147 @@
|
||||||
|
# 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.
|
||||||
|
|
||||||
|
chain = "mainnet" # Name of the chain to sync ("mumbai", "mainnet") or path to a genesis file
|
||||||
|
identity = "Annon-Identity" # Name/Identity of the node (default = OS hostname)
|
||||||
|
log-level = "INFO" # Set log level for the server
|
||||||
|
datadir = "var/lib/bor" # Path of the data directory to store information
|
||||||
|
ancient = "" # Data directory for ancient chain segments (default = inside chaindata)
|
||||||
|
keystore = "" # Path of the directory where keystores are located
|
||||||
|
syncmode = "full" # Blockchain sync mode (only "full" sync supported)
|
||||||
|
gcmode = "full" # Blockchain garbage collection mode ("full", "archive")
|
||||||
|
snapshot = true # Enables the snapshot-database mode
|
||||||
|
"bor.logs" = false # Enables bor log retrieval
|
||||||
|
ethstats = "" # Reporting URL of a ethstats service (nodename:secret@host:port)
|
||||||
|
|
||||||
|
["eth.requiredblocks"] # Comma separated block number-to-hash mappings to require for peering (<number>=<hash>) (default = empty map)
|
||||||
|
"31000000" = "0x2087b9e2b353209c2c21e370c82daa12278efd0fe5f0febe6c29035352cf050e"
|
||||||
|
"32000000" = "0x875500011e5eecc0c554f95d07b31cf59df4ca2505f4dbbfffa7d4e4da917c68"
|
||||||
|
|
||||||
|
[p2p]
|
||||||
|
maxpeers = 50 # Maximum number of network peers (network disabled if set to 0)
|
||||||
|
maxpendpeers = 50 # Maximum number of pending connection attempts
|
||||||
|
bind = "0.0.0.0" # Network binding address
|
||||||
|
port = 30303 # Network listening port
|
||||||
|
nodiscover = false # Disables the peer discovery mechanism (manual peer addition)
|
||||||
|
nat = "any" # NAT port mapping mechanism (any|none|upnp|pmp|extip:<IP>)
|
||||||
|
[p2p.discovery]
|
||||||
|
v5disc = false # Enables the experimental RLPx V5 (Topic Discovery) mechanism
|
||||||
|
bootnodes = [] # Comma separated enode URLs for P2P discovery bootstrap
|
||||||
|
bootnodesv4 = [] # List of initial v4 bootnodes
|
||||||
|
bootnodesv5 = [] # List of initial v5 bootnodes
|
||||||
|
static-nodes = [] # List of static nodes
|
||||||
|
trusted-nodes = [] # List of trusted nodes
|
||||||
|
dns = [] # List of enrtree:// URLs which will be queried for nodes to connect to
|
||||||
|
|
||||||
|
[heimdall]
|
||||||
|
url = "http://localhost:1317" # URL of Heimdall service
|
||||||
|
"bor.without" = false # Run without Heimdall service (for testing purpose)
|
||||||
|
grpc-address = "" # Address of Heimdall gRPC service
|
||||||
|
|
||||||
|
[txpool]
|
||||||
|
locals = [] # Comma separated accounts to treat as locals (no flush, priority inclusion)
|
||||||
|
nolocals = false # Disables price exemptions for locally submitted transactions
|
||||||
|
journal = "transactions.rlp" # Disk journal for local transaction to survive node restarts
|
||||||
|
rejournal = "1h0m0s" # Time interval to regenerate the local transaction journal
|
||||||
|
pricelimit = 1 # Minimum gas price limit to enforce for acceptance into the pool (mainnet = 30000000000)
|
||||||
|
pricebump = 10 # Price bump percentage to replace an already existing transaction
|
||||||
|
accountslots = 16 # Minimum number of executable transaction slots guaranteed per account
|
||||||
|
globalslots = 32768 # Maximum number of executable transaction slots for all accounts
|
||||||
|
accountqueue = 16 # Maximum number of non-executable transaction slots permitted per account
|
||||||
|
globalqueue = 32768 # Maximum number of non-executable transaction slots for all accounts
|
||||||
|
lifetime = "3h0m0s" # Maximum amount of time non-executable transaction are queued
|
||||||
|
|
||||||
|
[miner]
|
||||||
|
mine = false # Enable mining
|
||||||
|
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)
|
||||||
|
|
||||||
|
[jsonrpc]
|
||||||
|
ipcdisable = false # Disable the IPC-RPC server
|
||||||
|
ipcpath = "" # Filename for IPC socket/pipe within the datadir (explicit paths escape it)
|
||||||
|
gascap = 50000000 # Sets a cap on gas that can be used in eth_call/estimateGas (0=infinite)
|
||||||
|
txfeecap = 5.0 # Sets a cap on transaction fee (in ether) that can be sent via the RPC APIs (0 = no cap)
|
||||||
|
[jsonrpc.http]
|
||||||
|
enabled = false # Enable the HTTP-RPC server
|
||||||
|
port = 8545 # http.port
|
||||||
|
prefix = "" # http.rpcprefix
|
||||||
|
host = "localhost" # HTTP-RPC server listening interface
|
||||||
|
api = ["eth", "net", "web3", "txpool", "bor"] # API's offered over the HTTP-RPC interface
|
||||||
|
vhosts = ["localhost"] # Comma separated list of virtual hostnames from which to accept requests (server enforced). Accepts '*' wildcard.
|
||||||
|
corsdomain = ["localhost"] # Comma separated list of domains from which to accept cross origin requests (browser enforced)
|
||||||
|
[jsonrpc.ws]
|
||||||
|
enabled = false # Enable the WS-RPC server
|
||||||
|
port = 8546 # WS-RPC server listening port
|
||||||
|
prefix = "" # HTTP path prefix on which JSON-RPC is served. Use '/' to serve on all paths.
|
||||||
|
host = "localhost" # ws.addr
|
||||||
|
api = ["net", "web3"] # API's offered over the WS-RPC interface
|
||||||
|
origins = ["localhost"] # Origins from which to accept websockets requests
|
||||||
|
[jsonrpc.graphql]
|
||||||
|
enabled = false # Enable GraphQL on the HTTP-RPC server. Note that GraphQL can only be started if an HTTP server is started as well.
|
||||||
|
port = 0 #
|
||||||
|
prefix = "" #
|
||||||
|
host = "" #
|
||||||
|
vhosts = ["localhost"] # Comma separated list of virtual hostnames from which to accept requests (server enforced). Accepts '*' wildcard.
|
||||||
|
corsdomain = ["localhost"] # Comma separated list of domains from which to accept cross origin requests (browser enforced)
|
||||||
|
[jsonrpc.timeouts]
|
||||||
|
read = "30s"
|
||||||
|
write = "30s"
|
||||||
|
idle = "2m0s"
|
||||||
|
|
||||||
|
[gpo]
|
||||||
|
blocks = 20 # Number of recent blocks to check for gas prices
|
||||||
|
percentile = 60 # Suggested gas price is the given percentile of a set of recent transaction gas prices
|
||||||
|
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)
|
||||||
|
|
||||||
|
[telemetry]
|
||||||
|
metrics = false # Enable metrics collection and reporting
|
||||||
|
expensive = false # Enable expensive metrics collection and reporting
|
||||||
|
prometheus-addr = "127.0.0.1:7071" # Address for Prometheus Server
|
||||||
|
opencollector-endpoint = "127.0.0.1:4317" # OpenCollector Endpoint (host:port)
|
||||||
|
[telemetry.influx]
|
||||||
|
influxdb = false # Enable metrics export/push to an external InfluxDB database (v1)
|
||||||
|
endpoint = "" # InfluxDB API endpoint to report metrics to
|
||||||
|
database = "" # InfluxDB database name to push reported metrics to
|
||||||
|
username = "" # Username to authorize access to the database
|
||||||
|
password = "" # Password to authorize access to the database
|
||||||
|
influxdbv2 = false # Enable metrics export/push to an external InfluxDB v2 database
|
||||||
|
token = "" # Token to authorize access to the database (v2 only)
|
||||||
|
bucket = "" # InfluxDB bucket name to push reported metrics to (v2 only)
|
||||||
|
organization = "" # InfluxDB organization name (v2 only)
|
||||||
|
[telemetry.influx.tags] # Comma-separated InfluxDB tags (key/values) attached to all measurements
|
||||||
|
cloud = "aws"
|
||||||
|
host = "annon-host"
|
||||||
|
ip = "99.911.221.66"
|
||||||
|
region = "us-north-1"
|
||||||
|
|
||||||
|
[cache]
|
||||||
|
cache = 1024 # Megabytes of memory allocated to internal caching (recommended for mainnet = 4096, default suitable for 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
|
||||||
|
trie = 15 # Percentage of cache memory allowance to use for trie caching (default = 15% full mode, 30% archive mode)
|
||||||
|
journal = "triecache" # Disk journal directory for trie cache to survive node restarts
|
||||||
|
rejournal = "1h0m0s" # Time interval to regenerate the trie cache journal
|
||||||
|
noprefetch = false # Disable heuristic state prefetch during block import (less CPU and disk IO, more time waiting for data)
|
||||||
|
preimages = false # Enable recording the SHA3/keccak preimages of trie keys
|
||||||
|
txlookuplimit = 2350000 # Number of recent blocks to maintain transactions index for (default = about 56 days, 0 = entire chain)
|
||||||
|
triesinmemory = 128 # Number of block states (tries) to keep in memory
|
||||||
|
timeout = "1h0m0s" # Time after which the Merkle Patricia Trie is stored to disc from memory
|
||||||
|
|
||||||
|
[accounts]
|
||||||
|
unlock = [] # Comma separated list of accounts to unlock
|
||||||
|
password = "" # Password file to use for non-interactive password input
|
||||||
|
allow-insecure-unlock = false # Allow insecure account unlocking when account-related RPCs are exposed by http
|
||||||
|
lightkdf = false # Reduce key-derivation RAM & CPU usage at some expense of KDF strength
|
||||||
|
disable-bor-wallet = true # Disable the personal wallet endpoints
|
||||||
|
|
||||||
|
[grpc]
|
||||||
|
addr = ":3131" # Address and port to bind the GRPC server
|
||||||
|
|
||||||
|
[developer]
|
||||||
|
dev = false # Enable developer mode with ephemeral proof-of-authority network and a pre-funded developer account, mining enabled
|
||||||
|
period = 0 # Block period to use in developer mode (0 = mine only if transaction pending)
|
||||||
|
|
@ -4,7 +4,7 @@ The ```bor server``` command runs the Bor client.
|
||||||
|
|
||||||
## Options
|
## Options
|
||||||
|
|
||||||
- ```chain```: Name of the chain to sync
|
- ```chain```: Name of the chain to sync ('mumbai', 'mainnet') or path to a genesis file
|
||||||
|
|
||||||
- ```identity```: Name/Identity of the node
|
- ```identity```: Name/Identity of the node
|
||||||
|
|
||||||
|
|
@ -12,7 +12,7 @@ The ```bor server``` command runs the Bor client.
|
||||||
|
|
||||||
- ```datadir```: Path of the data directory to store information
|
- ```datadir```: Path of the data directory to store information
|
||||||
|
|
||||||
- ```keystore```: Path of the directory to store keystores
|
- ```keystore```: Path of the directory where keystores are located
|
||||||
|
|
||||||
- ```config```: File for the config file
|
- ```config```: File for the config file
|
||||||
|
|
||||||
|
|
@ -30,8 +30,6 @@ The ```bor server``` command runs the Bor client.
|
||||||
|
|
||||||
- ```bor.withoutheimdall```: Run without Heimdall service (for testing purpose)
|
- ```bor.withoutheimdall```: Run without Heimdall service (for testing purpose)
|
||||||
|
|
||||||
- ```bor.heimdallgRPC```: Address of Heimdall gRPC service
|
|
||||||
|
|
||||||
- ```ethstats```: Reporting URL of a ethstats service (nodename:secret@host:port)
|
- ```ethstats```: Reporting URL of a ethstats service (nodename:secret@host:port)
|
||||||
|
|
||||||
- ```gpo.blocks```: Number of recent blocks to check for gas prices
|
- ```gpo.blocks```: Number of recent blocks to check for gas prices
|
||||||
|
|
@ -80,8 +78,6 @@ The ```bor server``` command runs the Bor client.
|
||||||
|
|
||||||
- ```cache.preimages```: Enable recording the SHA3/keccak preimages of trie keys
|
- ```cache.preimages```: Enable recording the SHA3/keccak preimages of trie keys
|
||||||
|
|
||||||
- ```cache.triesinmemory```: Number of block states (tries) to keep in memory (default = 128)
|
|
||||||
|
|
||||||
- ```txlookuplimit```: Number of recent blocks to maintain transactions index for (default = about 56 days, 0 = entire chain)
|
- ```txlookuplimit```: Number of recent blocks to maintain transactions index for (default = about 56 days, 0 = entire chain)
|
||||||
|
|
||||||
### JsonRPC Options
|
### JsonRPC Options
|
||||||
|
|
@ -136,7 +132,7 @@ The ```bor server``` command runs the Bor client.
|
||||||
|
|
||||||
- ```maxpeers```: Maximum number of network peers (network disabled if set to 0)
|
- ```maxpeers```: Maximum number of network peers (network disabled if set to 0)
|
||||||
|
|
||||||
- ```maxpendpeers```: Maximum number of pending connection attempts (defaults used if set to 0)
|
- ```maxpendpeers```: Maximum number of pending connection attempts
|
||||||
|
|
||||||
- ```nat```: NAT port mapping mechanism (any|none|upnp|pmp|extip:<IP>)
|
- ```nat```: NAT port mapping mechanism (any|none|upnp|pmp|extip:<IP>)
|
||||||
|
|
||||||
|
|
@ -148,11 +144,11 @@ The ```bor server``` command runs the Bor client.
|
||||||
|
|
||||||
- ```mine```: Enable mining
|
- ```mine```: Enable mining
|
||||||
|
|
||||||
- ```miner.etherbase```: Public address for block mining rewards (default = first account)
|
- ```miner.etherbase```: Public address for block mining rewards
|
||||||
|
|
||||||
- ```miner.extradata```: Block extra data set by the miner (default = client version)
|
- ```miner.extradata```: Block extra data set by the miner (default = client version)
|
||||||
|
|
||||||
- ```miner.gaslimit```: Target gas ceiling for mined blocks
|
- ```miner.gaslimit```: Target gas ceiling (gas limit) for mined blocks
|
||||||
|
|
||||||
- ```miner.gasprice```: Minimum gas price for mining a transaction
|
- ```miner.gasprice```: Minimum gas price for mining a transaction
|
||||||
|
|
||||||
|
|
|
||||||
146
docs/config.md
146
docs/config.md
|
|
@ -1,146 +0,0 @@
|
||||||
|
|
||||||
# Config
|
|
||||||
|
|
||||||
- The `bor dumpconfig` command prints the default configurations, in the TOML format, on the terminal.
|
|
||||||
- One can `pipe (>)` this to a file (say `config.toml`) and use it to start bor.
|
|
||||||
- Command to provide a config file: `bor server -config config.toml`
|
|
||||||
- Bor uses TOML, HCL, and JSON format config files.
|
|
||||||
- This is the format of the config file in TOML:
|
|
||||||
- **NOTE: The values of these following flags are just for reference**
|
|
||||||
- `config.toml` file:
|
|
||||||
```
|
|
||||||
chain = "mainnet"
|
|
||||||
identity = "myIdentity"
|
|
||||||
log-level = "INFO"
|
|
||||||
datadir = "/var/lib/bor/data"
|
|
||||||
keystore = "path/to/keystore"
|
|
||||||
syncmode = "full"
|
|
||||||
gcmode = "full"
|
|
||||||
snapshot = true
|
|
||||||
ethstats = ""
|
|
||||||
|
|
||||||
["eth.requiredblocks"]
|
|
||||||
|
|
||||||
[p2p]
|
|
||||||
maxpeers = 50
|
|
||||||
maxpendpeers = 50
|
|
||||||
bind = "0.0.0.0"
|
|
||||||
port = 30303
|
|
||||||
nodiscover = false
|
|
||||||
nat = "any"
|
|
||||||
|
|
||||||
[p2p.discovery]
|
|
||||||
v5disc = false
|
|
||||||
bootnodes = ["enode://d860a01f9722d78051619d1e2351aba3f43f943f6f00718d1b9baa4101932a1f5011f16bb2b1bb35db20d6fe28fa0bf09636d26a87d31de9ec6203eeedb1f666@18.138.108.67:30303", "enode://22a8232c3abc76a16ae9d6c3b164f98775fe226f0917b0ca871128a74a8e9630b458460865bab457221f1d448dd9791d24c4e5d88786180ac185df813a68d4de@3.209.45.79:30303"]
|
|
||||||
bootnodesv4 = []
|
|
||||||
bootnodesv5 = ["enr:-KG4QOtcP9X1FbIMOe17QNMKqDxCpm14jcX5tiOE4_TyMrFqbmhPZHK_ZPG2Gxb1GE2xdtodOfx9-cgvNtxnRyHEmC0ghGV0aDKQ9aX9QgAAAAD__________4JpZIJ2NIJpcIQDE8KdiXNlY3AyNTZrMaEDhpehBDbZjM_L9ek699Y7vhUJ-eAdMyQW_Fil522Y0fODdGNwgiMog3VkcIIjKA", "enr:-KG4QDyytgmE4f7AnvW-ZaUOIi9i79qX4JwjRAiXBZCU65wOfBu-3Nb5I7b_Rmg3KCOcZM_C3y5pg7EBU5XGrcLTduQEhGV0aDKQ9aX9QgAAAAD__________4JpZIJ2NIJpcIQ2_DUbiXNlY3AyNTZrMaEDKnz_-ps3UUOfHWVYaskI5kWYO_vtYMGYCQRAR3gHDouDdGNwgiMog3VkcIIjKA"]
|
|
||||||
static-nodes = ["enode://8499da03c47d637b20eee24eec3c356c9a2e6148d6fe25ca195c7949ab8ec2c03e3556126b0d7ed644675e78c4318b08691b7b57de10e5f0d40d05b09238fa0a@52.187.207.27:30303"]
|
|
||||||
trusted-nodes = ["enode://2b252ab6a1d0f971d9722cb839a42cb81db019ba44c08754628ab4a823487071b5695317c8ccd085219c3a03af063495b2f1da8d18218da2d6a82981b45e6ffc@65.108.70.101:30303"]
|
|
||||||
dns = []
|
|
||||||
|
|
||||||
[heimdall]
|
|
||||||
url = "http://localhost:1317"
|
|
||||||
"bor.without" = false
|
|
||||||
|
|
||||||
[txpool]
|
|
||||||
locals = ["$ADDRESS1", "$ADDRESS2"]
|
|
||||||
nolocals = false
|
|
||||||
journal = ""
|
|
||||||
rejournal = "1h0m0s"
|
|
||||||
pricelimit = 30000000000
|
|
||||||
pricebump = 10
|
|
||||||
accountslots = 16
|
|
||||||
globalslots = 32768
|
|
||||||
accountqueue = 16
|
|
||||||
globalqueue = 32768
|
|
||||||
lifetime = "3h0m0s"
|
|
||||||
|
|
||||||
[miner]
|
|
||||||
mine = false
|
|
||||||
etherbase = ""
|
|
||||||
extradata = ""
|
|
||||||
gaslimit = 20000000
|
|
||||||
gasprice = "30000000000"
|
|
||||||
|
|
||||||
[jsonrpc]
|
|
||||||
ipcdisable = false
|
|
||||||
ipcpath = "/var/lib/bor/bor.ipc"
|
|
||||||
gascap = 50000000
|
|
||||||
txfeecap = 5e+00
|
|
||||||
|
|
||||||
[jsonrpc.http]
|
|
||||||
enabled = false
|
|
||||||
port = 8545
|
|
||||||
prefix = ""
|
|
||||||
host = "localhost"
|
|
||||||
api = ["eth", "net", "web3", "txpool", "bor"]
|
|
||||||
vhosts = ["*"]
|
|
||||||
corsdomain = ["*"]
|
|
||||||
|
|
||||||
[jsonrpc.ws]
|
|
||||||
enabled = false
|
|
||||||
port = 8546
|
|
||||||
prefix = ""
|
|
||||||
host = "localhost"
|
|
||||||
api = ["web3", "net"]
|
|
||||||
vhosts = ["*"]
|
|
||||||
corsdomain = ["*"]
|
|
||||||
|
|
||||||
[jsonrpc.graphql]
|
|
||||||
enabled = false
|
|
||||||
port = 0
|
|
||||||
prefix = ""
|
|
||||||
host = ""
|
|
||||||
api = []
|
|
||||||
vhosts = ["*"]
|
|
||||||
corsdomain = ["*"]
|
|
||||||
|
|
||||||
[gpo]
|
|
||||||
blocks = 20
|
|
||||||
percentile = 60
|
|
||||||
maxprice = "5000000000000"
|
|
||||||
ignoreprice = "2"
|
|
||||||
|
|
||||||
[telemetry]
|
|
||||||
metrics = false
|
|
||||||
expensive = false
|
|
||||||
prometheus-addr = ""
|
|
||||||
opencollector-endpoint = ""
|
|
||||||
|
|
||||||
[telemetry.influx]
|
|
||||||
influxdb = false
|
|
||||||
endpoint = ""
|
|
||||||
database = ""
|
|
||||||
username = ""
|
|
||||||
password = ""
|
|
||||||
influxdbv2 = false
|
|
||||||
token = ""
|
|
||||||
bucket = ""
|
|
||||||
organization = ""
|
|
||||||
|
|
||||||
[cache]
|
|
||||||
cache = 1024
|
|
||||||
gc = 25
|
|
||||||
snapshot = 10
|
|
||||||
database = 50
|
|
||||||
trie = 15
|
|
||||||
journal = "triecache"
|
|
||||||
rejournal = "1h0m0s"
|
|
||||||
noprefetch = false
|
|
||||||
preimages = false
|
|
||||||
txlookuplimit = 2350000
|
|
||||||
|
|
||||||
[accounts]
|
|
||||||
unlock = ["$ADDRESS1", "$ADDRESS2"]
|
|
||||||
password = "path/to/password.txt"
|
|
||||||
allow-insecure-unlock = false
|
|
||||||
lightkdf = false
|
|
||||||
disable-bor-wallet = false
|
|
||||||
|
|
||||||
[grpc]
|
|
||||||
addr = ":3131"
|
|
||||||
|
|
||||||
[developer]
|
|
||||||
dev = false
|
|
||||||
period = 0
|
|
||||||
```
|
|
||||||
|
|
@ -52,12 +52,16 @@ func (c *DumpconfigCommand) Run(args []string) int {
|
||||||
userConfig := command.GetConfig()
|
userConfig := command.GetConfig()
|
||||||
|
|
||||||
// convert the big.Int and time.Duration fields to their corresponding Raw fields
|
// convert the big.Int and time.Duration fields to their corresponding Raw fields
|
||||||
|
userConfig.JsonRPC.HttpTimeout.ReadTimeoutRaw = userConfig.JsonRPC.HttpTimeout.ReadTimeout.String()
|
||||||
|
userConfig.JsonRPC.HttpTimeout.WriteTimeoutRaw = userConfig.JsonRPC.HttpTimeout.WriteTimeout.String()
|
||||||
|
userConfig.JsonRPC.HttpTimeout.IdleTimeoutRaw = userConfig.JsonRPC.HttpTimeout.IdleTimeout.String()
|
||||||
userConfig.TxPool.RejournalRaw = userConfig.TxPool.Rejournal.String()
|
userConfig.TxPool.RejournalRaw = userConfig.TxPool.Rejournal.String()
|
||||||
userConfig.TxPool.LifeTimeRaw = userConfig.TxPool.LifeTime.String()
|
userConfig.TxPool.LifeTimeRaw = userConfig.TxPool.LifeTime.String()
|
||||||
userConfig.Sealer.GasPriceRaw = userConfig.Sealer.GasPrice.String()
|
userConfig.Sealer.GasPriceRaw = userConfig.Sealer.GasPrice.String()
|
||||||
userConfig.Gpo.MaxPriceRaw = userConfig.Gpo.MaxPrice.String()
|
userConfig.Gpo.MaxPriceRaw = userConfig.Gpo.MaxPrice.String()
|
||||||
userConfig.Gpo.IgnorePriceRaw = userConfig.Gpo.IgnorePrice.String()
|
userConfig.Gpo.IgnorePriceRaw = userConfig.Gpo.IgnorePrice.String()
|
||||||
userConfig.Cache.RejournalRaw = userConfig.Cache.Rejournal.String()
|
userConfig.Cache.RejournalRaw = userConfig.Cache.Rejournal.String()
|
||||||
|
userConfig.Cache.TrieTimeoutRaw = userConfig.Cache.TrieTimeout.String()
|
||||||
|
|
||||||
if err := toml.NewEncoder(os.Stdout).Encode(userConfig); err != nil {
|
if err := toml.NewEncoder(os.Stdout).Encode(userConfig); err != nil {
|
||||||
c.UI.Error(err.Error())
|
c.UI.Error(err.Error())
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,7 @@ import (
|
||||||
"github.com/ethereum/go-ethereum/p2p/enode"
|
"github.com/ethereum/go-ethereum/p2p/enode"
|
||||||
"github.com/ethereum/go-ethereum/p2p/nat"
|
"github.com/ethereum/go-ethereum/p2p/nat"
|
||||||
"github.com/ethereum/go-ethereum/params"
|
"github.com/ethereum/go-ethereum/params"
|
||||||
|
"github.com/ethereum/go-ethereum/rpc"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Config struct {
|
type Config struct {
|
||||||
|
|
@ -53,6 +54,9 @@ type Config struct {
|
||||||
// DataDir is the directory to store the state in
|
// DataDir is the directory to store the state in
|
||||||
DataDir string `hcl:"datadir,optional" toml:"datadir,optional"`
|
DataDir string `hcl:"datadir,optional" toml:"datadir,optional"`
|
||||||
|
|
||||||
|
// Ancient is the directory to store the state in
|
||||||
|
Ancient string `hcl:"ancient,optional" toml:"ancient,optional"`
|
||||||
|
|
||||||
// KeyStoreDir is the directory to store keystores
|
// KeyStoreDir is the directory to store keystores
|
||||||
KeyStoreDir string `hcl:"keystore,optional" toml:"keystore,optional"`
|
KeyStoreDir string `hcl:"keystore,optional" toml:"keystore,optional"`
|
||||||
|
|
||||||
|
|
@ -238,6 +242,8 @@ type JsonRPCConfig struct {
|
||||||
|
|
||||||
// Graphql has the json-rpc graphql related settings
|
// Graphql has the json-rpc graphql related settings
|
||||||
Graphql *APIConfig `hcl:"graphql,block" toml:"graphql,block"`
|
Graphql *APIConfig `hcl:"graphql,block" toml:"graphql,block"`
|
||||||
|
|
||||||
|
HttpTimeout *HttpTimeouts `hcl:"timeouts,block" toml:"timeouts,block"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type GRPCConfig struct {
|
type GRPCConfig struct {
|
||||||
|
|
@ -271,6 +277,33 @@ type APIConfig struct {
|
||||||
Origins []string `hcl:"origins,optional" toml:"origins,optional"`
|
Origins []string `hcl:"origins,optional" toml:"origins,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Used from rpc.HTTPTimeouts
|
||||||
|
type HttpTimeouts struct {
|
||||||
|
// ReadTimeout is the maximum duration for reading the entire
|
||||||
|
// request, including the body.
|
||||||
|
//
|
||||||
|
// Because ReadTimeout does not let Handlers make per-request
|
||||||
|
// decisions on each request body's acceptable deadline or
|
||||||
|
// upload rate, most users will prefer to use
|
||||||
|
// ReadHeaderTimeout. It is valid to use them both.
|
||||||
|
ReadTimeout time.Duration `hcl:"-,optional" toml:"-"`
|
||||||
|
ReadTimeoutRaw string `hcl:"read,optional" toml:"read,optional"`
|
||||||
|
|
||||||
|
// WriteTimeout is the maximum duration before timing out
|
||||||
|
// writes of the response. It is reset whenever a new
|
||||||
|
// request's header is read. Like ReadTimeout, it does not
|
||||||
|
// let Handlers make decisions on a per-request basis.
|
||||||
|
WriteTimeout time.Duration `hcl:"-,optional" toml:"-"`
|
||||||
|
WriteTimeoutRaw string `hcl:"write,optional" toml:"write,optional"`
|
||||||
|
|
||||||
|
// IdleTimeout is the maximum amount of time to wait for the
|
||||||
|
// next request when keep-alives are enabled. If IdleTimeout
|
||||||
|
// is zero, the value of ReadTimeout is used. If both are
|
||||||
|
// zero, ReadHeaderTimeout is used.
|
||||||
|
IdleTimeout time.Duration `hcl:"-,optional" toml:"-"`
|
||||||
|
IdleTimeoutRaw string `hcl:"idle,optional" toml:"idle,optional"`
|
||||||
|
}
|
||||||
|
|
||||||
type GpoConfig struct {
|
type GpoConfig struct {
|
||||||
// Blocks is the number of blocks to track to compute the price oracle
|
// Blocks is the number of blocks to track to compute the price oracle
|
||||||
Blocks uint64 `hcl:"blocks,optional" toml:"blocks,optional"`
|
Blocks uint64 `hcl:"blocks,optional" toml:"blocks,optional"`
|
||||||
|
|
@ -370,6 +403,9 @@ type CacheConfig struct {
|
||||||
|
|
||||||
// Number of block states to keep in memory (default = 128)
|
// Number of block states to keep in memory (default = 128)
|
||||||
TriesInMemory uint64 `hcl:"triesinmemory,optional" toml:"triesinmemory,optional"`
|
TriesInMemory uint64 `hcl:"triesinmemory,optional" toml:"triesinmemory,optional"`
|
||||||
|
// Time after which the Merkle Patricia Trie is stored to disc from memory
|
||||||
|
TrieTimeout time.Duration `hcl:"-,optional" toml:"-"`
|
||||||
|
TrieTimeoutRaw string `hcl:"timeout,optional" toml:"timeout,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type AccountsConfig struct {
|
type AccountsConfig struct {
|
||||||
|
|
@ -404,6 +440,7 @@ func DefaultConfig() *Config {
|
||||||
RequiredBlocks: map[string]string{},
|
RequiredBlocks: map[string]string{},
|
||||||
LogLevel: "INFO",
|
LogLevel: "INFO",
|
||||||
DataDir: DefaultDataDir(),
|
DataDir: DefaultDataDir(),
|
||||||
|
Ancient: "",
|
||||||
P2P: &P2PConfig{
|
P2P: &P2PConfig{
|
||||||
MaxPeers: 50,
|
MaxPeers: 50,
|
||||||
MaxPendPeers: 50,
|
MaxPendPeers: 50,
|
||||||
|
|
@ -483,6 +520,11 @@ func DefaultConfig() *Config {
|
||||||
Cors: []string{"localhost"},
|
Cors: []string{"localhost"},
|
||||||
VHost: []string{"localhost"},
|
VHost: []string{"localhost"},
|
||||||
},
|
},
|
||||||
|
HttpTimeout: &HttpTimeouts{
|
||||||
|
ReadTimeout: 30 * time.Second,
|
||||||
|
WriteTimeout: 30 * time.Second,
|
||||||
|
IdleTimeout: 120 * time.Second,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
Ethstats: "",
|
Ethstats: "",
|
||||||
Telemetry: &TelemetryConfig{
|
Telemetry: &TelemetryConfig{
|
||||||
|
|
@ -515,6 +557,7 @@ func DefaultConfig() *Config {
|
||||||
Preimages: false,
|
Preimages: false,
|
||||||
TxLookupLimit: 2350000,
|
TxLookupLimit: 2350000,
|
||||||
TriesInMemory: 128,
|
TriesInMemory: 128,
|
||||||
|
TrieTimeout: 60 * time.Minute,
|
||||||
},
|
},
|
||||||
Accounts: &AccountsConfig{
|
Accounts: &AccountsConfig{
|
||||||
Unlock: []string{},
|
Unlock: []string{},
|
||||||
|
|
@ -574,9 +617,13 @@ func (c *Config) fillTimeDurations() error {
|
||||||
td *time.Duration
|
td *time.Duration
|
||||||
str *string
|
str *string
|
||||||
}{
|
}{
|
||||||
|
{"jsonrpc.timeouts.read", &c.JsonRPC.HttpTimeout.ReadTimeout, &c.JsonRPC.HttpTimeout.ReadTimeoutRaw},
|
||||||
|
{"jsonrpc.timeouts.write", &c.JsonRPC.HttpTimeout.WriteTimeout, &c.JsonRPC.HttpTimeout.WriteTimeoutRaw},
|
||||||
|
{"jsonrpc.timeouts.idle", &c.JsonRPC.HttpTimeout.IdleTimeout, &c.JsonRPC.HttpTimeout.IdleTimeoutRaw},
|
||||||
{"txpool.lifetime", &c.TxPool.LifeTime, &c.TxPool.LifeTimeRaw},
|
{"txpool.lifetime", &c.TxPool.LifeTime, &c.TxPool.LifeTimeRaw},
|
||||||
{"txpool.rejournal", &c.TxPool.Rejournal, &c.TxPool.RejournalRaw},
|
{"txpool.rejournal", &c.TxPool.Rejournal, &c.TxPool.RejournalRaw},
|
||||||
{"cache.rejournal", &c.Cache.Rejournal, &c.Cache.RejournalRaw},
|
{"cache.rejournal", &c.Cache.Rejournal, &c.Cache.RejournalRaw},
|
||||||
|
{"cache.timeout", &c.Cache.TrieTimeout, &c.Cache.TrieTimeoutRaw},
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, x := range tds {
|
for _, x := range tds {
|
||||||
|
|
@ -835,6 +882,7 @@ func (c *Config) buildEth(stack *node.Node, accountManager *accounts.Manager) (*
|
||||||
n.NoPrefetch = c.Cache.NoPrefetch
|
n.NoPrefetch = c.Cache.NoPrefetch
|
||||||
n.Preimages = c.Cache.Preimages
|
n.Preimages = c.Cache.Preimages
|
||||||
n.TxLookupLimit = c.Cache.TxLookupLimit
|
n.TxLookupLimit = c.Cache.TxLookupLimit
|
||||||
|
n.TrieTimeout = c.Cache.TrieTimeout
|
||||||
}
|
}
|
||||||
|
|
||||||
n.RPCGasCap = c.JsonRPC.GasCap
|
n.RPCGasCap = c.JsonRPC.GasCap
|
||||||
|
|
@ -888,6 +936,10 @@ func (c *Config) buildEth(stack *node.Node, accountManager *accounts.Manager) (*
|
||||||
n.BorLogs = c.BorLogs
|
n.BorLogs = c.BorLogs
|
||||||
n.DatabaseHandles = dbHandles
|
n.DatabaseHandles = dbHandles
|
||||||
|
|
||||||
|
if c.Ancient != "" {
|
||||||
|
n.DatabaseFreezer = c.Ancient
|
||||||
|
}
|
||||||
|
|
||||||
return &n, nil
|
return &n, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -929,6 +981,11 @@ func (c *Config) buildNode() (*node.Config, error) {
|
||||||
WSPathPrefix: c.JsonRPC.Ws.Prefix,
|
WSPathPrefix: c.JsonRPC.Ws.Prefix,
|
||||||
GraphQLCors: c.JsonRPC.Graphql.Cors,
|
GraphQLCors: c.JsonRPC.Graphql.Cors,
|
||||||
GraphQLVirtualHosts: c.JsonRPC.Graphql.VHost,
|
GraphQLVirtualHosts: c.JsonRPC.Graphql.VHost,
|
||||||
|
HTTPTimeouts: rpc.HTTPTimeouts{
|
||||||
|
ReadTimeout: c.JsonRPC.HttpTimeout.ReadTimeout,
|
||||||
|
WriteTimeout: c.JsonRPC.HttpTimeout.WriteTimeout,
|
||||||
|
IdleTimeout: c.JsonRPC.HttpTimeout.IdleTimeout,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
// dev mode
|
// dev mode
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
package server
|
package server
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"math/big"
|
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
|
@ -101,38 +100,6 @@ func TestDefaultDatatypeOverride(t *testing.T) {
|
||||||
assert.Equal(t, c0, expected)
|
assert.Equal(t, c0, expected)
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestConfigLoadFile(t *testing.T) {
|
|
||||||
readFile := func(path string) {
|
|
||||||
config, err := readConfigFile(path)
|
|
||||||
assert.NoError(t, err)
|
|
||||||
|
|
||||||
assert.Equal(t, config, &Config{
|
|
||||||
DataDir: "./data",
|
|
||||||
P2P: &P2PConfig{
|
|
||||||
MaxPeers: 30,
|
|
||||||
},
|
|
||||||
TxPool: &TxPoolConfig{
|
|
||||||
LifeTime: 1 * time.Second,
|
|
||||||
},
|
|
||||||
Gpo: &GpoConfig{
|
|
||||||
MaxPrice: big.NewInt(100),
|
|
||||||
},
|
|
||||||
Sealer: &SealerConfig{},
|
|
||||||
Cache: &CacheConfig{},
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// read file in hcl format
|
|
||||||
t.Run("hcl", func(t *testing.T) {
|
|
||||||
readFile("./testdata/test.hcl")
|
|
||||||
})
|
|
||||||
|
|
||||||
// read file in json format
|
|
||||||
t.Run("json", func(t *testing.T) {
|
|
||||||
readFile("./testdata/test.json")
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
var dummyEnodeAddr = "enode://0cb82b395094ee4a2915e9714894627de9ed8498fb881cec6db7c65e8b9a5bd7f2f25cc84e71e89d0947e51c76e85d0847de848c7782b13c0255247a6758178c@44.232.55.71:30303"
|
var dummyEnodeAddr = "enode://0cb82b395094ee4a2915e9714894627de9ed8498fb881cec6db7c65e8b9a5bd7f2f25cc84e71e89d0947e51c76e85d0847de848c7782b13c0255247a6758178c@44.232.55.71:30303"
|
||||||
|
|
||||||
func TestConfigBootnodesDefault(t *testing.T) {
|
func TestConfigBootnodesDefault(t *testing.T) {
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ func (c *Command) Flags() *flagset.Flagset {
|
||||||
|
|
||||||
f.StringFlag(&flagset.StringFlag{
|
f.StringFlag(&flagset.StringFlag{
|
||||||
Name: "chain",
|
Name: "chain",
|
||||||
Usage: "Name of the chain to sync",
|
Usage: "Name of the chain to sync ('mumbai', 'mainnet') or path to a genesis file",
|
||||||
Value: &c.cliConfig.Chain,
|
Value: &c.cliConfig.Chain,
|
||||||
Default: c.cliConfig.Chain,
|
Default: c.cliConfig.Chain,
|
||||||
})
|
})
|
||||||
|
|
@ -33,9 +33,15 @@ func (c *Command) Flags() *flagset.Flagset {
|
||||||
Value: &c.cliConfig.DataDir,
|
Value: &c.cliConfig.DataDir,
|
||||||
Default: c.cliConfig.DataDir,
|
Default: c.cliConfig.DataDir,
|
||||||
})
|
})
|
||||||
|
f.StringFlag(&flagset.StringFlag{
|
||||||
|
Name: "datadir.ancient",
|
||||||
|
Usage: "Data directory for ancient chain segments (default = inside chaindata)",
|
||||||
|
Value: &c.cliConfig.Ancient,
|
||||||
|
Default: c.cliConfig.Ancient,
|
||||||
|
})
|
||||||
f.StringFlag(&flagset.StringFlag{
|
f.StringFlag(&flagset.StringFlag{
|
||||||
Name: "keystore",
|
Name: "keystore",
|
||||||
Usage: "Path of the directory to store keystores",
|
Usage: "Path of the directory where keystores are located",
|
||||||
Value: &c.cliConfig.KeyStoreDir,
|
Value: &c.cliConfig.KeyStoreDir,
|
||||||
})
|
})
|
||||||
f.StringFlag(&flagset.StringFlag{
|
f.StringFlag(&flagset.StringFlag{
|
||||||
|
|
@ -182,7 +188,7 @@ func (c *Command) Flags() *flagset.Flagset {
|
||||||
})
|
})
|
||||||
f.StringFlag(&flagset.StringFlag{
|
f.StringFlag(&flagset.StringFlag{
|
||||||
Name: "miner.etherbase",
|
Name: "miner.etherbase",
|
||||||
Usage: "Public address for block mining rewards (default = first account)",
|
Usage: "Public address for block mining rewards",
|
||||||
Value: &c.cliConfig.Sealer.Etherbase,
|
Value: &c.cliConfig.Sealer.Etherbase,
|
||||||
Default: c.cliConfig.Sealer.Etherbase,
|
Default: c.cliConfig.Sealer.Etherbase,
|
||||||
Group: "Sealer",
|
Group: "Sealer",
|
||||||
|
|
@ -196,7 +202,7 @@ func (c *Command) Flags() *flagset.Flagset {
|
||||||
})
|
})
|
||||||
f.Uint64Flag(&flagset.Uint64Flag{
|
f.Uint64Flag(&flagset.Uint64Flag{
|
||||||
Name: "miner.gaslimit",
|
Name: "miner.gaslimit",
|
||||||
Usage: "Target gas ceiling for mined blocks",
|
Usage: "Target gas ceiling (gas limit) for mined blocks",
|
||||||
Value: &c.cliConfig.Sealer.GasCeil,
|
Value: &c.cliConfig.Sealer.GasCeil,
|
||||||
Default: c.cliConfig.Sealer.GasCeil,
|
Default: c.cliConfig.Sealer.GasCeil,
|
||||||
Group: "Sealer",
|
Group: "Sealer",
|
||||||
|
|
@ -498,7 +504,7 @@ func (c *Command) Flags() *flagset.Flagset {
|
||||||
})
|
})
|
||||||
f.Uint64Flag(&flagset.Uint64Flag{
|
f.Uint64Flag(&flagset.Uint64Flag{
|
||||||
Name: "maxpendpeers",
|
Name: "maxpendpeers",
|
||||||
Usage: "Maximum number of pending connection attempts (defaults used if set to 0)",
|
Usage: "Maximum number of pending connection attempts",
|
||||||
Value: &c.cliConfig.P2P.MaxPendPeers,
|
Value: &c.cliConfig.P2P.MaxPendPeers,
|
||||||
Default: c.cliConfig.P2P.MaxPendPeers,
|
Default: c.cliConfig.P2P.MaxPendPeers,
|
||||||
Group: "P2P",
|
Group: "P2P",
|
||||||
|
|
|
||||||
13
internal/cli/server/testdata/test.hcl
vendored
13
internal/cli/server/testdata/test.hcl
vendored
|
|
@ -1,13 +0,0 @@
|
||||||
datadir = "./data"
|
|
||||||
|
|
||||||
p2p {
|
|
||||||
maxpeers = 30
|
|
||||||
}
|
|
||||||
|
|
||||||
txpool {
|
|
||||||
lifetime = "1s"
|
|
||||||
}
|
|
||||||
|
|
||||||
gpo {
|
|
||||||
maxprice = "100"
|
|
||||||
}
|
|
||||||
12
internal/cli/server/testdata/test.json
vendored
12
internal/cli/server/testdata/test.json
vendored
|
|
@ -1,12 +0,0 @@
|
||||||
{
|
|
||||||
"datadir": "./data",
|
|
||||||
"p2p": {
|
|
||||||
"maxpeers": 30
|
|
||||||
},
|
|
||||||
"txpool": {
|
|
||||||
"lifetime": "1s"
|
|
||||||
},
|
|
||||||
"gpo": {
|
|
||||||
"maxprice": "100"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -2,6 +2,7 @@ chain = "mainnet"
|
||||||
# identity = "node_name"
|
# identity = "node_name"
|
||||||
# log-level = "INFO"
|
# log-level = "INFO"
|
||||||
datadir = "/var/lib/bor/data"
|
datadir = "/var/lib/bor/data"
|
||||||
|
# ancient = ""
|
||||||
# keystore = ""
|
# keystore = ""
|
||||||
syncmode = "full"
|
syncmode = "full"
|
||||||
gcmode = "archive"
|
gcmode = "archive"
|
||||||
|
|
@ -78,6 +79,10 @@ gcmode = "archive"
|
||||||
# host = ""
|
# host = ""
|
||||||
# vhosts = ["*"]
|
# vhosts = ["*"]
|
||||||
# corsdomain = ["*"]
|
# corsdomain = ["*"]
|
||||||
|
# [jsonrpc.timeouts]
|
||||||
|
# read = "30s"
|
||||||
|
# write = "30s"
|
||||||
|
# idle = "2m0s"
|
||||||
|
|
||||||
[gpo]
|
[gpo]
|
||||||
# blocks = 20
|
# blocks = 20
|
||||||
|
|
@ -104,15 +109,16 @@ gcmode = "archive"
|
||||||
|
|
||||||
[cache]
|
[cache]
|
||||||
cache = 4096
|
cache = 4096
|
||||||
# gc = 25
|
gc = 0
|
||||||
# snapshot = 10
|
snapshot = 20
|
||||||
# database = 50
|
# database = 50
|
||||||
# trie = 15
|
trie = 30
|
||||||
# journal = "triecache"
|
# journal = "triecache"
|
||||||
# rejournal = "1h0m0s"
|
# rejournal = "1h0m0s"
|
||||||
# noprefetch = false
|
# noprefetch = false
|
||||||
# preimages = false
|
# preimages = false
|
||||||
# txlookuplimit = 2350000
|
# txlookuplimit = 2350000
|
||||||
|
# timeout = "1h0m0s"
|
||||||
|
|
||||||
# [accounts]
|
# [accounts]
|
||||||
# unlock = []
|
# unlock = []
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@ chain = "mainnet"
|
||||||
# identity = "node_name"
|
# identity = "node_name"
|
||||||
# log-level = "INFO"
|
# log-level = "INFO"
|
||||||
datadir = "/var/lib/bor/data"
|
datadir = "/var/lib/bor/data"
|
||||||
|
# ancient = ""
|
||||||
# keystore = ""
|
# keystore = ""
|
||||||
syncmode = "full"
|
syncmode = "full"
|
||||||
# gcmode = "full"
|
# gcmode = "full"
|
||||||
|
|
@ -78,6 +79,10 @@ syncmode = "full"
|
||||||
# host = ""
|
# host = ""
|
||||||
# vhosts = ["*"]
|
# vhosts = ["*"]
|
||||||
# corsdomain = ["*"]
|
# corsdomain = ["*"]
|
||||||
|
# [jsonrpc.timeouts]
|
||||||
|
# read = "30s"
|
||||||
|
# write = "30s"
|
||||||
|
# idle = "2m0s"
|
||||||
|
|
||||||
[gpo]
|
[gpo]
|
||||||
# blocks = 20
|
# blocks = 20
|
||||||
|
|
@ -113,6 +118,7 @@ syncmode = "full"
|
||||||
# noprefetch = false
|
# noprefetch = false
|
||||||
# preimages = false
|
# preimages = false
|
||||||
# txlookuplimit = 2350000
|
# txlookuplimit = 2350000
|
||||||
|
# timeout = "1h0m0s"
|
||||||
|
|
||||||
# [accounts]
|
# [accounts]
|
||||||
# unlock = []
|
# unlock = []
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@ chain = "mainnet"
|
||||||
# identity = "node_name"
|
# identity = "node_name"
|
||||||
# log-level = "INFO"
|
# log-level = "INFO"
|
||||||
datadir = "/var/lib/bor/data"
|
datadir = "/var/lib/bor/data"
|
||||||
|
# ancient = ""
|
||||||
# keystore = "$BOR_DIR/keystore"
|
# keystore = "$BOR_DIR/keystore"
|
||||||
syncmode = "full"
|
syncmode = "full"
|
||||||
# gcmode = "full"
|
# gcmode = "full"
|
||||||
|
|
@ -80,6 +81,10 @@ syncmode = "full"
|
||||||
# host = ""
|
# host = ""
|
||||||
# vhosts = ["*"]
|
# vhosts = ["*"]
|
||||||
# corsdomain = ["*"]
|
# corsdomain = ["*"]
|
||||||
|
# [jsonrpc.timeouts]
|
||||||
|
# read = "30s"
|
||||||
|
# write = "30s"
|
||||||
|
# idle = "2m0s"
|
||||||
|
|
||||||
[gpo]
|
[gpo]
|
||||||
# blocks = 20
|
# blocks = 20
|
||||||
|
|
@ -115,6 +120,7 @@ syncmode = "full"
|
||||||
# noprefetch = false
|
# noprefetch = false
|
||||||
# preimages = false
|
# preimages = false
|
||||||
# txlookuplimit = 2350000
|
# txlookuplimit = 2350000
|
||||||
|
# timeout = "1h0m0s"
|
||||||
|
|
||||||
[accounts]
|
[accounts]
|
||||||
allow-insecure-unlock = true
|
allow-insecure-unlock = true
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@ chain = "mainnet"
|
||||||
# identity = "node_name"
|
# identity = "node_name"
|
||||||
# log-level = "INFO"
|
# log-level = "INFO"
|
||||||
datadir = "/var/lib/bor/data"
|
datadir = "/var/lib/bor/data"
|
||||||
|
# ancient = ""
|
||||||
# keystore = "$BOR_DIR/keystore"
|
# keystore = "$BOR_DIR/keystore"
|
||||||
syncmode = "full"
|
syncmode = "full"
|
||||||
# gcmode = "full"
|
# gcmode = "full"
|
||||||
|
|
@ -80,6 +81,10 @@ syncmode = "full"
|
||||||
# host = ""
|
# host = ""
|
||||||
# vhosts = ["*"]
|
# vhosts = ["*"]
|
||||||
# corsdomain = ["*"]
|
# corsdomain = ["*"]
|
||||||
|
# [jsonrpc.timeouts]
|
||||||
|
# read = "30s"
|
||||||
|
# write = "30s"
|
||||||
|
# idle = "2m0s"
|
||||||
|
|
||||||
[gpo]
|
[gpo]
|
||||||
# blocks = 20
|
# blocks = 20
|
||||||
|
|
@ -115,6 +120,7 @@ syncmode = "full"
|
||||||
# noprefetch = false
|
# noprefetch = false
|
||||||
# preimages = false
|
# preimages = false
|
||||||
# txlookuplimit = 2350000
|
# txlookuplimit = 2350000
|
||||||
|
# timeout = "1h0m0s"
|
||||||
|
|
||||||
[accounts]
|
[accounts]
|
||||||
allow-insecure-unlock = true
|
allow-insecure-unlock = true
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,11 @@
|
||||||
# This is a postinstallation script so the service can be configured and started when requested
|
# This is a postinstallation script so the service can be configured and started when requested
|
||||||
#
|
#
|
||||||
sudo adduser --disabled-password --disabled-login --shell /usr/sbin/nologin --quiet --system --no-create-home --home /nonexistent bor
|
sudo adduser --disabled-password --disabled-login --shell /usr/sbin/nologin --quiet --system --no-create-home --home /nonexistent bor
|
||||||
sudo mkdir -p /var/lib/bor
|
if [ -d "/var/lib/bor" ]
|
||||||
sudo chown -R bor /var/lib/bor
|
then
|
||||||
|
echo "Directory /var/lib/bor exists."
|
||||||
|
else
|
||||||
|
mkdir -p /var/lib/bor
|
||||||
|
sudo chown -R bor /var/lib/bor
|
||||||
|
fi
|
||||||
sudo systemctl daemon-reload
|
sudo systemctl daemon-reload
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,11 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# This is a postinstallation script so the service can be configured and started when requested
|
# This is a postinstallation script so the service can be configured and started when requested
|
||||||
#
|
#
|
||||||
sudo mkdir -p /var/lib/bor
|
if [ -d "/var/lib/bor" ]
|
||||||
sudo chown -R bor /var/lib/bor
|
then
|
||||||
|
echo "Directory /var/lib/bor exists."
|
||||||
|
else
|
||||||
|
mkdir -p /var/lib/bor
|
||||||
|
sudo chown -R bor /var/lib/bor
|
||||||
|
fi
|
||||||
sudo systemctl daemon-reload
|
sudo systemctl daemon-reload
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@ chain = "mumbai"
|
||||||
# identity = "node_name"
|
# identity = "node_name"
|
||||||
# log-level = "INFO"
|
# log-level = "INFO"
|
||||||
datadir = "/var/lib/bor/data"
|
datadir = "/var/lib/bor/data"
|
||||||
|
# ancient = ""
|
||||||
# keystore = ""
|
# keystore = ""
|
||||||
syncmode = "full"
|
syncmode = "full"
|
||||||
gcmode = "archive"
|
gcmode = "archive"
|
||||||
|
|
@ -78,6 +79,10 @@ gcmode = "archive"
|
||||||
# host = ""
|
# host = ""
|
||||||
# vhosts = ["*"]
|
# vhosts = ["*"]
|
||||||
# corsdomain = ["*"]
|
# corsdomain = ["*"]
|
||||||
|
# [jsonrpc.timeouts]
|
||||||
|
# read = "30s"
|
||||||
|
# write = "30s"
|
||||||
|
# idle = "2m0s"
|
||||||
|
|
||||||
# [gpo]
|
# [gpo]
|
||||||
# blocks = 20
|
# blocks = 20
|
||||||
|
|
@ -102,17 +107,18 @@ gcmode = "archive"
|
||||||
# organization = ""
|
# organization = ""
|
||||||
# [telemetry.influx.tags]
|
# [telemetry.influx.tags]
|
||||||
|
|
||||||
# [cache]
|
[cache]
|
||||||
# cache = 1024
|
# cache = 1024
|
||||||
# gc = 25
|
gc = 0
|
||||||
# snapshot = 10
|
snapshot = 20
|
||||||
# database = 50
|
# database = 50
|
||||||
# trie = 15
|
trie = 30
|
||||||
# journal = "triecache"
|
# journal = "triecache"
|
||||||
# rejournal = "1h0m0s"
|
# rejournal = "1h0m0s"
|
||||||
# noprefetch = false
|
# noprefetch = false
|
||||||
# preimages = false
|
# preimages = false
|
||||||
# txlookuplimit = 2350000
|
# txlookuplimit = 2350000
|
||||||
|
# timeout = "1h0m0s"
|
||||||
|
|
||||||
# [accounts]
|
# [accounts]
|
||||||
# unlock = []
|
# unlock = []
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@ chain = "mumbai"
|
||||||
# identity = "node_name"
|
# identity = "node_name"
|
||||||
# log-level = "INFO"
|
# log-level = "INFO"
|
||||||
datadir = "/var/lib/bor/data"
|
datadir = "/var/lib/bor/data"
|
||||||
|
# ancient = ""
|
||||||
# keystore = ""
|
# keystore = ""
|
||||||
syncmode = "full"
|
syncmode = "full"
|
||||||
# gcmode = "full"
|
# gcmode = "full"
|
||||||
|
|
@ -78,6 +79,10 @@ syncmode = "full"
|
||||||
# host = ""
|
# host = ""
|
||||||
# vhosts = ["*"]
|
# vhosts = ["*"]
|
||||||
# corsdomain = ["*"]
|
# corsdomain = ["*"]
|
||||||
|
# [jsonrpc.timeouts]
|
||||||
|
# read = "30s"
|
||||||
|
# write = "30s"
|
||||||
|
# idle = "2m0s"
|
||||||
|
|
||||||
# [gpo]
|
# [gpo]
|
||||||
# blocks = 20
|
# blocks = 20
|
||||||
|
|
@ -113,6 +118,7 @@ syncmode = "full"
|
||||||
# noprefetch = false
|
# noprefetch = false
|
||||||
# preimages = false
|
# preimages = false
|
||||||
# txlookuplimit = 2350000
|
# txlookuplimit = 2350000
|
||||||
|
# timeout = "1h0m0s"
|
||||||
|
|
||||||
# [accounts]
|
# [accounts]
|
||||||
# unlock = []
|
# unlock = []
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@ chain = "mumbai"
|
||||||
# identity = "node_name"
|
# identity = "node_name"
|
||||||
# log-level = "INFO"
|
# log-level = "INFO"
|
||||||
datadir = "/var/lib/bor/data"
|
datadir = "/var/lib/bor/data"
|
||||||
|
# ancient = ""
|
||||||
# keystore = "$BOR_DIR/keystore"
|
# keystore = "$BOR_DIR/keystore"
|
||||||
syncmode = "full"
|
syncmode = "full"
|
||||||
# gcmode = "full"
|
# gcmode = "full"
|
||||||
|
|
@ -80,6 +81,10 @@ syncmode = "full"
|
||||||
# host = ""
|
# host = ""
|
||||||
# vhosts = ["*"]
|
# vhosts = ["*"]
|
||||||
# corsdomain = ["*"]
|
# corsdomain = ["*"]
|
||||||
|
# [jsonrpc.timeouts]
|
||||||
|
# read = "30s"
|
||||||
|
# write = "30s"
|
||||||
|
# idle = "2m0s"
|
||||||
|
|
||||||
# [gpo]
|
# [gpo]
|
||||||
# blocks = 20
|
# blocks = 20
|
||||||
|
|
@ -115,6 +120,7 @@ syncmode = "full"
|
||||||
# noprefetch = false
|
# noprefetch = false
|
||||||
# preimages = false
|
# preimages = false
|
||||||
# txlookuplimit = 2350000
|
# txlookuplimit = 2350000
|
||||||
|
# timeout = "1h0m0s"
|
||||||
|
|
||||||
[accounts]
|
[accounts]
|
||||||
allow-insecure-unlock = true
|
allow-insecure-unlock = true
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@ chain = "mumbai"
|
||||||
# identity = "node_name"
|
# identity = "node_name"
|
||||||
# log-level = "INFO"
|
# log-level = "INFO"
|
||||||
datadir = "/var/lib/bor/data"
|
datadir = "/var/lib/bor/data"
|
||||||
|
# ancient = ""
|
||||||
# keystore = "$BOR_DIR/keystore"
|
# keystore = "$BOR_DIR/keystore"
|
||||||
syncmode = "full"
|
syncmode = "full"
|
||||||
# gcmode = "full"
|
# gcmode = "full"
|
||||||
|
|
@ -80,6 +81,10 @@ syncmode = "full"
|
||||||
# host = ""
|
# host = ""
|
||||||
# vhosts = ["*"]
|
# vhosts = ["*"]
|
||||||
# corsdomain = ["*"]
|
# corsdomain = ["*"]
|
||||||
|
# [jsonrpc.timeouts]
|
||||||
|
# read = "30s"
|
||||||
|
# write = "30s"
|
||||||
|
# idle = "2m0s"
|
||||||
|
|
||||||
# [gpo]
|
# [gpo]
|
||||||
# blocks = 20
|
# blocks = 20
|
||||||
|
|
@ -115,6 +120,7 @@ syncmode = "full"
|
||||||
# noprefetch = false
|
# noprefetch = false
|
||||||
# preimages = false
|
# preimages = false
|
||||||
# txlookuplimit = 2350000
|
# txlookuplimit = 2350000
|
||||||
|
# timeout = "1h0m0s"
|
||||||
|
|
||||||
[accounts]
|
[accounts]
|
||||||
allow-insecure-unlock = true
|
allow-insecure-unlock = true
|
||||||
|
|
|
||||||
|
|
@ -357,6 +357,34 @@ func writeTempStaticTrustedTOML(path string) {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if data.Has("Node.HTTPTimeouts.ReadTimeout") {
|
||||||
|
err = os.WriteFile("./tempHTTPTimeoutsReadTimeout.toml", []byte(data.Get("Node.HTTPTimeouts.ReadTimeout").(string)), 0600)
|
||||||
|
if err != nil {
|
||||||
|
log.Fatal(err)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if data.Has("Node.HTTPTimeouts.WriteTimeout") {
|
||||||
|
err = os.WriteFile("./tempHTTPTimeoutsWriteTimeout.toml", []byte(data.Get("Node.HTTPTimeouts.WriteTimeout").(string)), 0600)
|
||||||
|
if err != nil {
|
||||||
|
log.Fatal(err)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if data.Has("Node.HTTPTimeouts.IdleTimeout") {
|
||||||
|
err = os.WriteFile("./tempHTTPTimeoutsIdleTimeout.toml", []byte(data.Get("Node.HTTPTimeouts.IdleTimeout").(string)), 0600)
|
||||||
|
if err != nil {
|
||||||
|
log.Fatal(err)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if data.Has("Eth.TrieTimeout") {
|
||||||
|
err = os.WriteFile("./tempHTTPTimeoutsTrieTimeout.toml", []byte(data.Get("Eth.TrieTimeout").(string)), 0600)
|
||||||
|
if err != nil {
|
||||||
|
log.Fatal(err)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func getStaticTrustedNodes(args []string) {
|
func getStaticTrustedNodes(args []string) {
|
||||||
|
|
@ -574,7 +602,7 @@ func commentFlags(path string, updatedArgs []string) {
|
||||||
flag = strconv.Itoa(passwordFlag) + "-" + flag
|
flag = strconv.Itoa(passwordFlag) + "-" + flag
|
||||||
}
|
}
|
||||||
|
|
||||||
if flag != "static-nodes" && flag != "trusted-nodes" {
|
if flag != "static-nodes" && flag != "trusted-nodes" && flag != "read" && flag != "write" && flag != "idle" && flag != "timeout" {
|
||||||
flag = nameTagMap[flag]
|
flag = nameTagMap[flag]
|
||||||
|
|
||||||
tempFlag := false
|
tempFlag := false
|
||||||
|
|
|
||||||
|
|
@ -112,6 +112,54 @@ else
|
||||||
echo "neither JSON nor TOML TrustedNodes found"
|
echo "neither JSON nor TOML TrustedNodes found"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ -f ./tempHTTPTimeoutsReadTimeout.toml ]]
|
||||||
|
then
|
||||||
|
echo "HTTPTimeouts.ReadTimeout found"
|
||||||
|
read=$(head -1 ./tempHTTPTimeoutsReadTimeout.toml)
|
||||||
|
shopt -s nocasematch; if [[ "$OS" == "darwin"* ]]; then
|
||||||
|
sed -i '' "s%read = \"30s\"%read = \"${read}\"%" $confPath
|
||||||
|
else
|
||||||
|
sed -i "s%read = \"30s\"%read = \"${read}\"%" $confPath
|
||||||
|
fi
|
||||||
|
rm ./tempHTTPTimeoutsReadTimeout.toml
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -f ./tempHTTPTimeoutsWriteTimeout.toml ]]
|
||||||
|
then
|
||||||
|
echo "HTTPTimeouts.WriteTimeout found"
|
||||||
|
write=$(head -1 ./tempHTTPTimeoutsWriteTimeout.toml)
|
||||||
|
shopt -s nocasematch; if [[ "$OS" == "darwin"* ]]; then
|
||||||
|
sed -i '' "s%write = \"30s\"%write = \"${write}\"%" $confPath
|
||||||
|
else
|
||||||
|
sed -i "s%write = \"30s\"%write = \"${write}\"%" $confPath
|
||||||
|
fi
|
||||||
|
rm ./tempHTTPTimeoutsWriteTimeout.toml
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -f ./tempHTTPTimeoutsIdleTimeout.toml ]]
|
||||||
|
then
|
||||||
|
echo "HTTPTimeouts.IdleTimeout found"
|
||||||
|
idle=$(head -1 ./tempHTTPTimeoutsIdleTimeout.toml)
|
||||||
|
shopt -s nocasematch; if [[ "$OS" == "darwin"* ]]; then
|
||||||
|
sed -i '' "s%idle = \"2m0s\"%idle = \"${idle}\"%" $confPath
|
||||||
|
else
|
||||||
|
sed -i "s%idle = \"2m0s\"%idle = \"${idle}\"%" $confPath
|
||||||
|
fi
|
||||||
|
rm ./tempHTTPTimeoutsIdleTimeout.toml
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -f ./tempHTTPTimeoutsTrieTimeout.toml ]]
|
||||||
|
then
|
||||||
|
echo "Eth.TrieTimeout found"
|
||||||
|
timeout=$(head -1 ./tempHTTPTimeoutsTrieTimeout.toml)
|
||||||
|
shopt -s nocasematch; if [[ "$OS" == "darwin"* ]]; then
|
||||||
|
sed -i '' "s%timeout = \"1h0m0s\"%timeout = \"${timeout}\"%" $confPath
|
||||||
|
else
|
||||||
|
sed -i "s%timeout = \"1h0m0s\"%timeout = \"${timeout}\"%" $confPath
|
||||||
|
fi
|
||||||
|
rm ./tempHTTPTimeoutsTrieTimeout.toml
|
||||||
|
fi
|
||||||
|
|
||||||
printf "\n"
|
printf "\n"
|
||||||
|
|
||||||
# comment flags in $configPath that were not passed through $startPath
|
# comment flags in $configPath that were not passed through $startPath
|
||||||
|
|
|
||||||
|
|
@ -480,7 +480,16 @@ func TestFetchStateSyncEvents_2(t *testing.T) {
|
||||||
|
|
||||||
h := mocks.NewMockIHeimdallClient(ctrl)
|
h := mocks.NewMockIHeimdallClient(ctrl)
|
||||||
h.EXPECT().Close().AnyTimes()
|
h.EXPECT().Close().AnyTimes()
|
||||||
|
<<<<<<< HEAD
|
||||||
h.EXPECT().Span(gomock.Any(), uint64(1)).Return(&res.Result, nil).AnyTimes()
|
h.EXPECT().Span(gomock.Any(), uint64(1)).Return(&res.Result, nil).AnyTimes()
|
||||||
|
=======
|
||||||
|
h.EXPECT().Span(uint64(1)).Return(&res.Result, nil).AnyTimes()
|
||||||
|
h.EXPECT().FetchLatestCheckpoint().Return(&checkpoint.Checkpoint{
|
||||||
|
StartBlock: big.NewInt(1),
|
||||||
|
EndBlock: big.NewInt(2),
|
||||||
|
RootHash: common.Hash{},
|
||||||
|
}, nil).AnyTimes()
|
||||||
|
>>>>>>> 57075d000d1a6396c33d42e5da97be19bfcfb6f1
|
||||||
|
|
||||||
// Mock State Sync events
|
// Mock State Sync events
|
||||||
// at # sprintSize, events are fetched for [fromID, (block-sprint).Time)
|
// at # sprintSize, events are fetched for [fromID, (block-sprint).Time)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue