39
votes
What caused this error: Attempting to run transaction which calls a contract function, but recipient address is not a contract address
i´ve just used migrate --reset (without deleting /build) , and worked
31
votes
Accepted
What caused this error: Attempting to run transaction which calls a contract function, but recipient address is not a contract address
As provided in comments by Mavlarn and ivicaa above, the answer is to delete the .json files under build/contracts/. Then the next run of truffle migrate no longer fails.
16
votes
Accepted
How to get pending transactions with using geth or other client?
To get the pending transactions you need a node that you're running on your own because this type of action requires a lot of resources.
You can run your own Geth node and wait until it is ...
12
votes
Accepted
Can chaindata be split across two (or more) locations?
Geth has a freezer as of v1.9 https://blog.ethereum.org/2019/07/10/geth-v1-9-0/
Freezer
Wouldn’t it be amazing if we didn’t have to waste so much precious
space on our expensive and sensitive SSDs to ...
eth♦
- 86.5k
11
votes
How do Ethereum clients generate unique addresses?
I think the most important phrase in your question is 'what is the likelihood'.
The other answers are correct in determining that there is a 1 in 2^160 likelihood of finding a collision with 100% ...
9
votes
How to experiment with Ethereum without downloading the entire blockchain?
Creating a local in-memory blockchain (Ganache) with Brownie is recommended way for development.
Besides Browser Solidity (as @Rob Hitchens recommended), you could also develop smart contracts using ...
8
votes
Accepted
Consensus Client vs Execution Client
The Execution Client listens and executes transactions and maintains the latest state and database of all Ethereum data, while the Consensus Client provides consensus (using PoS algorithm) from ...
7
votes
Accepted
How to switch from Morden to Ropsten?
Using Geth 1.5.3 and later, it's 2 steps:
Run geth --testnet removedb to delete your blockchain database for the Morden network.
Run geth --testnet
ORIGINAL:
When you use geth init, the datadir ...
eth♦
- 86.5k
6
votes
Accepted
Is there any working zk-snark implementation (even if experimental) among the existing Ethereum clients?
Please find the zksnarks solidity code:
https://gist.github.com/chriseth/f9be9d9391efc5beb9704255a8e2989d
The transaction can be seen on Etherscan and was made on the testnet.
5
votes
Which database(s) do the ethereum clients use and why?
Parity is using RocksDB as it's database.
From reading here it seems the reason for choosing it was performance. Faster than LevelDB in their tests.
Lately though they have hit some performance ...
5
votes
Accepted
Generate contract address using nonce
Others can add other answers, but pyethereum is still active and this type code doesn't change:
def mk_contract_address(sender, nonce):
return sha3(rlp.encode([normalize_address(sender), nonce]))[...
eth♦
- 86.5k
5
votes
How to experiment with Ethereum without downloading the entire blockchain?
You can connect to a remote ethereum node such as INFURA, using the JSON RPC API, so you won't need to worry about maintaining and synchronizing a local node.
You can see this guide about using ...
5
votes
Will a smart contract get deleted once Geth's console is closed?
No. A deployed contract on a blockchain does not get deleted when Geth's console is closed.
Restarting the Geth Javascript console requires variables, like greeter, to be re-initialized because the ...
eth♦
- 86.5k
5
votes
Accepted
Writing contracts without fully syncing blockchain
If you want to start coding smart contract this is a quite smooth environment to set up:
Use Remix online IDE for coding and link it with your local node
Download testRPC on your PC and run a local ...
4
votes
Is there any working zk-snark implementation (even if experimental) among the existing Ethereum clients?
My answer is a fairly dumb one, as I've only had a look around in the code, and I haven't looked into zk-SNARKs properly yet, so apologies in advance if it's no help.
The cpp-ethereum implementation ...
4
votes
How to experiment with Ethereum without downloading the entire blockchain?
You can work with Browser Solidity. It let's you experiment with Smart Contracts, compile them, run them and debug them using an in-memory execution environment (default), or the real thing. https://...
4
votes
How do you stop a running geth node?
Simply use
pkill -INT geth
which will reuslt in the same as pressing CTRL-C in geth console:
...
INFO [01-13|12:17:53] Imported new chain segment...
INFO [01-13|12:17:57] Got interrupt, shutting ...
4
votes
Accepted
Trace transaction with Go client
Transaction tracing is not exposed via ethclient. You must connect over the regular rpc and invoke it as a regular call.
The reasoning for that is given here.
4
votes
Will Eth 2.0 be implemented in geth (go-ethereum) or will it run on a new client?
Ethereum 2.0 is already being implemented according to the current specification by the teams mentioned in the Coindesk article.
Some of the implementations are:
prysm by PrysmaticLabs, as far as I ...
4
votes
Will Eth 2.0 be implemented in geth (go-ethereum) or will it run on a new client?
Ethereum 2.0 will be much different from the legacy Ethereum.
ETH1
In 2015, Ethereum launched with 3 official clients funded by the Ethereum Foundation.
Go-Ethereum (Geth)
C++-Ethereum (Eth)
...
4
votes
Accepted
Differences between Quorum and Pantheon
There are 2 main differences:
Besu is a more generic client that support Ethereum mainnet and is written in Java
Quorum is a fork of geth (go-ethereum, the most used client for ethereum). It does ...
4
votes
Accepted
Run Execution Client without Consensus Client
You need to run both: a consensus layer (CL) client with an execution layer (EL) client, because EL clients like Geth, do not have consensus implemented. Currently, EL clients do not know directly ...
eth♦
- 86.5k
3
votes
How to switch from Morden to Ropsten?
In your second call there is a space between -- and datadir, so probably you are running geth with the wrong data directory and therefore you are using the wrong genesis block. Try running
geth --...
3
votes
Accepted
How to manually switch Mist to Ropsten?
You need to use the correct relative path or absolute path for your genesis JSON file.
Relative path would be:
geth --datadir ./Library/Ethereum/testnet init ./Library/Ethereum/testnet/...
3
votes
Generate contract address using nonce
In golang, use ethereum/go-ethereum/crypto.CreateAddress.
func CreateAddress(creator common.Address, nonce uint64) common.Address
3
votes
How do Ethereum clients generate unique addresses?
Ethereum uses addresses that are 160 bits long. The chance that any one address is the same as any other given address is therefore 1 in 2^160. However, due to the birthday paradox the chance that a ...
3
votes
Writing contracts without fully syncing blockchain
Sure, use https://www.myetherwallet.com/#contracts to deploy a contract and use online solidity to write it and compile: https://ethereum.github.io/browser-solidity/
3
votes
Accepted
Why don't wallets use web-based APIs instead of downloading entire blockchain?
As mentioned by others, the problem with APIs is that they are centralized sources of information. This basically eliminates the single most important value-proposition of the blockchain. This is, ...
3
votes
Accepted
Why is the Rinkeby testnet only available when using geth and Kovan only available when using Parity?
Both Rinkeby and Kovan are "Proof of Authority" (PoA) networks - unlike the Mainnet which is a Proof of Work, consensus, network.
The Kovan PoA consensus algorithm was created by the Parity team and ...
3
votes
Accepted
How ethereum nodes sync with each other?
Currently, when a user submits a transaction that transaction is then sent to all their peers, which in turn send it to all their peers, etc. Within seconds every active full node in the Ethereum ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
clients × 153go-ethereum × 46
blockchain × 16
nodes × 16
light-clients × 12
synchronization × 10
openethereum × 10
consensus × 9
network × 9
web3js × 8
json-rpc × 8
mining × 7
testnets × 7
cpp-ethereum × 7
solidity × 5
wallets × 5
mist × 5
proof-of-stake × 5
protocol × 5
validators × 5
transactions × 4
private-blockchain × 4
ethereum-wallet-dapp × 4
dapp-development × 4
evm × 4