Skip to content

Commit

Permalink
move turbo/rlphacks to erigon-lib/rlphacks (#12956)
Browse files Browse the repository at this point in the history
Co-authored-by: antonis19 <[email protected]>
  • Loading branch information
antonis19 and antonis19 authored Dec 2, 2024
1 parent 0ac3978 commit 2db7234
Show file tree
Hide file tree
Showing 12 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion core/types/hashing.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (
"github.com/erigontech/erigon-lib/crypto"
"github.com/erigontech/erigon-lib/crypto/cryptopool"
"github.com/erigontech/erigon-lib/rlp"
"github.com/erigontech/erigon/turbo/rlphacks"
"github.com/erigontech/erigon-lib/rlphacks"
"github.com/erigontech/erigon/turbo/trie"
)

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion turbo/trie/gen_struct_step.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (

libcommon "github.com/erigontech/erigon-lib/common"

"github.com/erigontech/erigon/turbo/rlphacks"
"github.com/erigontech/erigon-lib/rlphacks"
)

// Experimental code for separating data and structural information
Expand Down
2 changes: 1 addition & 1 deletion turbo/trie/hashbuilder.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ import (
"github.com/erigontech/erigon-lib/crypto"

"github.com/erigontech/erigon-lib/rlp"
"github.com/erigontech/erigon-lib/rlphacks"
"github.com/erigontech/erigon-lib/types/accounts"
"github.com/erigontech/erigon/turbo/rlphacks"
)

const hashStackStride = length2.Hash + 1 // + 1 byte for RLP encoding
Expand Down
2 changes: 1 addition & 1 deletion turbo/trie/hasher.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import (
"github.com/erigontech/erigon-lib/crypto"

"github.com/erigontech/erigon-lib/rlp"
"github.com/erigontech/erigon/turbo/rlphacks"
"github.com/erigontech/erigon-lib/rlphacks"
)

type hasher struct {
Expand Down
2 changes: 1 addition & 1 deletion turbo/trie/stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ import (
"github.com/erigontech/erigon-lib/common/length"

"github.com/erigontech/erigon-lib/common"
"github.com/erigontech/erigon-lib/rlphacks"
"github.com/erigontech/erigon-lib/types/accounts"
"github.com/erigontech/erigon/turbo/rlphacks"
)

// StreamItem is an enum type for values that help distinguish different
Expand Down
2 changes: 1 addition & 1 deletion turbo/trie/structural_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import (
"github.com/erigontech/erigon-lib/crypto"

"github.com/erigontech/erigon-lib/common"
"github.com/erigontech/erigon/turbo/rlphacks"
"github.com/erigontech/erigon-lib/rlphacks"
)

func TestV2HashBuilding(t *testing.T) {
Expand Down
3 changes: 1 addition & 2 deletions turbo/trie/trie_root.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ import (
length2 "github.com/erigontech/erigon-lib/common/length"
"github.com/erigontech/erigon-lib/kv"
dbutils2 "github.com/erigontech/erigon-lib/kv/dbutils"

"github.com/erigontech/erigon-lib/rlphacks"
"github.com/erigontech/erigon-lib/types/accounts"
"github.com/erigontech/erigon/turbo/rlphacks"
)

/*
Expand Down

0 comments on commit 2db7234

Please sign in to comment.