fix import order

pull/188/head
Minh Doan 6 years ago committed by Minh Doan
parent 90c82a017a
commit 182a519949
  1. 3
      benchmark.go
  2. 3
      core/blockchain.go
  3. 3
      core/chain_makers.go
  4. 3
      core/state/state_test.go
  5. 1
      harmony/main.go
  6. 11
      node/node.go
  7. 3
      trie/proof.go
  8. 3
      trie/sync_test.go

@ -9,8 +9,6 @@ import (
"runtime"
"time"
"github.com/harmony-one/harmony/p2p/p2pimpl"
"github.com/harmony-one/harmony/consensus"
"github.com/harmony-one/harmony/internal/attack"
"github.com/harmony-one/harmony/internal/db"
@ -18,6 +16,7 @@ import (
pkg_newnode "github.com/harmony-one/harmony/newnode"
"github.com/harmony-one/harmony/node"
"github.com/harmony-one/harmony/p2p"
"github.com/harmony-one/harmony/p2p/p2pimpl"
"github.com/harmony-one/harmony/profiler"
)

@ -27,8 +27,6 @@ import (
"sync/atomic"
"time"
hdb "github.com/harmony-one/harmony/internal/db"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/mclock"
"github.com/ethereum/go-ethereum/common/prque"
@ -43,6 +41,7 @@ import (
"github.com/harmony-one/harmony/core/state"
"github.com/harmony-one/harmony/core/types"
"github.com/harmony-one/harmony/core/vm"
hdb "github.com/harmony-one/harmony/internal/db"
"github.com/harmony-one/harmony/trie"
"github.com/hashicorp/golang-lru"
)

@ -20,14 +20,13 @@ import (
"fmt"
"math/big"
hdb "github.com/harmony-one/harmony/internal/db"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/params"
"github.com/harmony-one/harmony/consensus"
"github.com/harmony-one/harmony/core/state"
"github.com/harmony-one/harmony/core/types"
"github.com/harmony-one/harmony/core/vm"
hdb "github.com/harmony-one/harmony/internal/db"
)
// BlockGen creates blocks for testing.

@ -21,10 +21,9 @@ import (
"math/big"
"testing"
"github.com/harmony-one/harmony/internal/db"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/crypto"
"github.com/harmony-one/harmony/internal/db"
checker "gopkg.in/check.v1"
)

@ -7,7 +7,6 @@ import (
"math/big"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/params"
"github.com/harmony-one/harmony/consensus"

@ -14,16 +14,12 @@ import (
"sync/atomic"
"time"
"github.com/ethereum/go-ethereum/rlp"
"github.com/harmony-one/harmony/services/explorer"
"github.com/harmony-one/harmony/client"
clientService "github.com/harmony-one/harmony/client/service"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/params"
"github.com/ethereum/go-ethereum/rlp"
"github.com/harmony-one/harmony/client"
clientService "github.com/harmony-one/harmony/client/service"
bft "github.com/harmony-one/harmony/consensus"
"github.com/harmony-one/harmony/core"
"github.com/harmony-one/harmony/core/types"
@ -35,6 +31,7 @@ import (
"github.com/harmony-one/harmony/p2p"
"github.com/harmony-one/harmony/p2p/host"
proto_node "github.com/harmony-one/harmony/proto/node"
"github.com/harmony-one/harmony/services/explorer"
"github.com/harmony-one/harmony/services/syncing"
"github.com/harmony-one/harmony/services/syncing/downloader"
downloader_pb "github.com/harmony-one/harmony/services/syncing/downloader/proto"

@ -20,12 +20,11 @@ import (
"bytes"
"fmt"
"github.com/harmony-one/harmony/internal/db"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum/go-ethereum/rlp"
"github.com/harmony-one/harmony/internal/db"
)
// Prove constructs a merkle proof for key. The result contains all encoded nodes

@ -20,9 +20,8 @@ import (
"bytes"
"testing"
"github.com/harmony-one/harmony/internal/db"
"github.com/ethereum/go-ethereum/common"
"github.com/harmony-one/harmony/internal/db"
)
// makeTestTrie create a sample test trie to test node-wise reconstruction.

Loading…
Cancel
Save