the client could just be anyone.
So verify the sender of the block by obtaining the VRS in block, deconstructing public key from that and comparing the obtained key with stored public key of the sender.
Also fix the 3 modes, 2 out of which are currently dummy, as per https://github.com/truechain/truechain-consensus-core/blob/master/README.md#step-3
4. `TRUE_SIMULATION` is as follows:
- if set to 0 (default) - should tell the project to pickup testbed configurations.
- if set to 1 - staging, meaning all CI/CD tests are run before draft run. (dummy functionality at the moment)
- if set to 2 - production. Will try to connect to boot nodes. (dummy functionality at the moment)
the client could just be anyone.
So verify the sender of the block by obtaining the VRS in block, deconstructing public key from that and comparing the obtained key with stored public key of the sender.
Also fix the 3 modes, 2 out of which are currently dummy, as per https://github.com/truechain/truechain-consensus-core/blob/master/README.md#step-3