Most Popular
1500 questions
11
votes
1 answer
Ethash vs Equihash in terms of memory hardness?
Ethereum's Ethash was designed to be memory hard with the intention of making the mining process ASIC-resistant. Zcash's Equihash algorithm also promises the same. How do these two PoW systems compare to each other?
Note: I'm not looking for a…
galahad
- 3,920
- 3
- 26
- 66
11
votes
1 answer
What are some proposed ways of storing data in Ethereum?
I keep reading that swarm or ipfs would be used for storage, but how would that work exactly? Would an ethereum contract store its data in these data blockchains? I thought ethereum smart contracts can't write to an external source but only read…
Patoshi パトシ
- 4,800
- 7
- 45
- 93
10
votes
7 answers
Failed to deploy to Graph node: Ethereum network not supported by registrar: mainnet
I followed this tutorial on the graph document: https://thegraph.com/docs/quick-start#local-development
However, I got an error message after I run yarn deploy-local.
Failed to deploy to Graph node http://127.0.0.1:8020/: Ethereum network not…
user76333
- 167
- 2
- 15
10
votes
3 answers
Commit-Reveal contract still vulnerable to front running. How can it be improved?
I'm writing a contract and I want to shield it from front-running as best as it can possible be done (obviously, fully preventing front running would be ideal). My implementation is very similar to the Raffle implementation from @Ismael here so I…
HQST
- 103
- 4
10
votes
1 answer
geth keeps opening & re-opening in background (OSX 10.10.5)
Issue started after installing cpp-ethereum & updating geth to 1.3.3. Geth continually re-opens in the background after being forced to shut down. When I try and run geth in terminal, I receive the following error:
Fatal: Error starting Ethereum:…
Josh Stark
- 1,094
- 2
- 9
- 18
10
votes
3 answers
What are the costs of using Chainlink to generate a random number using VRF?
I'm doing some research about generating true randomness on the Ethereum blockchain.
Of course I came across Chainlink and its VRF solution.
Although there are many tutorials around, some from chainlink themselves, there is no easily available…
sigmaxf
- 1,080
- 2
- 13
- 21
10
votes
1 answer
Configure Truffle Compiler: Default Import Folder
I want to use an external library. I guess it is good to load the library in production from a CDN because this requires less space and should be faster.
import "github.com/Arachnid/solidity-stringutils/strings.sol";
But in dev this library cannot…
Andi Giga
- 439
- 4
- 15
10
votes
1 answer
How can non-javascript applications communicate with Ethereum nodes?
Web3 implements the Ethereum JSON-RPC spec and seems to be the preferred method for communicating between a javascript applications and the Ethereum node. However there are situations where you might want a non javascript based application to…
JackWinters
- 3,413
- 2
- 17
- 29
10
votes
3 answers
Revert reason for arithmetic overflows in Solidity v0.8
function nice(uint8 x) public returns(uint8 z) {
uint8 z = 0;
z = z + 240;
require(z = z + x, "overflow");
}
I have been using this code with Solidity prior to the 0.8 update. If there was an overflow, the transaction would get reverted…
Nika Kurashvili
- 1,175
- 1
- 10
- 25
10
votes
1 answer
How do I find out how big the chain structure is for a particular block?
I'm downloading the blockchain from scratch, and it's been stuck at 2442432 for a couple of hours now.
The chain structure keeps on downloading though. Is there a way to find out how much of that is left before the blocks continue?
radekradekradek
- 103
- 1
- 5
10
votes
4 answers
Passing constructor arguments while deploying contract from byte code
I am trying to deploy a contract via MyEtherWallet from byte code generated by browser-solidity. I unlocked my wallet using private key,but I didn't find any way of passing parameters to contract's constructor. How can I do that?
This makes me doubt…
Prashant Prabhakar Singh
- 8,026
- 5
- 40
- 79
10
votes
1 answer
What is the value of "address(this)" when delegate calling?
Suppose that you have an upgradeable proxy "Foo" that calls an implementation contract "Bar" via DELEGATECALL.
In "Bar", there is a function that uses the Solidity syntax address(this) to retrieve the address of the current contract.
What is the…
Paul Razvan Berg
- 17,902
- 6
- 73
- 143
10
votes
1 answer
On Ethereum 2.0 PoS, how/when are new coins minted?
In Ethereum "1.0", new coins are minted as reward for the miners. I understand from multiple sources (eg: academy.binance.com) that this won't be the case with Ethereum 2.0:
When a node gets chosen to forge the next block, it will check if the…
Dr. Gianluigi Zane Zanettini
- 133
- 10
10
votes
3 answers
Flash loan security considerations and attacks
What do developers need to be aware of to make their contracts and systems safe against flash loans?
What do they have to think about and protect against?
eth
- 85,679
- 53
- 285
- 406
10
votes
2 answers
Which Ethereum accounts have the most Ether?
Where can someone get a list of all the ethereum accounts and sort it by the # of ether they have?
Patoshi パトシ
- 4,800
- 7
- 45
- 93