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
1answer
27 views

geth minting ether after genesis [closed]

Is there any way to mint ether to accounts after Genesis?
0
votes
1answer
16 views

Is it possible to get duplicates of the log events on Ethereum when we have a fork of the chain?

Let's suppose we have 2 chains of ethereum blockchain. When I fetching contract's log events from x block to getBlockNumber(). Will i get two or one the same log events from each block? Or ...
0
votes
2answers
14 views

Private Chain Peering and Port Problem

Two AWS nodes on separate machines are trying to peer. They are listening and discovering at port 30303, when I open these ports for inbound connection they are still unable to peer; but, when I open ...
0
votes
0answers
12 views

ethereum smart cotract ioT implementation

For the preparation of a project in my thesis, I need to implement ethereum blockchain to control the access of the IoT using smart contract. Can you recommend me a tutorial to prepare this without ...
0
votes
0answers
18 views

Error: Returned error: no suitable peers available - Ropsten

Does anyone know what the problem is? This used to work. $ truffle migrate Error: Returned error: no suitable peers available at Object.ErrorResponse (/home/ubuntu/.nvm/versions/node/v8.15.0/lib/...
0
votes
2answers
31 views

what kind of data is in storage trie?

Hello I have a question about storage trie in Ethereum. I read many articles but there is no mention about what data is in storage trie. So, Please help me. Thanks.
0
votes
0answers
9 views

Handling EOF when subscribing to Event Logs

I'm trying to subscribe to events logs to handle Transfer(address,address,uint64) events. I've followed this example. https://github.com/miguelmota/ethereum-development-with-go-book/blob/master/en/...
1
vote
2answers
19 views

Can't add peers outside of local machine

I am able to spin up as many nodes on the same machine as I would like and have them peered in the same private blockchain network. But when I try to use addPeer() on a separate EC2 instance, I am ...
0
votes
0answers
16 views

ERC721 Transfer Event issue

Looking at the open-zeppelin ERC721 Contract's code, I see that the very last thing that its mint function is doing is call emit on the contract's pre-defined Transfer event. My question is: how do ...
0
votes
1answer
19 views

How do I make my private Ethereum network public? [closed]

So after a lot of reading I was able to make my own private Ethereum network, most of the readings I did showed me how to test it privately, but none of them actually explained how to make it public, ...
0
votes
0answers
17 views

After starting geth it shows unlock error [duplicate]

When I start Geth on ubuntu with this command - geth -rpc --syncmode="light" --rpcaddr 127.0.0.1 --rpccorsdomain "*" --rpcapi personal,web3,eth it starts geth and with RPC I can create accounts ...
1
vote
1answer
62 views

Could I update Geth without stopping running Geth? And how could I update Geth without removing data?

I'm using Geth version 1.8.17-stable on ubuntu server and syncing with "fast" mode. I want to upgrade Geth to v1.8.23 to sync blocks generated after the hard fork. But I couldn't find how to upgrade ...
0
votes
1answer
27 views

how to use backup node in web3 connection?

node1= running on port 8545 => current synced block is 2000, and node2= running on port 3545 => current synced block is latest When i am using web3 into another page and print web3 object it ...
0
votes
0answers
36 views

How to fork Ethereum to build a mintable coin based on contract? [closed]

Trying to build a fork of Ethereum with a native coin controlled by an oracle through a smart contract, I'm stuck on how to modify the behaviour of the native coin, in order to link native coin with ...
0
votes
0answers
44 views

Geth contract migration with truffle error: Served eth_getBlockByNumber err=“context canceled”

I have 2 contracts that i want to deploy them on the rinkeby network on geth. Configurations: Operting System: Windows 10 Truffle: v5.0.6 Node v10.13.0 Geth: 1.9.0-unstable Network id: 1 ...
1
vote
0answers
20 views

How to send transaction using web3py using infura.io

I have connected to mainnet via infura.io and have used http provider for connections now i want to generate address and send transaction And i wand to send real eth so how can i do this?...
0
votes
0answers
18 views

Geth syncing keeps failing at block number 7279144

Here's the log. INFO [03-04|04:55:46.685] Imported new block headers count=0 elapsed=5.165ms number=7279336 hash=87c04b…cde65c age=3d12h45m ignored=192 INFO [03-04|04:55:46.728] ...
0
votes
0answers
19 views

Web3 & Solidity - Automatically read ABI and Create Contract

Is there a way to automatically create a new Solidity Contract - from within a web3 JS file using the .json file created in a project's build folder after each compile? I have already figured out how ...
0
votes
1answer
27 views

Solidity Contract Needs Another Contract's Address

Is there a way for a Solidity contract to programmatically find out another solidity Contract's address? Right now I'm letting Contract A know about Contract B by hard-coding the address of B into ...
1
vote
0answers
29 views

web3.eth.getAccounts() yields an empty array

I first started geth:  geth --syncmode "light" --rpc --rpcaddr 127.0.0.1 --rpccorsdomain "*" --datadir ~/eth_blocks/ and then used: geth account new. I verified that there is a new entry in ~/...
0
votes
1answer
17 views

Solidity modifier with function call error

pragma solidity >=0.4.22 <0.6.0; contract Person { //owner address address private owner; //identity string private firstName; string private lastName; string private ...
0
votes
0answers
23 views

Private Network in node.js

When I create a private ethereum network to run tests. How this network is simulated? Is the actual Ethereum network running on it? Or is the processing power of my computer used to simulate the ...
2
votes
1answer
193 views

Geth Stopped Syncing after Constantinople

The geth node stopped syncing after the Constantinople upgrade. Highest block I see is 7280001. I did not think I need to upgrade geth, else my node will stop syncing if that is the reason. I can see ...
1
vote
0answers
58 views

How to setup constantinople fork for private ethereum chain

I am trying to add the constantinople fork to my private net with is running on geth. I have updated to latest geth, geth 1.8.23. I have stopped my current geth node running and have chnged the ...
1
vote
0answers
56 views

How to transfer transaction and send balance on public blockchain using web3py api?

I have followed tutorial and setup private Blockchain using geth: https://medium.com/infrageth/practical-steps-for-go-ethereum-setup-27b8d64903fc I have used web3py python library for creating ...
0
votes
0answers
24 views

How to import Txhashes to ETH cold wallet?

I would like to import Txhashes to my cold ETH wallet. The tx's are done on a connected device and transferred securely via QR codes. I can do this with BTC in Electrum but have found no way of doing ...
0
votes
1answer
137 views

Help with Syncing Geth: 1.8.23

I am not sure if I'm alone in this but it seems that the latest Geth client is very slow. I tried posting the issue on Geth's github page but it got closed almost immediately and no one is replying ...
1
vote
0answers
43 views

Are regions a factor in downloading current Ethereum blocks?

We are currently having some problems syncing our nodes. Our server is located at the Asia Pacific region. Earlier our servers where in Azure and we don't have any troubles syncing. It has been 3 ...
0
votes
0answers
22 views

Geth Node shuts down abruptly

I am running a private ethereum network and main ethereum network on the same server. The private net shuts down abruptly after 5-10 mins after start with logs below. Geth Details: Geth Version: 1....
0
votes
0answers
21 views

Private Ethereum network. How to create block with go-ethereum library?

The other day I decided to play around with Ethereum and write a simple program that will load the network with transactions as close as possible to the real environment. For these needs, I used my ...
0
votes
0answers
17 views

Randomised DPOS for Ethereum VM?

Clique (POA) seems to have awesome configuration possibilities to make it work like a DPoS or a randomised DPoS DPoS : Selects a set of masternodes (maybe 18-25?) which have staked native fuel (ETH ...
0
votes
0answers
10 views

Ethereum Multi Node network design - nonce management for address

I am running two nodes on two different machines and geth installed, and for educational purposes I would like to make both nodes work concurrently. I know that nonce management is quite pain in the **...
0
votes
1answer
44 views

Peers not syncing on PoA private network

I've got a private network with two PoA geth nodes, with each node running on a separate machine. One node has been running for some time (in instamine mode) and has mined 6909 blocks. I've just setup ...
0
votes
0answers
13 views

Is there a node-static.json file for swarm node?

As far as I am aware of a static-node.json is a file for P2P geth node connection on disconnect. I have tested that and It works just fine. I was, therefore, wondering if it is possible to have such a ...
0
votes
1answer
30 views

Instant Transactions: Private vs Public Blockchain

I have been developing a smart contract with solidity. My question is related to the deployment of smart contracts. I have studied and followed answers in the following links: Main Network vs Private ...
1
vote
2answers
74 views

Error: Failed account unlock attempt, is this an attack?

If I use my geth --identity "MyNodeName" --rpc --rpcport "8545" --rpccorsdomain "*" --datadir Users/xxxx/TestChain1 --port "30303" --rpcaddr "127.0.0.1" --nodiscover --rpcapi "db,eth,net,web3,...
0
votes
0answers
10 views

how I can add a new account to the web3 object to run contract functions? (from specific sender)

** this is my previous post : web3.eth.accounts.wallet.add(account) not working what I have tried? -1: web3 = new Web3(new Web3.providers.HttpProvider(connectionString)); const account = await ...
0
votes
1answer
18 views

web3.eth.accounts.wallet.add(account) not working

I need help with adding a new wallet to a web3 instance. e.g.: web3 = new Web3(new Web3.providers.HttpProvider(connectionString)); const account = await web3.eth.accounts.privateKeyToAccount('0x'+...
0
votes
1answer
28 views

Interaction with deployed contract over private blockchain Error: invalid address

I have deployed a smart contract over my private ethereum blockchain using geth. Smart Contract pragma solidity >=0.4.22 <0.6.0; contract GreenPoints { string public name; string ...
0
votes
0answers
27 views

Why geth light mode syncing keeps stopping after it stopped first time? And how should I figure this out?

I used geth fast sync mode before, but it kept stopped and when it stopped, I had to delete all synced data and start over again. So I changed to "light" sync mode, and it worked well for a month. But ...
1
vote
0answers
15 views

Adding two peers in ethereum privatenet on same machine

I am trying to add two peers in ethereum privatenet but not adding its shows peer count is 0. I run the below commands Node1: geth --identity "Privatenet1" --datadir=./Privatenet1 --networkid 1995 --...
1
vote
1answer
42 views

Ethereum Puppeth private blockchain hosted in google cloud how to connect through rpc

I have deployed a priavate etheruem Poa bloackchain to google cloud using puppeth everything is working fine but i can't figure out how to connect throw rpc to the private network ! please help ! any ...
1
vote
0answers
19 views

Alternative to decentralize exchange on Ethereum?

Because of the block time lag, The decentralize exchanges built on Ethereum suffers from a Front running problem. Gnosis works on Dutch exchange concept where orders are executed in Bulk eliminating ...
0
votes
1answer
12 views

Does etherum support smart contrast that has many subcontracts that can be executed once they are called by others

Can I have a main smart contrast that has many subcontracts that can be executed once they are called by other people? And the subcontracts can update the status of the main one if some conditions are ...
0
votes
1answer
26 views

How to prevent to change coinbase address for geth?

I am trying to get test ether on ropsten testnet, so I set coinbase address like miner.setEtherbase("0xxxxxxxxxxxxxx") and started to mine from my node, miner.start(4); But someone changed the ...
2
votes
2answers
184 views

What are some good alternatives to Whisper for blockchain messaging?

I have been experimenting with Ethereum and I achieved good results with Whisper in a private network. The main problem though is that it is pretty slow even when nodes are running in the same ...
1
vote
2answers
39 views

Given a RAW Transaction - how to get senders address

Is it possible to get the senders address using golang when all you have is the raw transaction string. I can decode it and get the nonce, hash, to etc as these are all exported functions from the ...
0
votes
0answers
17 views

How to upgrade Solidity version in geth or ethereum private blockchain

I have built my private blockchain of ethereum and i'm curious to know that how can i upgrade to new version of solidity within geth so that we also can develop smart contract on newer version as ...
0
votes
0answers
41 views

ethereum-bridge oracle on private network does not receive queries

I have a private network with a few nodes and I have installed ethereum-bridge to deploy an Oracle. One of my blockchain nodes is used by ethereum-bridge to deploy the oracle. The node is started ...
0
votes
1answer
33 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 ...