fix import order

pull/338/head
Minh Doan 6 years ago committed by Minh Doan
parent 85eb712d42
commit d634d43148
  1. 3
      api/proto/node/pingpong.go
  2. 2
      api/proto/node/pingpong_test.go
  3. 2
      consensus/consensus.go
  4. 1
      consensus/consensus_leader_msg.go
  5. 1
      crypto/bls/bls.go
  6. 2
      crypto/pki/utils.go
  7. 5
      crypto/pki/utils_test.go
  8. 2
      internal/beaconchain/libs/beaconchain.go
  9. 2
      internal/newnode/newnode.go
  10. 5
      internal/utils/utils.go
  11. 2
      p2p/p2p.go
  12. 5
      test/crypto/bls/main.go

@ -14,12 +14,11 @@ import (
"bytes"
"encoding/gob"
"fmt"
"github.com/harmony-one/bls/ffi/go/bls"
"log"
"github.com/harmony-one/bls/ffi/go/bls"
"github.com/harmony-one/harmony/api/proto"
"github.com/harmony-one/harmony/p2p"
"github.com/libp2p/go-libp2p-peer"
)

@ -2,11 +2,11 @@ package node
import (
"fmt"
"github.com/harmony-one/bls/ffi/go/bls"
"reflect"
"strings"
"testing"
"github.com/harmony-one/bls/ffi/go/bls"
"github.com/harmony-one/harmony/api/proto"
"github.com/harmony-one/harmony/crypto/pki"
"github.com/harmony-one/harmony/p2p"

@ -6,7 +6,6 @@ import (
"encoding/binary"
"encoding/hex"
"fmt"
"github.com/harmony-one/bls/ffi/go/bls"
"reflect"
"strconv"
"sync"
@ -14,6 +13,7 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/params"
"github.com/ethereum/go-ethereum/rlp"
"github.com/harmony-one/bls/ffi/go/bls"
"github.com/harmony-one/harmony/core/state"
"github.com/harmony-one/harmony/core/types"
bls_cosi "github.com/harmony-one/harmony/crypto/bls"

@ -2,6 +2,7 @@ package consensus
import (
"bytes"
protobuf "github.com/golang/protobuf/proto"
"github.com/harmony-one/bls/ffi/go/bls"
consensus_proto "github.com/harmony-one/harmony/api/consensus"

@ -3,6 +3,7 @@ package bls
import (
"errors"
"fmt"
"github.com/harmony-one/bls/ffi/go/bls"
)

@ -3,9 +3,9 @@ package pki
import (
"crypto/sha256"
"encoding/binary"
"github.com/harmony-one/bls/ffi/go/bls"
"github.com/dedis/kyber"
"github.com/harmony-one/bls/ffi/go/bls"
"github.com/harmony-one/harmony/crypto"
)

@ -2,11 +2,12 @@ package pki
import (
"encoding/binary"
"github.com/harmony-one/bls/ffi/go/bls"
"github.com/harmony-one/harmony/crypto"
"reflect"
"testing"
"time"
"github.com/harmony-one/bls/ffi/go/bls"
"github.com/harmony-one/harmony/crypto"
)
func TestGetAddressFromPublicKey(test *testing.T) {

@ -1,12 +1,12 @@
package beaconchain
import (
"github.com/harmony-one/bls/ffi/go/bls"
"math/rand"
"os"
"strconv"
"sync"
"github.com/harmony-one/bls/ffi/go/bls"
"github.com/harmony-one/harmony/api/proto/bcconn"
proto_identity "github.com/harmony-one/harmony/api/proto/identity"
"github.com/harmony-one/harmony/api/proto/node"

@ -3,12 +3,12 @@ package newnode
import (
"errors"
"fmt"
"github.com/harmony-one/bls/ffi/go/bls"
"os"
"strconv"
"time"
"github.com/ethereum/go-ethereum/log"
"github.com/harmony-one/bls/ffi/go/bls"
"github.com/harmony-one/harmony/api/proto/bcconn"
proto_identity "github.com/harmony-one/harmony/api/proto/identity"
proto_node "github.com/harmony-one/harmony/api/proto/node"

@ -4,7 +4,6 @@ import (
"bytes"
"encoding/binary"
"encoding/json"
"github.com/harmony-one/bls/ffi/go/bls"
"io"
"log"
mrand "math/rand"
@ -13,12 +12,12 @@ import (
"strconv"
"sync"
p2p_crypto "github.com/libp2p/go-libp2p-crypto"
"github.com/dedis/kyber"
"github.com/harmony-one/bls/ffi/go/bls"
"github.com/harmony-one/harmony/crypto"
"github.com/harmony-one/harmony/crypto/pki"
"github.com/harmony-one/harmony/p2p"
p2p_crypto "github.com/libp2p/go-libp2p-crypto"
)
var lock sync.Mutex

@ -2,9 +2,9 @@ package p2p
import (
"fmt"
"github.com/harmony-one/bls/ffi/go/bls"
"net"
"github.com/harmony-one/bls/ffi/go/bls"
"github.com/libp2p/go-libp2p-peer"
"github.com/multiformats/go-multiaddr"
)

@ -4,10 +4,11 @@ import (
"crypto/ecdsa"
"crypto/rand"
"encoding/hex"
"github.com/ethereum/go-ethereum/crypto"
"github.com/harmony-one/bls/ffi/go/bls"
"log"
"time"
"github.com/ethereum/go-ethereum/crypto"
"github.com/harmony-one/bls/ffi/go/bls"
)
func main() {

Loading…
Cancel
Save