Questions tagged [go-ethereum]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
7 views

How to connect to Rinkeby without using Geth / Parity?

First let me explain my development environment. I am using Jupyter Notebook to play around with the Web3.py front-end code and Remix for the Solidity smart contract code. I am using the Metamask ...
0
votes
0answers
16 views

invalid JSON RPC when using custom domain name

geth --testnet --networkid 3 --syncmode "fast" --datadir "." --cache=2048 --rpc --rpcport 8545 --rpcaddr example.ropsten.hk --rpcvhosts example.ropsten.hk --rpccorsdomain "*" --rpcapi="web3,miner,...
0
votes
1answer
16 views

Quorum Nodes not syncing

I have 5 nodes with quite different block numbers( one is stuck at 201504, another at 280432 and so on) , they don't seem to be syncing. No particular error in Quorum Logs as well. Any transaction ...
3
votes
0answers
20 views

account unlock with HTTP access is forbidden [duplicate]

I am using in the geth console and there is a similar error. Do I add "--allow-insecure-unlock" when I "init a node"? personal.unlockAccount(eth.accounts1) Any suggestion would be helpful. Thank ...
1
vote
0answers
17 views

Strange points of Casper algorithm

Currently, Ethereum developers are developing Casper Algorithm for Ethereum 2.0. According to their proposal, some validator are chosen randomly but validators has permanently authority to verify ...
2
votes
1answer
22 views

Good source for TPS and transaction latency / finality for private Ethereum blockchains

I am looking for a good source / sources to compare TPS and transaction latency (How long it takes to send a transaction until it is mined) for different private blockchain solutions. Especially I am ...
0
votes
1answer
10 views

Sending ETH or Tokens from the command line to be integrated in a PHP script

I'm relatively new to using ETH on the command line. Do I use Geth or Parity? All I want to do is be able to send some ETH or Tokens from my eth private key. Which way is the best way to do it? I plan ...
0
votes
0answers
11 views

Where can I get list of peers to add to my geth node

My geth is running with peerCount=3 I want to add more peers to the node. I know using admin.peers() I can add but,from where I can get the list of responding/ good peers? Help is appreciated. ...
0
votes
1answer
21 views

getAccounts in web3 js undefined

I am working on dapp with web3js 1.0.0.37-beta with reactjs. I got blank in web3.eth.getAccounts. Following is my code App.js import React, {Component} from 'react'; import '../node_modules/...
1
vote
0answers
16 views

Cross-posted from Stack-Overflow: Using Google Cloud Key Management Service to sign an Ethereum transaction

Cross-posted from question I've been working on writing a signer service for an Ethereum transaction manager and I need to sign Ethereum transactions using Google KMS Golang APIs. I'll try and ...
0
votes
0answers
12 views

Does the use of Non-interactive zero-knowledge proof (zk-snark) will eliminate the use of (consensus algorithm e.g. work proof)?

The privacy of the blockchain transaction is a high-demand topic these days due to some application use case requiring strict privacy protection. Some of the techniques applied to blockchain ...
0
votes
0answers
15 views

Difference between git clone and add apt repository while installing ethereum [closed]

As I started to set up geth on my Ubuntu machine, I came across two different methods of doing it. One website instructed to run the command "git clone https://github.com/ethereum/go-ethereum" while ...
0
votes
2answers
19 views

Why is a failed transaction included in the blockchain as a “failed transaction”

According to this highest upvoted answer, "but still include it in the blockchain as a "failed transaction"... What is meant by the term "gas"?
0
votes
2answers
30 views

Private Ethereum Platform development with Authentication System

