Most Popular

1500 questions
13
votes
1 answer

Gas consumption of a view public function

In my contract I have a view public function that returns an array of bytes32 elements. In remix it produces a warning saying it might run out of block gas limit if I use this function. As I had read when a function doesn't make state changes you…
kathi
  • 199
  • 1
  • 11
13
votes
2 answers

What is eWASM and why is it the direction for the next version of the EVM?

eWASM was first proposed in EIP 48 with performance advantages over the EVM. Are there other advantages since the EIP was written in 2015? The initial benchmarks are also gone and are there any current benchmarks that show how much faster eWASM is…
eth
  • 85,679
  • 53
  • 285
  • 406
13
votes
1 answer

What does address(0) mean?

Referring to this link: https://theethereum.wiki/w/index.php/ERC20_Token_Standard looking at the last contract. (Line 130) function totalSupply() public constant returns (uint) { return _totalSupply - balances[address(0)]; } Why do we use…
s k
  • 886
  • 1
  • 10
  • 22
13
votes
5 answers

What is the shortest bytecode that will publish a contract with non-zero bytecode?

Yes, it's golf. So sue me. Rules The response to getCode() should have some characters that aren’t either 0 or x. To test it out, you can use the following with a local testrpc: web3.eth.sendTransaction({data:'BYTECODE',…
maurelian
  • 3,211
  • 2
  • 16
  • 34
13
votes
1 answer

Out of gas during contract creation

A few days ago, several attempts at creating a contract failed with out of gas errors (confirmed by etherscan/ethercamp and getBalance API), however it is not clear to me what failed exactly, and how it can be diagnosed. Not enough gas for 'No gas…
fair glu
  • 365
  • 2
  • 8
13
votes
7 answers

Where can I find ERC20 token faucets for testing?

I want to use the Ethereum test network to test token transfers and such, but I can't find any token faucet or anything like it so I can't try out things. Google didn't show anything, only Ethereum faucets. If anyone can point me in the right…
Victor
  • 443
  • 2
  • 5
  • 17
13
votes
1 answer

Setting the initial balance of an account in ganache-cli

How can I set the initial balance of an account when launching ganache-cli (aka testrpc)? There's nothing in ganache-cli --help to indicate that this is possible. However, when I launch ganache-cli --acctKeys=accounts.txt, I can clearly see that…
goodvibration
  • 26,003
  • 5
  • 46
  • 86
13
votes
1 answer

Why did Ethereum abandon the GHOST protocol?

It says here (minute 24) that Ethereum started with some limited implementation of GHOST, but then abandoned it two weeks after launch. Why was it abandoned?
ripper234
  • 685
  • 6
  • 17
13
votes
3 answers

Geth disk and memory performance analysis

A week ago I started a synchronization of a geth node with these parameters: --fast --cache=1024 --rpc --rpcaddr "0.0.0.0" --ws --wsaddr "0.0.0.0" --wsorigins="*" The result that I have obtained is that after a week running it has spent 69.9049 GB.…
eduadiez
  • 141
  • 1
  • 1
  • 8
13
votes
2 answers

restricting sensitive information accessible from / linked to the blockchain?

I'm currently researching the practicalities of implementing a blockchain ledger whereby the company I work for, our competitors, our clients, our clients users (who we service indirectly) and an industry regulator would all need access to some of…
13
votes
3 answers

Smart contract consensus for dummies

I've read a few other questions/answers on smart contract consensus by nodes in the network, but I still don't understand the steps. Here's how I picture it: Two parties might agree upon a smart contract, sign with their private keys Nodes…
John R.
  • 151
  • 3
13
votes
4 answers

Is it possible to include all the openzeppelin library files on Remix?

I am trying out Remix as an IDE. However, I'm using the excellent open-zeppelin library for development. Is there any way to include all the files from open-zeppelin in the build path for Remix without pasting them all in there? I have tried…
karianneberg
  • 564
  • 6
  • 15
13
votes
2 answers

Solidity vs Viper?

I am new to smart contract development and I really want to understand how it all works, and start programming smart contracts. I don't care for JavaScript syntax, but I love Python. I know Serpent is outdated, so should I learn Viper, or learn…
SK333LA
  • 131
  • 1
  • 3
13
votes
1 answer

What are the average transaction propagation times in Ethereum for reaching 50% and 95% of nodes?

What are the average transaction propagation times in Ethereum for reaching 50% and 95% of nodes? That is, once a transaction is generated on a given node, how long does it take on average to reach 50% and 95% of nodes in the Ethereum…
Paulo
  • 183
  • 8
13
votes
3 answers

How does Ethereum cope with division of prime numbers?

I have seen this question here about representing decimals in solidity, and although of course the answer is that 'msg.value' is always in Wei, this got me thinking about how Ethereum handles division of odd or prime numbers. For example if I have…
T9b
  • 1,185
  • 8
  • 21