From b8413b129e9d2f2f559cb803c2303e0bcaa00ed5 Mon Sep 17 00:00:00 2001 From: goth Date: Thu, 26 May 2022 09:44:58 +0800 Subject: [PATCH 1/3] chores: add BEP-127 operation readme --- docs/parlia/README-BEP-127.md | 47 +++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 docs/parlia/README-BEP-127.md diff --git a/docs/parlia/README-BEP-127.md b/docs/parlia/README-BEP-127.md new file mode 100644 index 000000000..f79b07141 --- /dev/null +++ b/docs/parlia/README-BEP-127.md @@ -0,0 +1,47 @@ +## BEP-127: Temporary Maintenance Mode for Validators + +Temporary Maintenance is supposed to last one or a few hours. The validator seat will be temporarily dropped from the block producing rotation during the maintenance. Since long-time offline maintenance is not encouraged, the validator will still be slashed if the maintenance lasts too long. To lower the impact from poorly-operating validators who forget to claim its maintenance, they will be forced to enter Temporary Maintenance mode too. + +- **enterMaintenance**: Validator can claim itself to enter scheduled maintenance by sending a transaction signed by the consensus key. +- **exitMaintenance**: The validator can claim itself to exit maintenance by sending another transaction. + +More details in [BEP-127](https://github.com/bnb-chain/BEPs/blob/master/BEP127.md). + + +## How to enter/exit maintenance + +### Running `geth` +make sure you have unlocked the consensus address of your validator + +### Running `built-in interactive` +```shell +$ geth attach geth.ipc +``` + +This command will: +* Start up `geth`'s built-in interactive [JavaScript console](https://geth.ethereum.org/docs/interface/javascript-console), + (via the trailing `console` subcommand) through which you can interact using [`web3` methods](https://web3js.readthedocs.io/en/) + (note: the `web3` version bundled within `geth` is very old, and not up to date with official docs), + as well as `geth`'s own [management APIs](https://geth.ethereum.org/docs/rpc/server). + + +### enter maintenance +``` +web3.eth.sendTransaction({ + from: "consensus address of your validator", + to: "0x0000000000000000000000000000000000001000", + data: "0x9369d7de" +}) +``` + +### exit maintenance +``` +web3.eth.sendTransaction({ + from: "consensus address of your validator", + to: "0x0000000000000000000000000000000000001000", + data: "0x04c4fec6" +}) +``` + + + From 0080707fc73f514fa9a448f31ff54c85e8178d4d Mon Sep 17 00:00:00 2001 From: cosinlink Date: Tue, 7 Jun 2022 16:52:10 +0800 Subject: [PATCH 2/3] feat: update Euler Fork blockNumber --- params/config.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/params/config.go b/params/config.go index fbf4c4259..8c3fb1c8e 100644 --- a/params/config.go +++ b/params/config.go @@ -255,9 +255,7 @@ var ( NielsBlock: big.NewInt(0), MirrorSyncBlock: big.NewInt(5184000), BrunoBlock: big.NewInt(13082000), - - // TODO modify blockNumber - EulerBlock: nil, + EulerBlock: big.NewInt(18907621), Parlia: &ParliaConfig{ Period: 3, @@ -303,9 +301,7 @@ var ( NielsBlock: big.NewInt(0), MirrorSyncBlock: big.NewInt(400), BrunoBlock: big.NewInt(400), - - // TODO - EulerBlock: nil, + EulerBlock: nil, Parlia: &ParliaConfig{ Period: 3, From 979bb8fca9c3bb1de7a79c1bd214a4033b55c52a Mon Sep 17 00:00:00 2001 From: cosinlink Date: Tue, 7 Jun 2022 17:19:26 +0800 Subject: [PATCH 3/3] feat: add release info of BSC v1.1.11 --- CHANGELOG.md | 7 +++++++ README.md | 2 +- params/version.go | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 626151225..deefb9d12 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## v1.1.11 + +UPGRADE +* [\#927](https://github.com/bnb-chain/bsc/pull/927) add readme for validators about how to enter/exit maintenance +* [\#942](https://github.com/bnb-chain/bsc/pull/942) update the blockNumber of Euler Fork upgrade on BSC Mainnet + + ## v1.1.10 FEATURE diff --git a/README.md b/README.md index c8833941a..394281dad 100644 --- a/README.md +++ b/README.md @@ -124,7 +124,7 @@ This command will: Steps: -1. Download the binary, config and genesis files from [release](https://github.com/bnb-chain/bsc/releases/tag/v1.1.10), or compile the binary by `make geth`. +1. Download the binary, config and genesis files from [release](https://github.com/bnb-chain/bsc/releases/tag/v1.1.11), or compile the binary by `make geth`. 2. Init genesis state: `./geth --datadir node init genesis.json`. 3. Start your fullnode: `./geth --config ./config.toml --datadir ./node`. 4. Or start a validator node: `./geth --config ./config.toml --datadir ./node -unlock ${validatorAddr} --mine --allow-insecure-unlock`. The ${validatorAddr} is the wallet account address of your running validator node. diff --git a/params/version.go b/params/version.go index d4a04cfba..0dc16e482 100644 --- a/params/version.go +++ b/params/version.go @@ -23,7 +23,7 @@ import ( const ( VersionMajor = 1 // Major version component of the current release VersionMinor = 1 // Minor version component of the current release - VersionPatch = 10 // Patch version component of the current release + VersionPatch = 11 // Patch version component of the current release VersionMeta = "" // Version metadata to append to the version string )