Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [go-ethereum]

Go Ethereum (short: Geth) is a Golang implementation of the Ethereum protocol.

0
votes
0answers
3 views

Is it okay to define the following smart contract that a accepts funds from two parties?

I want to deploy a smart contract that receive funds from two parties. The contract is initialized with some ethers from person (call it revealer), and another Recipient (name it fineRecipient) who ...
0
votes
0answers
2 views

Deploying large contract (bytecode = ~31k) in genesis.json causes genesis.json to be ignored

I am deploying a private blockchain and currently I can set "gasLimit": "0xE00000000" in my genesis.json and when I run eth.getBlock("latest") I see the proper gas limit and other settings. However, ...
0
votes
0answers
6 views

Ethereum web3 Browser Only functions

Two of the functions of web3 - web3.eth.accounts.wallet.load - web3.eth.accounts.wallet.save Mentioned in the Doc of web3, these are browser only functions. Already tried to test these function ...
2
votes
1answer
13 views

the Constantinople upgrade activates at Block #7280000

Should I upgrade to the latest go-etherum before the Constantinople upgrade activates at Block #7280000? If I do not upgrade, will it affect my node to do transactions?
1
vote
1answer
26 views

Is it possible to call a payable function within __callback of Oraclize?

I want to run an Oracle query periodically and my idea was to call getUTCTimestamp(0) for the first query where getUTCTimestamp is: function getUTCTimestamp(uint256 delay) payable { oraclize_query(...
1
vote
1answer
10 views

Geth Proof of Authority Implementation

I have implemented PoA on private blockchain with following genesis.json. { "config": { "chainId": 1515, "homesteadBlock": 1, "eip150Block": 2, "eip150Hash": "...
1
vote
0answers
7 views

Need help on ethstats app for private net

have anyone used the --ethstats for private net? I am trying to use it but I see below in the geth logs Stats server unreachable err="websocket.Dial ws://host:port/api: unexpected EOF" Stats ...
0
votes
1answer
9 views

Getting Fatal: Error starting protocol stack: Genesis not found in chain

I am getting the following error in one of the nodes, I have a quorum network running. Fatal: Error starting protocol stack: Genesis not found in chain DEBUG[02-19|08:37:08] FS scan times ...
0
votes
1answer
17 views

I am following Ethereum Book, but I am getting errors in the Terminal

I am learning Ethereum Development from the Ethereum Book by Andreas. I have stumbled on the first error trying to do $ cargo install . I will post the instructions as an image and the errors I got. ...
0
votes
0answers
11 views

How to properly stop and restart docker for geth node?

I am trying to run geth testnet(ropsten) node using docker container. At first, it runs find, but when I stop and restart the container, I got bunch of warning like WARN [02-19|04:01:19.459] ...
0
votes
1answer
15 views

Block header hash calculation [duplicate]

What inputs go into the RLP and Keccak function to calculate the block header hash? I looked up the header struct. Which of those values are fed into the RLP, Keccak? Were nonce and mixed hash left ...
0
votes
0answers
35 views

I can't get ERC20 token sweep from a contract to work

I wrote this contract below that would create a factory contract which generates user deposit addresses. the user addresses would forward any deposit to the authorized caller on the factory contract, ...
0
votes
1answer
17 views

How to run a contract in specific time? [duplicate]

I am developing a simple application that should work only in a specific time, lets say between 0800 hrs and 1600 hours. How can I do it. That means. The contract should start by itself at 0800 and ...
0
votes
0answers
9 views

New account geth [duplicate]

Is there a way to generate a new account with ether in a private chain. Or is possible to add new ether to a existing account?
0
votes
1answer
21 views

Balance always 0

I synced my node and still the balance of my account "0x296A36E8E5A164FB91c96CBDFA7E92dCdA29805C" keeps returning 0. The block that my transaction was made is 7227432 and the block I am currently on ...
0
votes
0answers
16 views

Is it dangerous for my geth node to accept connections from random IP addresses?

I am running a geth node with a number of RPC and WS options available. In looking at the logs, I am seeing attempted connections from random IP addresses. They look as follows: TRACE[02-17|22:19:32....
1
vote
0answers
9 views

How the following scenario be achieved using smart contracts?

Assuming we have two parties (A & B). How the following scenario be achieved using smart contracts? User A will deposit some funds (x coins). user A can receive penalty funds from user B, So user ...
0
votes
0answers
8 views

Question about private node

I got a node and updated it. When I run the command eth.sincyng it returns false. But the last block of ethereum is in 7232187 and mine is EXTREMELY slow when it arrives at 3885549. What can it be? ...
0
votes
0answers
10 views

Where is Geth's log of Json RPC requests stored?

Is there a feature that I can use to check the log of JSON-RPC requests such as account creation, balance inquiry, transfer, etc. with my Ethereum node? Is there a way to save the log if it does not ...
1
vote
0answers
25 views

Web3 Version refuses to update

The official documentation of web3.js has this little commented statement saying: // in node.js use: const Web3 = require('web3'); (you can find it here: https://web3js.readthedocs.io/en/1.0/getting-...
1
vote
0answers
11 views

Why i cant see my balance in geth [duplicate]

I used that command for install my node geth console --rinkeby --datadir=~/.gophersland_ethereum_r1 --port=30304 --cache=6048 --rpc --rpcport=8546 --rpcapi=eth,web3,net,personal syncmode=fast After ...
0
votes
0answers
19 views

Proper number of confirmations in a small testnet

In a private blockchain with just 4 miners, what should be the proper number of confirmations? 24 is by default, but does it make sense? should it be just 4 (one per miner)?
0
votes
0answers
21 views

Modify number of confirmations

By default there are 24 confirmations but I am running a testnet with just 3 miners and I would like to change this number bucause it makes not sense to have 24. I have been checking ...
0
votes
1answer
21 views

truffle migrate not working

every time I enter truffle migrate command in the terminal it doesn't does anything but takes some time and nothing happens after that. I am using Truffle version 5.0.4
0
votes
0answers
7 views

net.peerCount always 1

I've setup a couple of Main Network nodes on AWS and, for some odd reason, my net.peerCount never increases over 1. There are also periods when it falls down to 0 and the node lags behind. This is ...
0
votes
1answer
20 views

Etherscan “Write Contract” Tab - what is it for?

What is the purpose of the Write Contract Tab in Etherscan? For example, if you look up the QTUM Token Contract on Etherscan (https://bit.ly/2IsddkT) and then tap on the Write Contract TAB, you have ...
1
vote
1answer
21 views

Is it possible to delete a completed transaction from your wallet history?

Is it possible to get rid of a completed transaction?
1
vote
0answers
15 views

Geth crashes, “missing trie node”, rlp: expected List

I am struggling with failing geth with my Dapp. I got an error like this: Web3 UnhandledPromiseRejectionWarning: Error: Returned error: missing trie node ...
0
votes
1answer
11 views

tokens within tokens in ERC20

I want to make a token on ERC20 and that would be staked, and other token would be rewarded as on interest earn. After certain time, that earned token being staked, and third token will came out as on ...
0
votes
0answers
17 views

Geth not download certain block number

I'm running a testnet geth node in fastmode and I have a worker that will check the transaction data in the blocks. However, I noticed that geth jumped from block 4990417 to 4990429, skipping the ...
0
votes
0answers
16 views

Header broke chain ancestry, Synchronisation failed, dropping peer & retrieved hash chain is invalid

System information Geth version: Geth Version: 1.8.22-stable Git Commit: 7fa3509e2eaf1a4ebc12344590e5699406690f15 Architecture: arm Protocol Versions: [63 62] Network Id: 1 Go Version: go1.11.5 ...
0
votes
2answers
26 views

What are differences between bitcoin and etherum trancactions?

I have read about how transactions work and how they can be redeemed in bitcoin. In a very abstract way, the sender defines the output script that should redeem the transaction. But I am new to ...
1
vote
1answer
14 views

How to run geth for ropsten and mainnet in a same server?

Is it possible to run geth for ropsten and mainnet in a same server if I changed all the port for Ropsten node trying not to conflict the ports used in mainnet? For example, geth --rpcport 8546 --...
0
votes
0answers
3 views

showing unknown command “API.HTTP”

For configuring CORS in IPFS config i executed command ipfs config --json API.HTTP Headers.Access-Control-Allow-Methods "[\"PUT\", \"POST\", \"GET\"]" but it giving error unknown command "API.HTTP". ...
-3
votes
0answers
17 views

What is the method of secret key storage of Metamask

Can any one explain the method of secret key storage of Metamask, especially from security perspective. Specifying file name and line number of source code of the secret key storage part in metamask. ...
0
votes
0answers
11 views

Run geth in light mode on Rinkeby and Raspberry

I am trying to run geth --light --cache 64 --rinkeby but it stucks on INFO [02-12|08:58:16] IPC endpoint opened: /home/pi/.ethereum/rinkeby/geth.ipc. I am using geth on a Raspberry. The full output ...
0
votes
2answers
23 views

Parity node is slow in syncing ethereum Ropsten net

I'm using a parity node for the purpose of checking transactions, address balances and generate new addresses via the RPC interface. I noticed lately that the balance of the addresses are not updated ...
0
votes
0answers
10 views

Understanding web3.eth.subscribe('newBlockHeaders')

I am running two nodes in a testnet. Node1 = miner and Node2 = peer of Node1 I suscribe to both nodes with web3.eth.subscribe('newBlockHeaders') since I want to obtain when a block with a ...
2
votes
0answers
13 views

Wastage with shorter block time and how it is handled

Comparing to Bitcoin, Ethereum has much shorter block time. It is stated that Bitcoin has 10 minutes set to make least amount of wastage https://bitcoin.stackexchange.com/questions/1863/why-was-the-...
0
votes
0answers
13 views

Geth syncing fast Ropsten too long delays between importing new segments

i have a problem with my Geth Ropsten node. Time between importing new segments of chain is too long. For example logs from my docker container below geth-testnet_1_6d184080c9e1 | INFO [02-11|13:30:...
0
votes
1answer
16 views

Real estate ionic application using blockchain and smart contract [closed]

I made a real estate application using ionic. Now I want to know how a real estate property contract will work under smart contract and how. Can someone please guide me with the whole process and the ...
0
votes
0answers
10 views

How to set sealers in extradata genesis block in PoA?

Which is the sintaxis to set up the sealers in extradata field? This is an example: "extraData": "...
0
votes
0answers
11 views

Pre Byzantium Transaction Status [duplicate]

How should I find the status of transaction(success/failed) that happened pre Byzantium in the Blockchain?
1
vote
0answers
20 views

Problem with more than one light node peer connection

I have the following nodes running : FULL NODE and LIGHT SERVER geth --datadir node1 --port 30303 --rpc --rpcport 3003 --rpcaddr 127.0.0.1 --ipcpath node1/geth.ipc --rpcapi="db,eth,net,web3,personal"...
0
votes
0answers
16 views

eth.getCode() always returns “0x”

I want to distinguish between contract addresses and smart contract addresses. But when running web3.eth.getCode() in the geth console with either a contract or a non-contract address, it returns "...
0
votes
1answer
12 views

Light node cannot connect peers

I am running a full node in a testnet and I am trying to connect a light node. I am using the following command: geth --datadir node1 --port 30313 --rpc --rpcport 3013 --rpcaddr 127.0.0.1 --ipcpath ...
0
votes
0answers
15 views

State verification during full sync

How does the state verification work when doing a full sync from scratch? Does the state get generated locally for each block using the transactions downloaded (in the transaction trie) and then ...
0
votes
1answer
26 views

Private Ethereum nodes crash after 2-3 hours

Some background: I setup private Ethereum nodes on my local docker system and built some modules that use the web3 Ethereum client to exercise these nodes. I've been testing on it for the last 3-4 ...
1
vote
0answers
21 views

What are the Minimum Requirements for a Quroum node?

I am planning to run a Quorum (Ethereum fork) blockchain on my business. I was wondering if quorum node will run on a Raspberry Pi 3 Model B+. Raspberri Specs: Broadcom BCM2837B0, Cortex-A53 (ARMv8)...
0
votes
1answer
24 views

Is the following scenario doable by a smart contract?

I have 2 persons ( say A or B). They want to have the following agreement. Person ‘A’ specify a deposit (x coins ) for user ‘B’ under a certain condition with a future time lock ‘t’. If user ‘B’ ...