Questions tagged [go-ethereum]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
11 views

Is a Raspberry Pi 2 a suitable piece of hardware to run a Quorum Node with Tessera? If so has it been done?

I would like to set up some Quorum nodes (5) for test purposes and thus far have been unsuccessful in getting a node to run on a Pi 2. The work has stopped due to the need to recompile the binaries ...
0
votes
1answer
17 views

Can someone explain to me how to add USDT support to my wallet? I use my own GETH node

How to listen USDT contract? How to transfer my USDT to another USDT wallet? How to use both ETH and USDT in the same service? Etc. As you can see, I am new to these issues and would be grateful for ...
0
votes
1answer
8 views

How the consensus informations are transported across the network?

Lets consider the scenario, if one node in India, finds the nonce (in pow) and it will generate the block and propagate to the network. How the block will move across the each and every node of the ...
-1
votes
0answers
17 views

Geth - deploy smart contract in a private blockchain [on hold]

storage.get.call() returns 0 Always for any integer value What may be the solution?
1
vote
0answers
18 views

Returned value arent valid did it run out of gas?

After migration command line (truffle migrate --reset --network rinkeby), it is deploy. However i couldnt see at etherscan website when i enter the contract address. Should i see? Whatever then i ...
0
votes
1answer
9 views

Subscribe to events using local geth in light mode?

I've followed this guide to subscribe to events. I succesfully subscribed to the new block headers using Infura provider. But when I try to use local geth node syncing in light mode, it connects, but ...
0
votes
1answer
20 views

Is it possible to use address you don't own while running ethereum RPC node (using geth)?

In other words, you start your own node and then somehow add accounts you don't own (aka - you don't have their private keys)? I'm asking because I wanted to make my own node exposed via RPC/...
0
votes
1answer
17 views

Truffle migration takes too much time and dont migrate

0 Hi i am trying to migrate contract by using getch on oracle virtual box ubuntu. Although 1_initial_migration.js deploying it shows Block: 0 Seconds:16743 and it is not completed to deploy and also ...
0
votes
1answer
18 views

Can I expose geth's rpc ONLY to Metamask connections?

I am building a private chain and rpcaddr is set to 0.0.0.0But recently I found out that this private chain has been attacked by a foreign IP, it kept trying to transfer those worthless ether out from ...
1
vote
2answers
34 views

Genesis.json in private (geth) network

My genesis.json { "config": { "chainId": 9731, "homesteadBlock": 0, "eip150Block": 0, "eip150Hash": "0x0000000000000000000000000000000000000000000000000000000000000000", "eip155Block": 0, "...
0
votes
0answers
13 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
20 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
33 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
23 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
18 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
23 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
11 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
13 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
20 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
31 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
28 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
20 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
39 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
27 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
17 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
17 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
14 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
12 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
23 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
23 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
49 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
15 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
30 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 ...