aboutsummaryrefslogtreecommitdiffstats
path: root/core/state
diff options
context:
space:
mode:
authorWei-Ning Huang <w@cobinhood.com>2018-09-26 10:48:31 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 21:32:49 +0800
commitd056357e4999c6c70c8b8e85a9e4f533895ed6c2 (patch)
treebe9f205d2ed8c73d2130b47f01fed2670c1b4d64 /core/state
parent953e13b21b0aae335ef655a1907a8883f1ba7be2 (diff)
downloaddexon-d056357e4999c6c70c8b8e85a9e4f533895ed6c2.tar
dexon-d056357e4999c6c70c8b8e85a9e4f533895ed6c2.tar.gz
dexon-d056357e4999c6c70c8b8e85a9e4f533895ed6c2.tar.bz2
dexon-d056357e4999c6c70c8b8e85a9e4f533895ed6c2.tar.lz
dexon-d056357e4999c6c70c8b8e85a9e4f533895ed6c2.tar.xz
dexon-d056357e4999c6c70c8b8e85a9e4f533895ed6c2.tar.zst
dexon-d056357e4999c6c70c8b8e85a9e4f533895ed6c2.zip
Change import go github.com/dexon-foundation/dexon
Diffstat (limited to 'core/state')
-rw-r--r--core/state/database.go6
-rw-r--r--core/state/dump.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
13 files changed, 40 insertions, 40 deletions
diff --git a/core/state/database.go b/core/state/database.go
index f6ea144b9..bdb64387f 100644
--- a/core/state/database.go
+++ b/core/state/database.go
@@ -20,9 +20,9 @@ import (
"fmt"
"sync"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/dexon-foundation/dexon/common"
+ "github.com/dexon-foundation/dexon/ethdb"
+ "github.com/dexon-foundation/dexon/trie"
lru "github.com/hashicorp/golang-lru"
)
diff --git a/core/state/dump.go b/core/state/dump.go
index 072dbbf05..6033ae56c 100644
--- a/core/state/dump.go
+++ b/core/state/dump.go
@@ -20,9 +20,9 @@ import (
"encoding/json"
"fmt"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/dexon-foundation/dexon/common"
+ "github.com/dexon-foundation/dexon/rlp"
+ "github.com/dexon-foundation/dexon/trie"
)
type DumpAccount struct {
diff --git a/core/state/iterator.go b/core/state/iterator.go
index 6a5c73d3d..8c75f88e7 100644
--- a/core/state/iterator.go
+++ b/core/state/iterator.go
@@ -20,9 +20,9 @@ import (
"bytes"
"fmt"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/dexon-foundation/dexon/common"
+ "github.com/dexon-foundation/dexon/rlp"
+ "github.com/dexon-foundation/dexon/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 9e46c851c..284f42c0e 100644
--- a/core/state/iterator_test.go
+++ b/core/state/iterator_test.go
@@ -20,8 +20,8 @@ import (
"bytes"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/ethdb"
+ "github.com/dexon-foundation/dexon/common"
+ "github.com/dexon-foundation/dexon/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 a03ca57db..9d669f73b 100644
--- a/core/state/journal.go
+++ b/core/state/journal.go
@@ -19,7 +19,7 @@ package state
import (
"math/big"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/dexon-foundation/dexon/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 1390ef4a0..4ac0a6bb2 100644
--- a/core/state/managed_state.go
+++ b/core/state/managed_state.go
@@ -19,7 +19,7 @@ package state
import (
"sync"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/dexon-foundation/dexon/common"
)
type account struct {
diff --git a/core/state/managed_state_test.go b/core/state/managed_state_test.go
index 3d9c4e867..74e7a6bd4 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/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/ethdb"
+ "github.com/dexon-foundation/dexon/common"
+ "github.com/dexon-foundation/dexon/ethdb"
)
var addr = common.BytesToAddress([]byte("test"))
diff --git a/core/state/state_object.go b/core/state/state_object.go
index f41ab0409..53f948346 100644
--- a/core/state/state_object.go
+++ b/core/state/state_object.go
@@ -22,9 +22,9 @@ import (
"io"
"math/big"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/dexon-foundation/dexon/common"
+ "github.com/dexon-foundation/dexon/crypto"
+ "github.com/dexon-foundation/dexon/rlp"
)
var emptyCodeHash = crypto.Keccak256(nil)
diff --git a/core/state/state_test.go b/core/state/state_test.go
index a09273f3b..cd7f56804 100644
--- a/core/state/state_test.go
+++ b/core/state/state_test.go
@@ -21,9 +21,9 @@ import (
"math/big"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/ethdb"
+ "github.com/dexon-foundation/dexon/common"
+ "github.com/dexon-foundation/dexon/crypto"
+ "github.com/dexon-foundation/dexon/ethdb"
checker "gopkg.in/check.v1"
)
diff --git a/core/state/statedb.go b/core/state/statedb.go
index 2230b10ef..ee1a6d5d9 100644
--- a/core/state/statedb.go
+++ b/core/state/statedb.go
@@ -23,12 +23,12 @@ import (
"math/big"
"sort"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/trie"
+ "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"
)
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/ethereum/go-ethereum/pull/16485#issuecomment-380438527),
+ // As documented [here](https://github.com/dexon-foundation/dexon/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 cbd5bc75e..54b6e812a 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/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/ethdb"
+ "github.com/dexon-foundation/dexon/common"
+ "github.com/dexon-foundation/dexon/core/types"
+ "github.com/dexon-foundation/dexon/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/ethereum/go-ethereum/pull/15549.
+// https://github.com/dexon-foundation/dexon/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/ethereum/go-ethereum/pull/15225#issuecomment-380191512
+// See https://github.com/dexon-foundation/dexon/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 c566e7907..eb8f498a6 100644
--- a/core/state/sync.go
+++ b/core/state/sync.go
@@ -19,9 +19,9 @@ package state
import (
"bytes"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/dexon-foundation/dexon/common"
+ "github.com/dexon-foundation/dexon/rlp"
+ "github.com/dexon-foundation/dexon/trie"
)
// NewStateSync create a new state trie download scheduler.
diff --git a/core/state/sync_test.go b/core/state/sync_test.go
index 317740160..ef900e283 100644
--- a/core/state/sync_test.go
+++ b/core/state/sync_test.go
@@ -21,10 +21,10 @@ import (
"math/big"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/dexon-foundation/dexon/common"
+ "github.com/dexon-foundation/dexon/crypto"
+ "github.com/dexon-foundation/dexon/ethdb"
+ "github.com/dexon-foundation/dexon/trie"
)
// testAccount is the data associated with an account used by the state tests.