I have to develop a system for Univeristy which provides digital certificates. I know some approaches but stuck about which approach I should choose. The system will have (suppose 5 nodes + 1 super ...
0
votes
1answer
27 views

How can I store multiple strings mapped to an address in Smart Contract (solidity)?

I want to save multiple files in Ipfs and store its hashes mapped to an user address. I thought of having an array mapped to address and pushing to it, but does not seem to be the right approach. ...
1
vote
1answer
28 views

How do I use web3js 1.0.0 in geth 1.9.0? I want to import an account whose address, private key and passphrase I have in my geth node

I am at Geth/v1.9.0-stable-52f24617/linux-amd64/go1.11.5 web3JS version is giving : > web3.version { api: "0.20.1", ethereum: "0x2712", network: "4", node: "Geth/v1.9.0-stable-52f24617/...
1
vote
0answers
12 views

Unknown account error when initiating transactions from remote node

I am using Ropsten network and trying to transfer ether from my metamask account to my another account using geth client. I am using the methods like eth.signTransaction, eth.sendTransaction in CLI, ...
2
votes
1answer
16 views

Geth: Checkpoint challenge timed out, dropping

I get a warning in Geth that I was not able to find any information on: Checkpoint challenge timed out, dropping What does this mean?
0
votes
0answers
22 views

How to access Geth javascript console using batch file?

I am trying to create batch file for ethereum network creation process. Once the geth javascript console is opened on cmd window it wont accept any command which are written in batch file. e.g. "run....
1
vote
2answers
28 views

Can anybody Point out the Difference between Web3.eth.sendTransaction and web3.eth.signTransaction?

Do we need to sign the transaction by web3.eth.signTransaction after initiating transaction via web3.eth.sendTransaction. for example: when I do: web3.eth.sendTransaction({ from: accs[0], ...
0
votes
0answers
23 views

How to achieve inheritance support using web3j wrapper?

I have two types of smart contracts. One parent contract to store the type and other child contracts which inherits the parent contract. The problem is, I can't generate java wrapper class (...
0
votes
0answers
11 views

Does uncle blocks in poa forks contains transactions?

Since that forks can happen in poa networks (I asked how to prevent forks here); What does means ? is uncle blocks contains transactions or they are just empty blocks ?
0
votes
0answers
14 views

Geth stuck at “Regenerated local transaction journal transactions=0 accounts=0”,PLEASE HELP

I run a private chain with mulitpe Clique POA nodes for several days. Today I found the block can not update normally. The Geth version(executale version) info: [root@localhost ~]# geth version WARN ...
0
votes
0answers
17 views

Ethereum Private network Creation

I am able to create Ethereum private network using Geth. I want to create my network automatically using a script, can we do that? The idea is, user will provide a number of nodes and its peers in ...
1
vote
0answers
12 views

What is 'dangling vote' in the geth clique POA algorithm?

I am reading the code implementation for clique POA algorithm(consensus/clique), and encountered this line of comment in consensus/clique/snapshot.go: // uncast removes a previously cast vote from ...
0
votes
0answers
8 views

DigixDAO smart contract functionality/pattern

Can someone explain the usage of initialisation functionality and _resolver arguments in the various constructors of digixdao? i.e. following contract What is a resolver and isn't the job of a ...
0
votes
0answers
10 views

chain reorged during section processing

Previously i was to start my geth network but suddenly i m getting error="chain reorged during section processing".
1
vote
1answer
37 views

How to prevent fork in poa network?

I discover that forks in poa network can happen! I have 4 nodes (trusted nodes) I want to create a poa network with no forks, is it possible ?
0
votes
1answer
12 views

interface function declarations to be used internally

Is it possible to use externally declared interface functions internally in a smart contract? i.e. say contract A inherits interface A, would contract A be able to implement the functions from ...
0
votes
0answers
22 views

How to copy the data from a running private network to another

I have two seperately running private ethereum networks,i want to copy the data from the first private network to the second one without stopping.I have tried multiple ways but was not successful.I ...
0
votes
0answers
22 views

Problem when unlocking account in private ethereum blockchain [duplicate]

I tried this statement personal.unlockAccount(web3.eth.coinbase, "password") But I am getting this error . Error: account unlock with HTTP access is forbidden Any suggestion would be helpful. ...
1
vote
0answers
20 views

Retrieving a State_object value on go-ethereum

I have a deployed contract address and I need to query a contract storage value, a token account balance that is stored on a mapping variable: mapping (address => uint256) balances; From go-...
0
votes
1answer
23 views

Inheritance and contract creation

If I modularise a contract into two contracts, and inherit one of them instead using a monolithic approach, will the deployment costs be larger with two contracts or is the cost the same as with the ...
0
votes
0answers
11 views

Contract Design Patterns | Should I use some sort of factory pattern?

I have 3 structs which are nested into each other i.e. struct A <- struct B <-- struct C All 3 structs belong to their own contracts (contract A, contract B, contract C) and each contract has ...
0
votes
0answers
9 views

when to create a library contract

when should one consider creating library instead of a contract? Would it make sense to create a library if all it does is calculations or reporting read values?
1
vote
1answer
46 views

About key and address difference between Quorum and Ethereum blockchain

Quorum is a fork of Ethereum, what are the main difference of them about private key/public key/address generation and representation format? In the link Quorum wiki, there is a public key like below: ...
0
votes
1answer
44 views

Is there a use case of keeping 2 chains?

I know that Ethereum was forked 2 chains due to DAO hacking. so Ethereum Classic was borned at that time. 2 chains are distinguishable by different chain id. I had a strange idea, a malicious miner ...
0
votes
0answers
13 views

Best Practices Of Building A DAO Contract Structure Tree

When building a DAO of interconnected smart contracts on Ethereum, what is the best way to organise the contract structure? More specifically, are there any particular design pattern(s) like MVC in ...
2
votes
0answers
17 views

miner.stop() returns null does not stop mining on private chain

I am using Version: 1.9.0-unstable of geth, and I noticed miner.stop() does not work anymore. I am sure it always worked. > eth.blockNumber 901069 > miner.stop() null > eth.blockNumber ...
3
votes
1answer
28 views

approve-transferfrom pattern between contracts

What is the general process-flow of approving contract a to spend tokens on behalf of contract b and how would a sufficient function implementation look like which successfully achieves this? For ...
0
votes
1answer
22 views

Is there a web3 api written in golang to interact with Eth nodes?

I'm looking for a library that can easily interact with Ethereum nodes that is similar to Web3.js. go-ethereum is written entirely in go so I would of thought I could write scripts pretty easily.
2
votes
0answers
24 views

eth.getCode() returns empty on geth 1.9

I have two nodes connected to the main net. On one I run geth 1.8.27, on the other geth 1.9.1. When I try to get the code of a smart contract, geth 1.9.1 will not return any code. Example: Version: ...
0
votes
0answers
21 views

How to send Extra data with smart contact transaction on geth server which data I will get after mining?

I have created smart contract in solidity using Remix IDE. I am doing smart contract transaction using geth server and it is working fine. But I want to send some keys (data) on geth server with ...
0
votes
0answers
24 views

Non-stop “Served eth_signTransaction” warnings after upgrading geth to 1.9.x for private network?

I just upgraded the geth nodes of my private PoW network from 1.8.27 to 1.9.1, and right after starting up the nodes, it spills out tons of warnings non-stop like WARN [07-30|18:33:52.134] Served ...
3
votes
1answer
67 views

About Ethereum testnet 61 (Ethereum Classic)

I know that Ethereum was forked 2 chains due to DAO hacking. so Ethereum Classic was borned at that time but 2 chains are equal technically. Network number is different between Ethereum(number is 1) ...
0
votes
0answers
118 views

Solidity and Web3js codes are not working inside the private Ethereum(geth) network but same codes are working in public ethereum

geth version : 1.9.0-stable-52f24617, node version : v10.16.3, npm version : 6.9.0, web3 version : -- web3@1.0.0-beta.36. genesis.json: { "config": { "chainId": 966308076, "homesteadBlock": 0, "...
0
votes
1answer
14 views

Data encryption

Since all data on the Blockchain is public. Presume I have multiple users submitting data which I want to hide, is there a way I can encrypt that data on the Blockchain ? Or do I have to encrypt off-...
0
votes
0answers
28 views

Get Submitted Data from Blockchain

I'm using a html code connected to my smart contract via testrpc node, where users submit temperature data. How can I view that data from the smart contract, each time I view from the contract I see ...
2
votes
1answer
19 views

Uncaught (in promise) Error while opening and doing transaction on private ethereum blockchain using web3 and go-ethereum

I am trying to integrate a react app with go-ethereum using web3js. an event Onsubmit will do the following: 1. Create an account. 2. Open the account. 3. Approve a smart contract with the created ...
0
votes
0answers
25 views

Ethereum wallet does not work with version over geth 1.8.23

Ethereum wallet does not work with version over geth 1.8.23 I have geth 1.9.1 installed, I am fully synchronized, but ethereum wallet requires you to download 1.8.23 and does not want to work with ...