All Questions
6,660 questions
0
votes
0
answers
12
views
Start Native address took my Ethereum instead of my Remix bot [duplicate]
After watching a youtube video on a certain ethereum bot I followed the instructions and somehow found that the money was sent to some start native address and wasn't being used by my bot. I was ...
0
votes
1
answer
81
views
How do I find my Ethereum I bought in 2018... I think I took it offline at the time. I have the address I seem to have transferred it to
Total crypto dummie here.
I bought some Ethereum in 2018, and remember using MetaMask to try and take it offline. I haven't the faintest idea what I did after it went to MetaMask...but this is the ...
0
votes
1
answer
237
views
Execution reverted using go-ethereum
When im using the remix ide (and in js with web3 lib) to interact with the smart contract there's no problem, but in golang with geth always return me "execution reverted" in call function (...
1
vote
1
answer
80
views
Abigen from flattened contract files
I have a file that is composed of 5 imports, too much code to drop here so I will illustrate my question with a very simplified example.
My Test.sol file:
// SPDX-License-Identifier: MIT
pragma ...
1
vote
1
answer
72
views
How to setup a private GoEthereum network
I'm studying Ethreum by creating by own private ethereum network. I have three basic question. I will give as much information as I can to help to get great responses.
My network setup is very simple:
...
1
vote
0
answers
95
views
abi: attempting to unmarshal an empty string while arguments are expected
After updating go-etherum from github.com/ethereum/go-ethereum v1.10.22 to v1.13.15
My contracts started printing out error
abi: attempting to unmarshal an empty string while arguments are expected
...
1
vote
0
answers
46
views
Ether Presale json file extracting different ethereum address
I bought Ethereum using three wallets and was able to access two of them, but I can't access the last one. When I opened the third JSON file, I could see the Ether address. I also checked on Etherscan ...
0
votes
0
answers
28
views
Ethereum Private Network Upgrade Help
I want to mimic the Dencun upgrade on my private network which is currently running the Shanghai version. I want to understand how to upgrade the ethereum network without stopping it / restarting it / ...
0
votes
1
answer
59
views
Merkle Patricia Trie pad and prefix concept
I understand <> it is used for empty slots, rootHash is 16 for hex. and hashB placed 5th position because of '4', but how does perhaps padding work? i.e. in hashA: 20, hashB: 00, hashE: <17&...
2
votes
1
answer
77
views
C code to sign a message compatible (such that can be verified) with Metamask, mycrypto, etc
I am on macOS and trying to put together the code to sign (and once I succeed to verify) a message with an Ethereum private key. So, the private key (just used to test, no funds there lol) is: ...
0
votes
0
answers
40
views
public key recovery failed intermittently with go-ethereum
I am trying to recover public key from signature and digest. below is my code. It's failing sometimes with error recovery failed
package main
import (
"crypto/ecdsa"
"crypto/...
0
votes
1
answer
84
views
State healing taking over a month, faster way to sync etherium for transfer?
For context I last used geth and Etherium when it was PoW, then I left it for several years with a small amount of eth (~$80) in my wallet.
With the recent increase in price, I was reminded of this, ...
1
vote
0
answers
159
views
Failed to register the Ethereum service: ethash is only supported as a historical component of already merged networks
I installed the latest version of Geth for windows on my computer from the official website(https://geth.ethereum.org/downloads), but when I open the terminal and execute the geth command i get the ...
0
votes
0
answers
68
views
core-geth: peers stuck in handshake forever
I'm running a custom consensus engine and launching a network for it. The nodes I have are making handshakes with other networks, but then not peering since they are not compatible. But, the handshake ...
0
votes
2
answers
146
views
Help with calling multicall contract via golang
I have the correct address and exact bytes but my result is always an empty byte split
I'm using a custom multicall where the function is a view function and the expected data returned is of the same ...
0
votes
0
answers
42
views
Geth Private Network - Account management
I'm building a private blockchain using Geth. I created 2 accounts with command geth --datadir miner-node account new and geth --datadir rpc-node account new, then I added their address to genesis....
0
votes
0
answers
18
views
Go-Ethereum: shut down fails in handler.Stop(), anyone know why?
I'm running etclabscore/core-geth with my custom consensus engine (but reproduced the issue with Clique too). The shutdown process in handler.Stop() fails, and stops at h.wg.Wait().
func (h *handler) ...
0
votes
1
answer
21
views
deflationary tokens vs inflationary tokens
Why do deflationary tokens exist?
What are the advantages?
How they are different from inflationary tokens?
3
votes
1
answer
84
views
for loop containing types.Sender sometimes does not leave and consumes 100% CPU
I have this simplified code here:
signer := types.LatestSignerForChainID(s.ethApiBackend.ChainConfig().ChainID)
log.Info("Before msg generation", "txsLen", len(txs))
msgs := make([]...
1
vote
0
answers
63
views
Geth with Clef: "account_new" method fails, despite established IPC connection and namespace
Have extablished communication between Geth and Clef over IPC.
Clef is popping-up manual confirmation on "eth_accounts", I hit "y" and receive valid empty array response on my end.
...
0
votes
0
answers
8
views
Is VerifyHeader in consensus engine interface run on the genesis block?
Clique in VerifyHeader checks so that the block is not block 0,
// The genesis block is the always valid dead-end
number := header.Number.Uint64()
if number == 0 {
return nil
}
whereas Ethash ...
0
votes
0
answers
41
views
Gas estimation failed - remix.ethereum.org
Why i cant deploy my contract ? it show me every time this. I am sure i do everything right. Before i try force sending but TX failed and i burn some eth...
here is tx
https://etherscan.io/tx/...
0
votes
1
answer
501
views
Go-Ethereum "transaction type not supported" Error When Fetching Blocks on BaseChain
I'm working with Go-Ethereum (Geth) to interact with the Base blockchain, and I'm encountering an issue when trying to fetch block information using the BlockByNumber method. My code is ...
0
votes
1
answer
113
views
Geth version 1.14.4-stable Error: authentication needed: password or unlock. Transfer issue?
I want to make a transfer between two wallets; one is the address I set up on my private blockchain, and the other is my Metamask address. However, I keep encountering the same error. I have attached ...
0
votes
0
answers
55
views
Adding a new precompile to a local modified Ethereum (geth) node
Trying to add a new precompile on the core/vm/contracts.go but after re-building the go-ethereum project with make geth it doesn't work as it should.
More precisely, I'm following the Adding a ...
0
votes
0
answers
58
views
How to build my own blockchain
I have been doing some theoretical reading on blockchain security for a while. To improve myself in this field, I want to develop a small-scale laboratory environment with my own computer and an old ...
0
votes
0
answers
20
views
How to monitor geth synchronized data?
I am using snapshot synchronization mode and have been synchronizing for almost a week. The geth client output is as follows:
and the lighthouse client output is as follows:
I checked that 1.5T of ...
1
vote
0
answers
105
views
Geth changing discovery port to 1024 shortly after start
I'm running geth 1.13.14
My startup command is
./geth --port 30303 --discovery.port 30304 --http --http.api eth,net,engine,admin --authrpc.jwtsecret ~/myhex.hex --datadir='~/ethereum/execution/data
I'...
0
votes
0
answers
30
views
Geth private network security
I'm implementing a private network with Geth, which is expected to go into production for a client.
What are the most important points to focus on regarding the security of my blockchain?
I was ...
1
vote
1
answer
25
views
Go-Ethereum: What is the story behind the "bad hashes" in core/blocks.go
Go-Ethereum tracks a few "bad hashes". What is the story behind them? Why are they bad? I understand they are "usually hard forks" but it would be interesting to hear more about ...
2
votes
0
answers
12
views
What will happen if the most influential individual stake-holder STOP responding?
I'm new to the community and I'm trying to do some research for my college project with respect to the Ethereum topic.
I'm curious how influential the highest stake-holder would be. From my ...
0
votes
0
answers
28
views
Why (historically in PoW) is total difficulty not stored in the block header?
The system for managing total difficulty is that it is computed and stored on each node, but not in the block header. The way it has been stored has undergone revisions, back in 2015 (in Go-Ethereum) ...
2
votes
0
answers
66
views
How execution client get synced after the Merge?
I learned that after the Merge, execution client like geth only gets new blocks from the consensus client, while I noticed the geth client still has its own p2p network and snap sync also works as ...
0
votes
0
answers
15
views
Dial bootstrap nodes with devp2p(js)
I'm trying to use devp2p dpt.bootstrap to connect to Ethereum bootstrap nodes
my dpt config is like this:
const dpt = new DPT(PRIVATE_KEY, {
timeout: 10000,
endpoint: {
address: '0.0.0....
0
votes
0
answers
11
views
For a custom trie that uses the state trie methods and functionality, can triestate.Set be skipped?
The Update method in the Database class in trie package, takes a parameter *triestate.Set. Is it possible to skip this variable, and simply pass &triestate.Set{} to it? I am using Update method ...
0
votes
0
answers
9
views
Core-geth/Go-Ethereum: Why ReorgNeeded called before check if canonical block, in WriteBlockAndSetHead in blockchain.go?
When running as a block producer, a chainHeadEvent is sent to worker.go after producing a block, and this is done via WriteBlockAndSetHead that is called from resultLoop after receiving a new sealed ...
1
vote
1
answer
45
views
How optimize array of uints in function call input arguments to decrease msg.data size?
I have a Solidity function like sampleFunction(uint[]calldata) which takes an array of uints which contains 6 numbers [1900000000000000,1,990,990,2,1]. Far as I know these input variables will consume ...
0
votes
0
answers
12
views
Why remaining gas increase after some opcodes
I use debug api of go ethereum to get traces of transactions. The api document shows that field gas represents the amount of gas remaining in the transaction at the current step of execution and field ...
0
votes
0
answers
12
views
Can the Cronos block/unblock an account?
My wallet on the cronos is unable to send any transactions for now.
So I googled some documents and found some codes in the cosmos-sdk.
There are some keepers to block addresses. So I think, the chain ...
2
votes
1
answer
41
views
Go-Ethereum: Are storage trie storage slots hashed twice?
The GetState method in the stateObject class expects a common.Hash argument, a storage slot that is the hash of all parameters in it. That is all well so far.
func (s *stateObject) GetState(key common....
0
votes
0
answers
9
views
Disk database cleanup during reorg, where in Go-Ethereum (or other node codebase) does that happen?
I'm curious about how the discarded "oldchain" during reorg also has its data cleaned up from the disk drive database. I'm unable to see anything about that in the reorg method in core/...
0
votes
0
answers
6
views
Go-Ethereum: Any Getter for the field "from" in the type Transaction in types/transaction.go?
I'm building a consensus engine for Ethereum in Go-Ethereum. In it (one way to create it), validators make a transaction to a validator contract each block they produce. Then, to verify that during ...
4
votes
0
answers
64
views
k-th auction confusion from Vitalik's article
I was reading an article from Vitalik where he mentions the weaknesses for k-th auction.
If the gasPrices of users are as follows: "0.02, 0.03, 0.05, 0.08, 0.13, 0.19, 1.00" and miner has ...
0
votes
0
answers
19
views
Possible to use CallContract during validation (on block not yet included in blockchain)?
I'm building a consensus engine. Already built a prototype of it, and now interested in improving it (mostly simplifying the implementation so it fits better with existing Ethereum codebase with least ...
0
votes
0
answers
123
views
Is it possible to establish a local network between specific Ethereum accounts within the same operational system using Geth?
I tried to launch a local network using Geth. I mean a network of just one running system that hosts some Ethereum accounts. I did that by the below config file and the below command to run Geth node. ...
0
votes
0
answers
30
views
Server returned HTTP status 404 Not Found
I am running a local ethereum PoA(clique) network in my windows computer using geth with 2 nodes. I am very new to this.
I am trying to get the performance data of the chain using prometheus.
I used ...
0
votes
0
answers
12
views
Go-Ethereum compatible with negative difficulty if custom consensus engine is used?
Assuming a custom consensus engine similar to Clique proof-of-authority, is block.Difficulty allowed to be negative?
Why I ask:
Custom consensus engines can reuse the ReorgNeeded functionality if they ...
0
votes
1
answer
28
views
How NFT marketplaces detect NFTs metadata updated?
I have learned ERC-4906 to notify updating metadata.
I found out the way to detect some NFTs metadata updated, but I don't know how marketplace detect tremendous NFTs metadata updated.
Please let me ...
2
votes
0
answers
45
views
What does the Geth/Erigon ethereum client do if there are not enough transactions in the pool to fully fill the new creating block?
When the transaction pool of Ethereum nodes like Geth or Erigon doesn't have enough transactions to completely fill a new block, how do these nodes respond? Do they immediately generate a partially ...
0
votes
0
answers
85
views
Geth Failed RLPx handshake error EOF when trying to connect static node
I'm currently attempting to connect nodes and encountering two errors:
The node is still using the 127.0.0.0 IP address, which is localhost, instead of detecting my public IP for other nodes to ...