6 #include <validation.h> 15 static const uint32_t MIN_BLOCK_SIZE_DGP = 500000;
16 static const uint32_t MAX_BLOCK_SIZE_DGP = 32000000;
17 static const uint32_t DEFAULT_BLOCK_SIZE_DGP = 2000000;
19 static const uint64_t MIN_MIN_GAS_PRICE_DGP = 1;
20 static const uint64_t MAX_MIN_GAS_PRICE_DGP = 10000;
21 static const uint64_t DEFAULT_MIN_GAS_PRICE_DGP = 40;
23 static const uint64_t MIN_BLOCK_GAS_LIMIT_DGP = 1000000;
24 static const uint64_t MAX_BLOCK_GAS_LIMIT_DGP = 1000000000;
25 static const uint64_t DEFAULT_BLOCK_GAS_LIMIT_DGP = 40000000;
55 bool checkLimitSchedule(
const std::vector<uint32_t>& defaultData,
const std::vector<uint32_t>& checkData);
83 std::map<dev::h256, std::pair<dev::u256, dev::u256>>
storageDGP;
void parseDataScheduleContract(std::vector< uint32_t > &uint32Values)
std::vector< uint32_t > dataEIP158Schedule
dev::Address templateContract
bool checkLimitSchedule(const std::vector< uint32_t > &defaultData, const std::vector< uint32_t > &checkData)
uint64_t getUint64FromDGP(unsigned int blockHeight, const dev::Address &contract, std::vector< unsigned char > data)
h160 Address
An Ethereum address: 20 bytes.
void initDataTemplate(const dev::Address &addr, std::vector< unsigned char > &data)
void initStorageTemplate(const dev::Address &addr)
std::vector< std::pair< unsigned int, dev::Address > > paramsInstance
uint64_t getBlockGasLimit(unsigned int blockHeight)
dev::eth::EVMSchedule getGasSchedule(unsigned int blockHeight)
std::map< dev::h256, std::pair< dev::u256, dev::u256 > > storageTemplate
Fixed-size raw-byte array container type, with an API optimised for storing hashes.
void parseStorageScheduleContract(std::vector< uint32_t > &uint32Values)
FascDGP(FascState *_state, bool _dgpevm=true)
std::map< dev::h256, std::pair< dev::u256, dev::u256 > > storageDGP
std::vector< unsigned char > dataTemplate
void parseStorageOneUint64(uint64_t &blockSize)
dev::eth::EVMSchedule createEVMSchedule()
uint32_t getBlockSize(unsigned int blockHeight)
dev::Address getAddressForBlock(unsigned int blockHeight)
bool initStorages(const dev::Address &addr, unsigned int blockHeight, std::vector< unsigned char > data=std::vector< unsigned char >())
void initStorageDGP(const dev::Address &addr)
void parseDataOneUint64(uint64_t &value)
uint64_t getMinGasPrice(unsigned int blockHeight)
void createParamsInstance()