Skip to content

Commit 08dbcbb

Browse files
committed
Chore: Sorting imported library
1 parent 72ca227 commit 08dbcbb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+174
-171
lines changed

core/blockchain_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,15 @@ import (
2424
"testing"
2525
"time"
2626

27-
"github.com/tomochain/tomochain/core/rawdb"
28-
"github.com/tomochain/tomochain/trie"
29-
3027
"github.com/tomochain/tomochain/common"
3128
"github.com/tomochain/tomochain/consensus/ethash"
29+
"github.com/tomochain/tomochain/core/rawdb"
3230
"github.com/tomochain/tomochain/core/state"
3331
"github.com/tomochain/tomochain/core/types"
3432
"github.com/tomochain/tomochain/core/vm"
3533
"github.com/tomochain/tomochain/crypto"
3634
"github.com/tomochain/tomochain/params"
35+
"github.com/tomochain/tomochain/trie"
3736
)
3837

3938
// Test fork of length N starting from block i

core/database_util_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,12 @@ import (
2121
"math/big"
2222
"testing"
2323

24-
"github.com/tomochain/tomochain/core/rawdb"
25-
"github.com/tomochain/tomochain/trie"
26-
2724
"github.com/tomochain/tomochain/common"
25+
"github.com/tomochain/tomochain/core/rawdb"
2826
"github.com/tomochain/tomochain/core/types"
2927
"github.com/tomochain/tomochain/crypto/sha3"
3028
"github.com/tomochain/tomochain/rlp"
29+
"github.com/tomochain/tomochain/trie"
3130
)
3231

3332
// Tests block header storage and retrieval operations.

core/genesis.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,17 @@ import (
2525
"math/big"
2626
"strings"
2727

28-
"github.com/tomochain/tomochain/core/rawdb"
29-
"github.com/tomochain/tomochain/trie"
30-
3128
"github.com/tomochain/tomochain/common"
3229
"github.com/tomochain/tomochain/common/hexutil"
3330
"github.com/tomochain/tomochain/common/math"
31+
"github.com/tomochain/tomochain/core/rawdb"
3432
"github.com/tomochain/tomochain/core/state"
3533
"github.com/tomochain/tomochain/core/types"
3634
"github.com/tomochain/tomochain/ethdb"
3735
"github.com/tomochain/tomochain/log"
3836
"github.com/tomochain/tomochain/params"
3937
"github.com/tomochain/tomochain/rlp"
38+
"github.com/tomochain/tomochain/trie"
4039
)
4140

4241
//go:generate gencodec -type Genesis -field-override genesisSpecMarshaling -out gen_genesis.go

core/rawdb/database.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ package rawdb
1818

1919
import (
2020
"fmt"
21+
2122
"github.com/tomochain/tomochain/ethdb"
2223
"github.com/tomochain/tomochain/ethdb/leveldb"
2324
"github.com/tomochain/tomochain/ethdb/memorydb"

core/state/managed_state_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
package state
1818

1919
import (
20-
"github.com/tomochain/tomochain/core/rawdb"
2120
"testing"
2221

2322
"github.com/tomochain/tomochain/common"
23+
"github.com/tomochain/tomochain/core/rawdb"
2424
)
2525

2626
var addr = common.BytesToAddress([]byte("test"))

core/state/state_reader.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
package state
22

33
import (
4+
"math/big"
5+
46
"github.com/tomochain/tomochain/common"
57
"github.com/tomochain/tomochain/crypto"
6-
"math/big"
78
)
89

910
func GetLocSimpleVariable(slot uint64) common.Hash {

core/state/state_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ package state
1818

1919
import (
2020
"bytes"
21-
"github.com/tomochain/tomochain/core/rawdb"
2221
"math/big"
2322
"testing"
2423

2524
"github.com/tomochain/tomochain/common"
25+
"github.com/tomochain/tomochain/core/rawdb"
2626
"github.com/tomochain/tomochain/crypto"
2727
"github.com/tomochain/tomochain/ethdb"
2828
checker "gopkg.in/check.v1"
@@ -88,7 +88,7 @@ func (s *StateSuite) TestDump(c *checker.C) {
8888
}
8989

9090
func (s *StateSuite) SetUpTest(c *checker.C) {
91-
s.db= rawdb.NewMemoryDatabase()
91+
s.db = rawdb.NewMemoryDatabase()
9292
s.state, _ = New(common.Hash{}, NewDatabase(s.db))
9393
}
9494

core/state/statedb.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,8 +449,8 @@ func (self *StateDB) createObject(addr common.Address) (newobj, prev *stateObjec
449449
// CreateAccount is called during the EVM CREATE operation. The situation might arise that
450450
// a contract does the following:
451451
//
452-
// 1. sends funds to sha(account ++ (nonce + 1))
453-
// 2. tx_create(sha(account ++ nonce)) (note that this gets the address of 1)
452+
// 1. sends funds to sha(account ++ (nonce + 1))
453+
// 2. tx_create(sha(account ++ nonce)) (note that this gets the address of 1)
454454
//
455455
// Carrying over the balance ensures that Ether doesn't disappear.
456456
func (self *StateDB) CreateAccount(addr common.Address) {

core/state/statedb_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import (
2020
"bytes"
2121
"encoding/binary"
2222
"fmt"
23-
"github.com/tomochain/tomochain/core/rawdb"
2423
"math"
2524
"math/big"
2625
"math/rand"
@@ -29,10 +28,10 @@ import (
2928
"testing"
3029
"testing/quick"
3130

32-
check "gopkg.in/check.v1"
33-
3431
"github.com/tomochain/tomochain/common"
32+
"github.com/tomochain/tomochain/core/rawdb"
3533
"github.com/tomochain/tomochain/core/types"
34+
check "gopkg.in/check.v1"
3635
)
3736

3837
// Tests that updating a state trie does not leak any database writes prior to

core/state/statedb_utils.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import (
55

66
"github.com/tomochain/tomochain/common"
77
"github.com/tomochain/tomochain/core/types"
8-
98
"github.com/tomochain/tomochain/crypto"
109
)
1110

0 commit comments

Comments
 (0)