aboutsummaryrefslogtreecommitdiffstats
path: root/core/state
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 /core/state
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 'core/state')
-rw-r--r--core/state/database.go6
-rw-r--r--core/state/dump.go6
-rw-r--r--core/state/gov.go6
-rw-r--r--core/state/iterator.go6
-rw-r--r--core/state/iterator_test.go4
-rw-r--r--core/state/journal.go2
-rw-r--r--core/state/managed_state.go2
-rw-r--r--core/state/managed_state_test.go4
-rw-r--r--core/state/state_object.go6
-rw-r--r--core/state/state_test.go6
-rw-r--r--core/state/statedb.go14
-rw-r--r--core/state/statedb_test.go10
-rw-r--r--core/state/sync.go6
-rw-r--r--core/state/sync_test.go8
14 files changed, 43 insertions, 43 deletions
diff --git a/core/state/database.go b/core/state/database.go
index bdb64387f..4d264107c 100644
--- a/core/state/database.go
+++ b/core/state/database.go
@@ -20,10 +20,10 @@ import (
"fmt"
"sync"
- "github.com/dexon-foundation/dexon/common"
- "github.com/dexon-foundation/dexon/ethdb"
- "github.com/dexon-foundation/dexon/trie"
lru "github.com/hashicorp/golang-lru"
+ "github.com/tangerine-network/go-tangerine/common"
+ "github.com/tangerine-network/go-tangerine/ethdb"
+ "github.com/tangerine-network/go-tangerine/trie"
)
// Trie cache generation limit after which to evict trie nodes from memory.
diff --git a/core/state/dump.go b/core/state/dump.go
index 6033ae56c..1ec1c34b1 100644
--- a/core/state/dump.go
+++ b/core/state/dump.go
@@ -20,9 +20,9 @@ import (
"encoding/json"
"fmt"
- "github.com/dexon-foundation/dexon/common"
- "github.com/dexon-foundation/dexon/rlp"
- "github.com/dexon-foundation/dexon/trie"
+ "github.com/tangerine-network/go-tangerine/common"
+ "github.com/tangerine-network/go-tangerine/rlp"
+ "github.com/tangerine-network/go-tangerine/trie"
)
type DumpAccount struct {
diff --git a/core/state/gov.go b/core/state/gov.go
index 8b94cfab2..766e64c72 100644
--- a/core/state/gov.go
+++ b/core/state/gov.go
@@ -1,9 +1,9 @@
package state
import (
- "github.com/dexon-foundation/dexon/common"
- "github.com/dexon-foundation/dexon/core/types"
- "github.com/dexon-foundation/dexon/trie"
+ "github.com/tangerine-network/go-tangerine/common"
+ "github.com/tangerine-network/go-tangerine/core/types"
+ "github.com/tangerine-network/go-tangerine/trie"
)
func GetGovState(statedb *StateDB, header *types.Header,
diff --git a/core/state/iterator.go b/core/state/iterator.go
index 8c75f88e7..fac100212 100644
--- a/core/state/iterator.go
+++ b/core/state/iterator.go
@@ -20,9 +20,9 @@ import (
"bytes"
"fmt"
- "github.com/dexon-foundation/dexon/common"
- "github.com/dexon-foundation/dexon/rlp"
- "github.com/dexon-foundation/dexon/trie"
+ "github.com/tangerine-network/go-tangerine/common"
+ "github.com/tangerine-network/go-tangerine/rlp"
+ "github.com/tangerine-network/go-tangerine/trie"
)
// NodeIterator is an iterator to traverse the entire state trie post-order,
diff --git a/core/state/iterator_test.go b/core/state/iterator_test.go
index 284f42c0e..7d69e0666 100644
--- a/core/state/iterator_test.go
+++ b/core/state/iterator_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"
)
// Tests that the node iterator indeed walks over the entire database contents.
diff --git a/core/state/journal.go b/core/state/journal.go
index 9d669f73b..47f02f648 100644
--- a/core/state/journal.go
+++ b/core/state/journal.go
@@ -19,7 +19,7 @@ package state
import (
"math/big"
- "github.com/dexon-foundation/dexon/common"
+ "github.com/tangerine-network/go-tangerine/common"
)
// journalEntry is a modification entry in the state change journal that can be
diff --git a/core/state/managed_state.go b/core/state/managed_state.go
index 4ac0a6bb2..6c084208e 100644
--- a/core/state/managed_state.go
+++ b/core/state/managed_state.go
@@ -19,7 +19,7 @@ package state
import (
"sync"
- "github.com/dexon-foundation/dexon/common"
+ "github.com/tangerine-network/go-tangerine/common"
)
type account struct {
diff --git a/core/state/managed_state_test.go b/core/state/managed_state_test.go
index 74e7a6bd4..f1a6b977f 100644
--- a/core/state/managed_state_test.go
+++ b/core/state/managed_state_test.go
@@ -19,8 +19,8 @@ package state
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"
)
var addr = common.BytesToAddress([]byte("test"))
diff --git a/core/state/state_object.go b/core/state/state_object.go
index 53f948346..e82d436fa 100644
--- a/core/state/state_object.go
+++ b/core/state/state_object.go
@@ -22,9 +22,9 @@ import (
"io"
"math/big"
- "github.com/dexon-foundation/dexon/common"
- "github.com/dexon-foundation/dexon/crypto"
- "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/rlp"
)
var emptyCodeHash = crypto.Keccak256(nil)
diff --git a/core/state/state_test.go b/core/state/state_test.go
index cd7f56804..84e02e090 100644
--- a/core/state/state_test.go
+++ b/core/state/state_test.go
@@ -21,9 +21,9 @@ import (
"math/big"
"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"
checker "gopkg.in/check.v1"
)
diff --git a/core/state/statedb.go b/core/state/statedb.go
index ee1a6d5d9..bc92cb21c 100644
--- a/core/state/statedb.go
+++ b/core/state/statedb.go
@@ -23,12 +23,12 @@ import (
"math/big"
"sort"
- "github.com/dexon-foundation/dexon/common"
- "github.com/dexon-foundation/dexon/core/types"
- "github.com/dexon-foundation/dexon/crypto"
- "github.com/dexon-foundation/dexon/log"
- "github.com/dexon-foundation/dexon/rlp"
- "github.com/dexon-foundation/dexon/trie"
+ "github.com/tangerine-network/go-tangerine/common"
+ "github.com/tangerine-network/go-tangerine/core/types"
+ "github.com/tangerine-network/go-tangerine/crypto"
+ "github.com/tangerine-network/go-tangerine/log"
+ "github.com/tangerine-network/go-tangerine/rlp"
+ "github.com/tangerine-network/go-tangerine/trie"
)
type revision struct {
@@ -507,7 +507,7 @@ func (self *StateDB) Copy() *StateDB {
}
// Copy the dirty states, logs, and preimages
for addr := range self.journal.dirties {
- // As documented [here](https://github.com/dexon-foundation/dexon/pull/16485#issuecomment-380438527),
+ // As documented [here](https://github.com/tangerine-network/go-tangerine/pull/16485#issuecomment-380438527),
// and in the Finalise-method, there is a case where an object is in the journal but not
// in the stateObjects: OOG after touch on ripeMD prior to Byzantium. Thus, we need to check for
// nil
diff --git a/core/state/statedb_test.go b/core/state/statedb_test.go
index 54b6e812a..d9ab94006 100644
--- a/core/state/statedb_test.go
+++ b/core/state/statedb_test.go
@@ -30,9 +30,9 @@ import (
check "gopkg.in/check.v1"
- "github.com/dexon-foundation/dexon/common"
- "github.com/dexon-foundation/dexon/core/types"
- "github.com/dexon-foundation/dexon/ethdb"
+ "github.com/tangerine-network/go-tangerine/common"
+ "github.com/tangerine-network/go-tangerine/core/types"
+ "github.com/tangerine-network/go-tangerine/ethdb"
)
// Tests that updating a state trie does not leak any database writes prior to
@@ -119,7 +119,7 @@ func TestIntermediateLeaks(t *testing.T) {
// TestCopy tests that copying a statedb object indeed makes the original and
// the copy independent of each other. This test is a regression test against
-// https://github.com/dexon-foundation/dexon/pull/15549.
+// https://github.com/tangerine-network/go-tangerine/pull/15549.
func TestCopy(t *testing.T) {
// Create a random state test to copy and modify "independently"
orig, _ := New(common.Hash{}, NewDatabase(ethdb.NewMemDatabase()))
@@ -422,7 +422,7 @@ func (s *StateSuite) TestTouchDelete(c *check.C) {
}
// TestCopyOfCopy tests that modified objects are carried over to the copy, and the copy of the copy.
-// See https://github.com/dexon-foundation/dexon/pull/15225#issuecomment-380191512
+// See https://github.com/tangerine-network/go-tangerine/pull/15225#issuecomment-380191512
func TestCopyOfCopy(t *testing.T) {
sdb, _ := New(common.Hash{}, NewDatabase(ethdb.NewMemDatabase()))
addr := common.HexToAddress("aaaa")
diff --git a/core/state/sync.go b/core/state/sync.go
index eb8f498a6..03073bff2 100644
--- a/core/state/sync.go
+++ b/core/state/sync.go
@@ -19,9 +19,9 @@ package state
import (
"bytes"
- "github.com/dexon-foundation/dexon/common"
- "github.com/dexon-foundation/dexon/rlp"
- "github.com/dexon-foundation/dexon/trie"
+ "github.com/tangerine-network/go-tangerine/common"
+ "github.com/tangerine-network/go-tangerine/rlp"
+ "github.com/tangerine-network/go-tangerine/trie"
)
// NewStateSync create a new state trie download scheduler.
diff --git a/core/state/sync_test.go b/core/state/sync_test.go
index ef900e283..64b48cc27 100644
--- a/core/state/sync_test.go
+++ b/core/state/sync_test.go
@@ -21,10 +21,10 @@ import (
"math/big"
"testing"
- "github.com/dexon-foundation/dexon/common"
- "github.com/dexon-foundation/dexon/crypto"
- "github.com/dexon-foundation/dexon/ethdb"
- "github.com/dexon-foundation/dexon/trie"
+ "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/trie"
)
// testAccount is the data associated with an account used by the state tests.