Hot answers tagged

2

This question is a continuation from: How to setup ethereum to work on gpus for complex smart contract execution? As I tried clarifying already in the linked question but let me try to explain a bit differently: 1) The clients (Geth, Parity) are not running inside the blockchain. They only implement the blockchain functionality and provide access to the ...


1

If exponent is integer (I assume exponent is time in seconds, right?), then I would recommend you to use this function from ABDK Math 64.64: https://github.com/abdk-consulting/abdk-libraries-solidity/blob/master/ABDKMath64x64.sol#L327


1

You have to pay some gas for every byte in data field of a transaction. After Istanbul fork new cost are given in EIP 2028 16 gas a non-zero byte (it was 68 gas) 4 gas a zero byte (it didn't change) So if your addresses have a zero byte the transaction will be 12 gas cheaper.


1

Let's clarify some concepts first. 1) Ethereum is not a powerful execution environment. In fact it's a very inefficient one and it's not meant for any real computations. This applies directly to also smart contracts. 2) Ethereum is not meant for any sort of mass computing, be it however trivial. Computations are expensive (gas costs). Ethereum is much ...


1

Using remix.ethereum.org, here is an example that can help. The input, which is the same as calldata, is 0x29ae811475944220b52381f169021a7c3f2947dfd0d2b1fb95e6cd92358e0a7997c8a9a1000000000000000000000000000000000000000000000000000000000000000f. (This is calling file( 0x75944220b52381f169021a7c3f2947dfd0d2b1fb95e6cd92358e0a7997c8a9a1, 15)) calldataload is ...


Only top voted, non community-wiki answers of a minimum length are eligible