42 u256 const& _startingBlock = 0
52 u256 const& _startingBlock = 0
61 std::function<bigint(size_t)>
m_cost;
70 explicit operator bool()
const {
return accountStartNonce !=
Invalid256; }
73 std::string sealEngineName =
"NoProof";
77 u256 maximumExtraDataSize = 1024;
78 u256 accountStartNonce = 0;
79 bool tieBreakingGas =
true;
98 u256 u256Param(std::string
const& _name)
const;
std::function< bigint(size_t)> m_cost
Adapted from code found on http://stackoverflow.com/questions/180947/base64-decode-snippet-in-c Origi...
#define function(a, b, c, d, k, s)
PrecompiledExecutor m_execute
std::pair< bool, bytes > execute(bytesConstRef _in) const
boost::multiprecision::number< boost::multiprecision::cpp_int_backend<>> bigint
std::unordered_map< std::string, std::string > otherParams
Additional parameters.
PrecompiledContract()=default
PrecompiledContract(std::function< bigint(size_t)> const &_cost, PrecompiledExecutor const &_exec, u256 const &_startingBlock=0)
std::function< std::pair< bool, bytes >(bytesConstRef _in)> PrecompiledExecutor
std::unordered_map< Address, PrecompiledContract > precompiled
Precompiled contracts as specified in the chain params.
boost::multiprecision::number< boost::multiprecision::cpp_int_backend< 256, 256, boost::multiprecision::unsigned_magnitude, boost::multiprecision::unchecked, void >> u256
u256 const & startingBlock() const
bigint cost(bytesConstRef _in) const