Trying to import etherum in go

97 views
Skip to first unread message

Ramki...@hotmail.com

unread,
Jan 21, 2023, 9:17:01 AM1/21/23
to golang-nuts
Example/Test Code:


But I get the error

go run main.go
main.go:11:2: no required module provides package github.com/ethereum/go-ethereum/ethash; to add it:
        go get github.com/ethereum/go-ethereum/ethash
tt@ubuntu:~/go/src/testing$ go get github.com/ethereum/go-ethereum/ethash
go: module github.com/ethereum/go-ethereum@upgrade found (v1.10.26), but does not contain package github.com/ethereum/go-ethereum/ethash

Brian Candler

unread,
Jan 21, 2023, 10:33:35 AM1/21/23
to golang-nuts
The error is correct.  Your code says to import


but if you browse to https://github.com/ethereum/go-ethereum you'll see there is no "ethash" subdirectory.

gbarr

unread,
Jan 23, 2023, 4:27:25 AM1/23/23
to golang-nuts
Reply all
Reply to author
Forward
0 new messages