29 PrecompiledContract::PrecompiledContract(
33 u256 const& _startingBlock
40 return b + (s + 31) / 32 * w;
41 }, _exec, _startingBlock)
46 otherParams = std::unordered_map<std::string, std::string>{
47 {
"minGasLimit",
"0x1388"},
48 {
"maxGasLimit",
"0x7fffffffffffffff"},
49 {
"gasLimitBoundDivisor",
"0x0400"},
50 {
"minimumDifficulty",
"0x020000"},
51 {
"difficultyBoundDivisor",
"0x0800"},
52 {
"durationLimit",
"0x0d"},
53 {
"registrar",
"5e70c0bbcd5636e0f9f9316e9f8633feb64d4050"},
56 blockReward =
u256(
"0x4563918244F40000");
63 auto it = otherParams.find(_name);
64 if (it != otherParams.end())
Adapted from code found on http://stackoverflow.com/questions/180947/base64-decode-snippet-in-c Origi...
boost::multiprecision::number< boost::multiprecision::cpp_int_backend<>> bigint
std::hash for asio::adress
std::function< std::pair< bool, bytes >(bytesConstRef _in)> PrecompiledExecutor
bytes fromHex(std::string const &_s, WhenError _throw=WhenError::DontThrow)
boost::multiprecision::number< boost::multiprecision::cpp_int_backend< 256, 256, boost::multiprecision::unsigned_magnitude, boost::multiprecision::unchecked, void >> u256
u256 u256Param(std::string const &_name) const
Convenience method to get an otherParam as a u256 int.
uint8_t const size_t const size