Comments (3)
Repro program, which uses a mainnet geth-node as a backend:
package main
import (
"context"
"fmt"
"math/big"
"os"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/ethclient"
"github.com/ethereum/go-ethereum/rpc"
)
func main() {
rpcRaw, err := rpc.Dial("https://geth.mainnet.ethpandaops.io")
if err != nil {
panic(err)
}
rpcRaw.SetHeader("CF-Access-Client-Id", os.Getenv("CFID"))
rpcRaw.SetHeader("CF-Access-Client-Secret", os.Getenv("CFSEC"))
client := ethclient.NewClient(rpcRaw)
id, err := client.NetworkID(context.Background())
fmt.Printf("id %v err %v\n", id, err)
block, err := client.BlockByNumber(context.Background(), big.NewInt(19860848))
if err != nil {
panic(err)
}
fmt.Printf("block: %v\n", block.Number())
tx, _, err := client.TransactionByHash(context.Background(), common.HexToHash("0xfb399a758ca8df66abd09c02eaae93cf9349c516a749a9a72992e2cb511a1610"))
if err != nil {
panic(err)
}
fmt.Printf("tx %v\n", tx.Hash())
}
I still need to check exactly what version the backend is running, but so far looks good to me
[user@work go-ethereum]$ go run ./cmd/foo/
id 1 err <nil>
block: 19860848
tx 0xfb399a758ca8df66abd09c02eaae93cf9349c516a749a9a72992e2cb511a1610
from go-ethereum.
Also, unusual logs from node:
Chain reorg detected number=19,860,615 hash=ecba0d..d28a47 drop=1 dropfrom=44d112..7a7212 add=1 addfrom=225a64..3abdfa
Extend chain add=2 number=19,860,672 hash=46584a..55635b
WARN [05-13|17:03:27.841] Ignoring already known beacon payload number=19,860,671 hash=9d1892..f20aac age=16s
ERROR[05-13|16:52:02.026] Demoting invalidated transaction hash=34ce41..fccaa3
WARN [05-13|17:03:27.841] Ignoring already known beacon payload number=19,860,671 hash=9d1892..f20aac age=16s
Logs from lighthouse seems fine.
from go-ethereum.
have changed from:
go 1.20
github.com/ethereum/go-ethereum v1.12.0
to
go 1.21.6
github.com/ethereum/go-ethereum v1.14.3
problem is solved, thank you very much ~
from go-ethereum.
Related Issues (20)
- برنامج إحالة Nexo
- Documentation for config is outdated HOT 1
- Mazzika HOT 1
- Potential deadlock bug in peer.go due to a race condition HOT 2
- ethereum node panic. HOT 7
- add support for rpc endpoint eth_callBundle HOT 4
- Is the node id in the documentation outdated? HOT 3
- Al HOT 1
- [Website] Put a disclaimer in the doc for the deprecation of clique HOT 1
- Unexpected trie missing in prefetcher HOT 4
- Does the single boot node stated by "bootnode" command have the maximum connection node limit ? HOT 2
- EIP1559 issue following changes after 17th April 24 HOT 6
- Titel
- The block generation speed of geth's POW private chain is too fast. 4 blocks may be generated in 1 second. Then the server disk quickly increases in size. The server is shut down directly or the process is exited, resulting in data loss. How to solve this problem? HOT 2
- issue with eth_getLogs HOT 1
- error: Latest filled block is not available HOT 5
- Crash on stopping geth w/ blsync HOT 1
- blsync error "beacon syncer reorging" HOT 2
- Shareaàrad.)
- Offline cache for github worker
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-ethereum.