aboutsummaryrefslogtreecommitdiffstats
path: root/trie
diff options
context:
space:
mode:
authorWei-Ning Huang <w@byzantine-lab.io>2019-06-12 17:31:08 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-09-17 16:57:29 +0800
commitac088de6322fc16ebe75c2e5554be73754bf1fe2 (patch)
tree086b7827d46a4d07b834cd94be73beaabb77b734 /trie
parent67d565f3f0e398e99bef96827f729e3e4b0edf31 (diff)
downloadgo-tangerine-ac088de6322fc16ebe75c2e5554be73754bf1fe2.tar.gz
go-tangerine-ac088de6322fc16ebe75c2e5554be73754bf1fe2.tar.zst
go-tangerine-ac088de6322fc16ebe75c2e5554be73754bf1fe2.zip
Rebrand as tangerine-network/go-tangerine
Diffstat (limited to 'trie')
-rw-r--r--trie/database.go10
-rw-r--r--trie/database_test.go4
-rw-r--r--trie/errors.go2
-rw-r--r--trie/hasher.go4
-rw-r--r--trie/iterator.go4
-rw-r--r--trie/iterator_test.go4
-rw-r--r--trie/node.go4
-rw-r--r--trie/proof.go10
-rw-r--r--trie/proof_test.go6
-rw-r--r--trie/secure_trie.go4
-rw-r--r--trie/secure_trie_test.go6
-rw-r--r--trie/sync.go6
-rw-r--r--trie/sync_test.go4
-rw-r--r--trie/trie.go8
-rw-r--r--trie/trie_test.go8
15 files changed, 42 insertions, 42 deletions
diff --git a/trie/database.go b/trie/database.go
index c40ac8b7a..2a793b32d 100644
--- a/trie/database.go
+++ b/trie/database.go
@@ -24,11 +24,11 @@ import (
"time"
"github.com/allegro/bigcache"
- "github.com/dexon-foundation/dexon/common"
- "github.com/dexon-foundation/dexon/ethdb"
- "github.com/dexon-foundation/dexon/log"
- "github.com/dexon-foundation/dexon/metrics"
- "github.com/dexon-foundation/dexon/rlp"
+ "github.com/tangerine-network/go-tangerine/common"
+ "github.com/tangerine-network/go-tangerine/ethdb"
+ "github.com/tangerine-network/go-tangerine/log"
+ "github.com/tangerine-network/go-tangerine/metrics"
+ "github.com/tangerine-network/go-tangerine/rlp"
)
var (
diff --git a/trie/database_test.go b/trie/database_test.go
index 5aa0bc375..f11370980 100644
--- a/trie/database_test.go
+++ b/trie/database_test.go
@@ -19,8 +19,8 @@ package trie
import (
"testing"
- "github.com/dexon-foundation/dexon/common"
- "github.com/dexon-foundation/dexon/ethdb"
+ "github.com/tangerine-network/go-tangerine/common"
+ "github.com/tangerine-network/go-tangerine/ethdb"
)
// Tests that the trie database returns a missing trie node error if attempting
diff --git a/trie/errors.go b/trie/errors.go
index d35ce3346..ed439e0fe 100644
--- a/trie/errors.go
+++ b/trie/errors.go
@@ -19,7 +19,7 @@ package trie
import (
"fmt"
- "github.com/dexon-foundation/dexon/common"
+ "github.com/tangerine-network/go-tangerine/common"
)
// MissingNodeError is returned by the trie functions (TryGet, TryUpdate, TryDelete)
diff --git a/trie/hasher.go b/trie/hasher.go
index cf520501e..c1dec64e0 100644
--- a/trie/hasher.go
+++ b/trie/hasher.go
@@ -20,8 +20,8 @@ import (
"hash"
"sync"
- "github.com/dexon-foundation/dexon/common"
- "github.com/dexon-foundation/dexon/rlp"
+ "github.com/tangerine-network/go-tangerine/common"
+ "github.com/tangerine-network/go-tangerine/rlp"
"golang.org/x/crypto/sha3"
)
diff --git a/trie/iterator.go b/trie/iterator.go
index fb7b43f65..022dd2884 100644
--- a/trie/iterator.go
+++ b/trie/iterator.go
@@ -21,8 +21,8 @@ import (
"container/heap"
"errors"
- "github.com/dexon-foundation/dexon/common"
- "github.com/dexon-foundation/dexon/rlp"
+ "github.com/tangerine-network/go-tangerine/common"
+ "github.com/tangerine-network/go-tangerine/rlp"
)
// Iterator is a key-value trie iterator that traverses a Trie.
diff --git a/trie/iterator_test.go b/trie/iterator_test.go
index 4bc4c0d4f..10f94fd4e 100644
--- a/trie/iterator_test.go
+++ b/trie/iterator_test.go
@@ -22,8 +22,8 @@ import (
"math/rand"
"testing"
- "github.com/dexon-foundation/dexon/common"
- "github.com/dexon-foundation/dexon/ethdb"
+ "github.com/tangerine-network/go-tangerine/common"
+ "github.com/tangerine-network/go-tangerine/ethdb"
)
func TestIterator(t *testing.T) {
diff --git a/trie/node.go b/trie/node.go
index 2121dbf14..62c4b61ff 100644
--- a/trie/node.go
+++ b/trie/node.go
@@ -21,8 +21,8 @@ import (
"io"
"strings"
- "github.com/dexon-foundation/dexon/common"
- "github.com/dexon-foundation/dexon/rlp"
+ "github.com/tangerine-network/go-tangerine/common"
+ "github.com/tangerine-network/go-tangerine/rlp"
)
var indices = []string{"0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f", "[17]"}
diff --git a/trie/proof.go b/trie/proof.go
index 6fbb71f0f..04d29db24 100644
--- a/trie/proof.go
+++ b/trie/proof.go
@@ -20,11 +20,11 @@ import (
"bytes"
"fmt"
- "github.com/dexon-foundation/dexon/common"
- "github.com/dexon-foundation/dexon/crypto"
- "github.com/dexon-foundation/dexon/ethdb"
- "github.com/dexon-foundation/dexon/log"
- "github.com/dexon-foundation/dexon/rlp"
+ "github.com/tangerine-network/go-tangerine/common"
+ "github.com/tangerine-network/go-tangerine/crypto"
+ "github.com/tangerine-network/go-tangerine/ethdb"
+ "github.com/tangerine-network/go-tangerine/log"
+ "github.com/tangerine-network/go-tangerine/rlp"
)
// Prove constructs a merkle proof for key. The result contains all encoded nodes
diff --git a/trie/proof_test.go b/trie/proof_test.go
index b20640db0..c580fd766 100644
--- a/trie/proof_test.go
+++ b/trie/proof_test.go
@@ -23,9 +23,9 @@ import (
"testing"
"time"
- "github.com/dexon-foundation/dexon/common"
- "github.com/dexon-foundation/dexon/crypto"
- "github.com/dexon-foundation/dexon/ethdb"
+ "github.com/tangerine-network/go-tangerine/common"
+ "github.com/tangerine-network/go-tangerine/crypto"
+ "github.com/tangerine-network/go-tangerine/ethdb"
)
func init() {
diff --git a/trie/secure_trie.go b/trie/secure_trie.go
index 852629c34..7e398668a 100644
--- a/trie/secure_trie.go
+++ b/trie/secure_trie.go
@@ -19,8 +19,8 @@ package trie
import (
"fmt"
- "github.com/dexon-foundation/dexon/common"
- "github.com/dexon-foundation/dexon/log"
+ "github.com/tangerine-network/go-tangerine/common"
+ "github.com/tangerine-network/go-tangerine/log"
)
// SecureTrie wraps a trie with key hashing. In a secure trie, all
diff --git a/trie/secure_trie_test.go b/trie/secure_trie_test.go
index a24917d3a..7a0cc32b4 100644
--- a/trie/secure_trie_test.go
+++ b/trie/secure_trie_test.go
@@ -22,9 +22,9 @@ import (
"sync"
"testing"
- "github.com/dexon-foundation/dexon/common"
- "github.com/dexon-foundation/dexon/crypto"
- "github.com/dexon-foundation/dexon/ethdb"
+ "github.com/tangerine-network/go-tangerine/common"
+ "github.com/tangerine-network/go-tangerine/crypto"
+ "github.com/tangerine-network/go-tangerine/ethdb"
)
func newEmptySecure() *SecureTrie {
diff --git a/trie/sync.go b/trie/sync.go
index d922ff681..0b881fa16 100644
--- a/trie/sync.go
+++ b/trie/sync.go
@@ -20,9 +20,9 @@ import (
"errors"
"fmt"
- "github.com/dexon-foundation/dexon/common"
- "github.com/dexon-foundation/dexon/common/prque"
- "github.com/dexon-foundation/dexon/ethdb"
+ "github.com/tangerine-network/go-tangerine/common"
+ "github.com/tangerine-network/go-tangerine/common/prque"
+ "github.com/tangerine-network/go-tangerine/ethdb"
)
// ErrNotRequested is returned by the trie sync when it's requested to process a
diff --git a/trie/sync_test.go b/trie/sync_test.go
index e1fa10761..da8f941b0 100644
--- a/trie/sync_test.go
+++ b/trie/sync_test.go
@@ -20,8 +20,8 @@ import (
"bytes"
"testing"
- "github.com/dexon-foundation/dexon/common"
- "github.com/dexon-foundation/dexon/ethdb"
+ "github.com/tangerine-network/go-tangerine/common"
+ "github.com/tangerine-network/go-tangerine/ethdb"
)
// makeTestTrie create a sample test trie to test node-wise reconstruction.
diff --git a/trie/trie.go b/trie/trie.go
index d2b3f98fe..c83532e26 100644
--- a/trie/trie.go
+++ b/trie/trie.go
@@ -21,10 +21,10 @@ import (
"bytes"
"fmt"
- "github.com/dexon-foundation/dexon/common"
- "github.com/dexon-foundation/dexon/crypto"
- "github.com/dexon-foundation/dexon/log"
- "github.com/dexon-foundation/dexon/metrics"
+ "github.com/tangerine-network/go-tangerine/common"
+ "github.com/tangerine-network/go-tangerine/crypto"
+ "github.com/tangerine-network/go-tangerine/log"
+ "github.com/tangerine-network/go-tangerine/metrics"
)
var (
diff --git a/trie/trie_test.go b/trie/trie_test.go
index 69b596031..3cb8df28c 100644
--- a/trie/trie_test.go
+++ b/trie/trie_test.go
@@ -30,10 +30,10 @@ import (
"testing/quick"
"github.com/davecgh/go-spew/spew"
- "github.com/dexon-foundation/dexon/common"
- "github.com/dexon-foundation/dexon/crypto"
- "github.com/dexon-foundation/dexon/ethdb"
- "github.com/dexon-foundation/dexon/rlp"
+ "github.com/tangerine-network/go-tangerine/common"
+ "github.com/tangerine-network/go-tangerine/crypto"
+ "github.com/tangerine-network/go-tangerine/ethdb"
+ "github.com/tangerine-network/go-tangerine/rlp"
)
func init() {