Most Popular

1500 questions
17
votes
2 answers

During a 51% attack, What Can the Attacker Actually Accomplish?

During an attack on the network, where the attacker has more than 51% of hashing power (or the equivalent of Ether in PoS), what can the attacker do and not do to the chain and the contracts on it? It is my understanding that they can't fake your…
HodlDwon
  • 927
  • 12
  • 35
17
votes
3 answers

Why doesn't my Ethereum node have any peers?

I'm running an Ethereum node using geth and it can't find any peers. I've already tried the time sync command suggested on the wiki. My bandwidth is good.
paulmorriss
  • 2,559
  • 3
  • 17
  • 24
17
votes
1 answer

What does it mean to "run code on the blockchain"? Wouldn't blockchain become huge?

More technically speaking, what does it mean to "run code on the blockchain"? Does it mean that we store the source code and then every full node runs that source code several times? If, for Bitcoin, which merely stores transactions, there is…
MaiaVictor
  • 3,177
  • 2
  • 17
  • 37
17
votes
2 answers

How was the name "Ethereum" chosen?

How was the name "Ethereum" chosen? Is there a meaning or story behind it? Did Vitalik Buterin choose it or did someone else?
cindy smith
  • 393
  • 2
  • 9
17
votes
2 answers

How much faster is it to sync with --jitvm?

geth help has: VIRTUAL MACHINE OPTIONS: --jitvm Enable the JIT VM The impact of --jitvm has been unanswered and I'm looking for answers to these 3 specifically: How much faster is geth --fast --jitvm than just geth --fast? How much faster is…
eth
  • 85,679
  • 53
  • 285
  • 406
17
votes
1 answer

Can Ethereum be pruned to the extent that it could be run from a Raspberry Pi?

What are the limits to how much the ETH blockchain can be pruned. Will ETH ever be practical on devices with limited resources such as a Raspberry Pi, Android or iOS wallet?
guesswhoiam
  • 363
  • 1
  • 5
17
votes
2 answers

Does metamask store private key on server or anywhere else?

I have created my private key using myetherwallet using offline option. Now Metamask allows us to import account by providing private key or Json File that has private key. Does metamask store that private key on its server? or somewhere else?…
LP13
  • 333
  • 1
  • 2
  • 5
17
votes
5 answers

What is the best way to get the JSON ABI after deploying a contract with Truffle to Ganache or Kovan?

Remix makes it so easy to get the JSON ABI. Does anyone have any recommendation on how best to get the JSON ABI after successfully deploying a contract using Truffle without having to leverage Remix?
wardsback
  • 399
  • 1
  • 5
  • 12
17
votes
3 answers

What are effective and secure ways of shuffling a deck of cards in a contract?

We want to write a card game in Ethereum. What are effective and secure ways of shuffling a deck of cards in a contract, and dealing them to players? It needs to be done in a way so that no one can determine each other's cards and what the…
eth
  • 85,679
  • 53
  • 285
  • 406
17
votes
4 answers

My C: drive in my WINDOWS PC is almost full. How can I change both geth and Mist path to relocate my blockchain files?

I read here somewhere that I have to execute geth --datadir "NEW PATH". But this solution: 1) Doesn't work in a permanent way for me (it will actually point geth in that direction but if I after execute geth -help it will show the old path). 2)…
Gonzo
  • 173
  • 1
  • 1
  • 6
17
votes
4 answers

What is the purpose of giving name to return variables in function declaration?

How is this : function myFunc() returns(uint a){} different from this: function myFunc() returns(uint){}
Kashish Khullar
  • 1,563
  • 3
  • 14
  • 26
17
votes
2 answers

Filters: what's "latest" and "pending"?

I want to monitor accounts for incoming transactions (RPC/IPC API) and call a function whenever any one of a number of monitored accounts receives ether which is "confirmed", as in, "sufficiently many blocks ago that the chances of double-spending…
spraff
  • 645
  • 1
  • 10
  • 22
17
votes
2 answers

Detect if web3 provider has successfully connected

I am connecting to local node from browser like: web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545")); If there is no node running at localhost, I see an error in browser console: Error: Invalid JSON RPC response: "" Is there…
hohoho
  • 293
  • 1
  • 2
  • 10
17
votes
3 answers

How to initialize an empty array inside a struct?

Is there a mistake in the way I initialize Bar b in the function foobar? contract Foo { struct Bar { address owner; uint[] x; } Bar[] public bars; function foobar(address a) public { Bar storage b = Bar(a,…
Manan Mehta
  • 350
  • 1
  • 2
  • 9
17
votes
2 answers

Where does the consumed ether/gas go?

I'm a bit new to ethereum and I'm finding it a bit difficult to understand how gas and Ether relate. So every call we do to a smart contract costs gas. Where does the gas that the user pay goes to? Does it evaporate, or is it credited to some other…
sfrj
  • 782
  • 1
  • 8
  • 12