QuarkChain / go-ethereum

Official Go implementation of the Ethereum protocol
https://geth.ethereum.org
GNU Lesser General Public License v3.0
5 stars 2 forks source link

Support external contract/chain to update validator set #67

Open qizhou opened 2 years ago

qizhou commented 2 years ago

We should be able to add the following config to TendermintConfig

And add a cmdline flag to provide RPC of external chain id.

When the node starts, check if the PoS is enabled, then the external chain id matches the RPC one.

In the node code, when a proposal for epoch change happens, we will

When a validator receives a proposal for epoch change, we will

The proposal structure will be changed to add height and block hash fields.