Most Popular

1500 questions
11
votes
4 answers

What does it mean that the next DAG is in X days?

Before you jump all over this a duplicate question. I did read things related to DAG like here: What actually is a DAG? But that doesn't answer my question, what does it mean when my mining pool website says that the next DAG is in X (4 in my case)…
Serj Sagan
  • 429
  • 1
  • 6
  • 14
11
votes
2 answers

I bought ether in the presale. Is there a time limit to claim that ether?

There is no mention in the documentation about whether I have to claim ether before a particular date. Is there a time-limit on claiming ether? I've also heard that the mining algorithm will change at some point. Are my ether safe in the presale…
Ethan Wilding
  • 4,821
  • 7
  • 24
  • 31
11
votes
2 answers

Large contract (bytecode >= 45K) causes out-of-gas on deploy

I need some advice about handling a large contract. At a certain size it causes an out-of-gas error when I deploy to a local testrpc node. I experience this when the bytecode reaches approximately 45K. I have temporarily solved the issue by…
Raine Revere
  • 3,600
  • 2
  • 23
  • 34
11
votes
1 answer

Getting Tx is not a constructor when executing this program

Here is my code. I am trying to send ether from one account to another. var Tx = require('ethereumjs-tx') const Web3 = require('web3') const web3 = new Web3('https://ropsten.infura.io/v3/1ac73a4112ab456cb5bdd3ac33e4fe82') const account1 =…
Atul Anand
  • 147
  • 1
  • 5
11
votes
3 answers

How to prevent a replay attack between two competing chains?

After the recent hardfork we have a winning chain and a much shorter losing chain left. However, if you are pro or agains the fork, you could still mine and use one chain or the other. Now, there is an issue. Let's assume I'm on the non-fork chain…
q9f
  • 32,913
  • 47
  • 156
  • 395
11
votes
2 answers

Why isn't Ethereum Frontier a "safe" platform?

On the Ethereum homepage, underneath the Ethereum Frontier header, there's a tag line which reads "A safe decentralized software platform", but with the word "safe" crossed out. Is this simply because Frontier is an early-release version, and…
Richard Horrocks
  • 37,835
  • 13
  • 87
  • 144
11
votes
3 answers

What are the major risks of Ethereum moving to Proof of Stake?

There has been discussion about the motivations and benefits of moving to Proof of Stake. For a risk-benefit analysis of moving to Proof of Stake, what are the major risks?
eth
  • 85,679
  • 53
  • 285
  • 406
11
votes
3 answers

Why creating a private variable and a getter instead of just creating a public variable in solidity?

I want to implement a contract like the ERC20Detailed.sol example from open Zeppelin: My question: why setting a private variable and then, creating a getter for the same variable when the solidity compiler can automatically create the getter for a…
jfjobidon
  • 763
  • 2
  • 11
  • 25
11
votes
2 answers

Collecting ERC20 balances from multiple addresses?

I'm building a dApp that involves creating unique accounts for individual users for ERC20 deposits [I keep the addresses and private keys in a centralized database], for popular ERC20 tokens like BNB, 0x, etc. However, to function, my dApp needs to…
king_geedorah
  • 167
  • 1
  • 7
11
votes
2 answers

In Solidity, how does the slot assignation work for storage variables when there's inheritance?

In a simple solidity contract, without inheritance, storage variables get assigned sequentially starting from slot 0. But in case of inheritance, the inherited variables appear before or afterwards?
matta
  • 351
  • 2
  • 8
11
votes
1 answer

Why does Ethereum require use of UDP (and not TCP) for discovery?

I am aware of the advantages of UDP, but why not allow a choice? Since since Tor requires the use of TCP, why have Ethereum developers elected not to support TCP for discovery?
Sam
  • 368
  • 2
  • 8
11
votes
2 answers

Does Ethereum have a replace by fee option similar to Bitcoin?

If I send an Ethereum transaction that has not yet been confirmed by the network can I rebroadcast the same transaction with a higher fee and a new destination address?
Hans Meyer
  • 213
  • 1
  • 5
11
votes
4 answers

Error: Cannot find module 'truffle-hdwallet-provider'

I got the following errors while trying to deploy my smart contract: sers-Air:lottery user$ node deploy.js internal/modules/cjs/loader.js:582 throw err; ^ Error: Cannot find module 'truffle-hdwallet-provider' at…
Damian
  • 123
  • 1
  • 1
  • 7
11
votes
5 answers

BNF grammar definition for Solidity

I scoured the Mix and Solidity repos for something like a formal definition of the language's grammar, so that one may generate parsers using tools like GrammarKit, but couldn't find anything. Any pointers?
mxk
  • 243
  • 1
  • 6
11
votes
1 answer

Is the LogsBloom in the block header the same as the Bloom filter in the Transaction Receipts Trie?

Reading the yellow paper, I'm attempting to understand the difference between the Hb and Rb values - they appear to be the same thing, unless I've missed something. Is the LogsBloom in the block header, Hb , the same as the Bloom filter in the…
Lee
  • 8,548
  • 6
  • 46
  • 80