Groups
Groups
Sign in
Groups
Groups
golang-nuts
Conversations
About
Send feedback
Help
Trying to import etherum in go
101 views
Skip to first unread message
Ramki...@hotmail.com
unread,
Jan 21, 2023, 9:17:01 AM
1/21/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to golang-nuts
Example/Test Code:
https://pastebin.com/PaeuHuJx
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 AM
1/21/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to golang-nuts
The error is correct. Your code says to import
"
github.com/ethereum/go-ethereum/ethash
"
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 AM
1/23/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to golang-nuts
There is no package called
github.com/ethereum/go-ethereum/ethash
perhaps you meant
github.com/ethereum/go-ethereum/consensus/ethash
Reply all
Reply to author
Forward
0 new messages