Skip to content

Commit

Permalink
make go module
Browse files Browse the repository at this point in the history
  • Loading branch information
ziogaschr committed Nov 18, 2022
1 parent ad98ef1 commit 3bbc166
Show file tree
Hide file tree
Showing 5 changed files with 657 additions and 10 deletions.
8 changes: 4 additions & 4 deletions algorithm.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ import (
"time"
"unsafe"

"github.com/etclabscore/core-geth/common"
"github.com/etclabscore/core-geth/common/bitutil"
"github.com/etclabscore/core-geth/crypto"
"github.com/etclabscore/core-geth/log"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/bitutil"
"github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/log"
"golang.org/x/crypto/blake2b"
"golang.org/x/crypto/sha3"
)
Expand Down
2 changes: 1 addition & 1 deletion compat.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package etchash
import (
"math/big"

"github.com/etclabscore/core-geth/common"
"github.com/ethereum/go-ethereum/common"
)

type Block interface {
Expand Down
10 changes: 5 additions & 5 deletions etchash.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ import (
"unsafe"

"github.com/edsrzf/mmap-go"
"github.com/etclabscore/core-geth/common"
"github.com/etclabscore/core-geth/common/hexutil"
"github.com/etclabscore/core-geth/crypto"
"github.com/etclabscore/core-geth/log"
"github.com/yuriy0803/golang-lru/simplelru"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/hexutil"
"github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/log"
"github.com/hashicorp/golang-lru/simplelru"
)

var (
Expand Down
21 changes: 21 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
module etchash

go 1.17

require (
github.com/edsrzf/mmap-go v1.1.0
github.com/ethereum/go-ethereum v0.0.0-00010101000000-000000000000
github.com/hashicorp/golang-lru v0.5.5-0.20210104140557-80c98217689d
golang.org/x/crypto v0.3.0
golang.org/x/sys v0.2.0
)

require (
github.com/btcsuite/btcd/btcec/v2 v2.2.0 // indirect
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1 // indirect
github.com/go-stack/stack v1.8.0 // indirect
)

replace github.com/ethereum/go-ethereum => github.com/etclabscore/core-geth v1.12.8

replace github.com/hashicorp/golang-lru => github.com/yuriy0803/golang-lru v0.0.0-20221118130757-9f9597820c48
Loading

0 comments on commit 3bbc166

Please sign in to comment.