Open gumb0 opened 4 years ago
Addresses https://github.com/ethereum/aleth/issues/5889
TODO
BlockChain::forkHash()
BlockChain::m_params
c_infiniteBlockNumber
0
#include <cryptopp/crc.h>
libdevcrypto
BlockChain::nextForkBlockNumber()
eth
IdentitySchemeV4::updateENR
IdentitySchemeV4::createKeyValuePairs
NodeTable
cc @fjl
Addresses https://github.com/ethereum/aleth/issues/5889
TODO
BlockChain::forkHash()
BlockChain::m_params
has all the known fork block numbers. Fork block number =c_infiniteBlockNumber
means it's disabled; fork block number =0
means it's activated at genesis.#include <cryptopp/crc.h>
but better to create a wrapper for it in ourlibdevcrypto
BlockChain::nextForkBlockNumber()
eth
field to ENR - easiest would be to add it toIdentitySchemeV4::updateENR
andIdentitySchemeV4::createKeyValuePairs
NodeTable
toIdentitySchemeV4::updateENR
cc @fjl