fix the build after rename the repo to harmony-one

[TEST]
$ ./go_executable_build.sh
Harmony (C) 2018. benchmark, version v1174-23ace87 (ec2-user@ 2018-11-15T12:07:48+0000)
Harmony (C) 2018. txgen, version v1174-23ace87 (ec2-user@ 2018-11-15T12:07:48+0000)

Signed-off-by: Leo Chen <leo@harmony.one>
pull/76/head
Leo Chen 6 years ago
parent 04b4fbb00c
commit 2a602db9b0
  1. 4
      README.md
  2. 2
      attack/attack.go
  3. 10
      beaconchain/beaconchain.go
  4. 6
      beaconchain/beaconchain_handler.go
  5. 14
      benchmark.go
  6. 4
      blockchain/block.go
  7. 2
      blockchain/blockchain.go
  8. 2
      blockchain/blockchain_test.go
  9. 2
      blockchain/transaction.go
  10. 4
      blockchain/utxopool.go
  11. 10
      client/client.go
  12. 2
      client/config/config.go
  13. 18
      client/txgen/main.go
  14. 2
      client/utils.go
  15. 18
      client/wallet/main.go
  16. 12
      consensus/consensus.go
  17. 2
      consensus/consensus_engine.go
  18. 12
      consensus/consensus_leader.go
  19. 6
      consensus/consensus_leader_msg.go
  20. 8
      consensus/consensus_leader_msg_test.go
  21. 2
      consensus/consensus_test.go
  22. 14
      consensus/consensus_validator.go
  23. 4
      consensus/consensus_validator_msg.go
  24. 6
      consensus/consensus_validator_msg_test.go
  25. 4
      core/block_validator.go
  26. 6
      core/blockchain.go
  27. 2
      core/events.go
  28. 4
      core/evm.go
  29. 6
      core/headerchain.go
  30. 2
      core/rawdb/accessors_chain.go
  31. 2
      core/rawdb/accessors_chain_test.go
  32. 2
      core/rawdb/accessors_indexes.go
  33. 2
      core/rawdb/accessors_indexes_test.go
  34. 4
      core/state_processor.go
  35. 2
      core/tx_journal.go
  36. 2
      core/tx_list.go
  37. 2
      core/tx_list_test.go
  38. 2
      core/tx_pool.go
  39. 2
      core/tx_pool_test.go
  40. 2
      core/types.go
  41. 4
      crypto/pki/utils.go
  42. 2
      db/db.go
  43. 2
      db/memory_db.go
  44. 4
      harmony/main.go
  45. 18
      node/node.go
  46. 14
      node/node_handler.go
  47. 4
      node/node_test.go
  48. 4
      node/node_utils.go
  49. 2
      p2p/helper_test.go
  50. 2
      p2p/ida/ida.go
  51. 2
      p2p/ida/ida_test.go
  52. 2
      p2p/ida/interface.go
  53. 2
      p2p/peer.go
  54. 2
      profiler/profiler.go
  55. 4
      proto/client/client.go
  56. 2
      proto/consensus/consensus.go
  57. 2
      proto/identity/identity.go
  58. 6
      proto/node/node.go
  59. 2
      runid/run-identity.go
  60. 4
      runnode/run-node.go
  61. 6
      syncing/syncing.go
  62. 6
      utils/distribution_config.go
  63. 2
      utils/utils.go

@ -1,5 +1,5 @@
# Harmony Benchmark
[![Build Status](https://travis-ci.com/simple-rules/harmony-benchmark.svg?token=DnoYvYiTAk7pqTo9XsTi&branch=master)](https://travis-ci.com/simple-rules/harmony-benchmark)
[![Build Status](https://travis-ci.com/harmony-one/harmony.svg?token=DnoYvYiTAk7pqTo9XsTi&branch=master)](https://travis-ci.com/harmony-one/harmony)
## Coding Guidelines
@ -18,7 +18,7 @@ mkdir -p $HOME/<path_of_your_choice>/src
cd $HOME/<path_of_your_choice>/src
git clone git@github.com:simple-rules/harmony-benchmark.git
git clone git@github.com:harmony-one/harmony.git
cd harmony-benchmark

@ -6,7 +6,7 @@ import (
"sync"
"time"
"github.com/simple-rules/harmony-benchmark/log"
"github.com/harmony-one/harmony/log"
)
// Constants used for attack model.

@ -7,11 +7,11 @@ import (
"sync"
"github.com/dedis/kyber"
"github.com/simple-rules/harmony-benchmark/crypto/pki"
"github.com/simple-rules/harmony-benchmark/log"
"github.com/simple-rules/harmony-benchmark/node"
"github.com/simple-rules/harmony-benchmark/p2p"
proto_identity "github.com/simple-rules/harmony-benchmark/proto/identity"
"github.com/harmony-one/harmony/crypto/pki"
"github.com/harmony-one/harmony/log"
"github.com/harmony-one/harmony/node"
"github.com/harmony-one/harmony/p2p"
proto_identity "github.com/harmony-one/harmony/proto/identity"
)
var mutex sync.Mutex

@ -5,9 +5,9 @@ import (
"net"
"os"
"github.com/simple-rules/harmony-benchmark/p2p"
"github.com/simple-rules/harmony-benchmark/proto"
proto_identity "github.com/simple-rules/harmony-benchmark/proto/identity"
"github.com/harmony-one/harmony/p2p"
"github.com/harmony-one/harmony/proto"
proto_identity "github.com/harmony-one/harmony/proto/identity"
)
//BeaconChainHandler handles registration of new Identities

@ -9,13 +9,13 @@ import (
"runtime"
"time"
"github.com/simple-rules/harmony-benchmark/attack"
"github.com/simple-rules/harmony-benchmark/consensus"
"github.com/simple-rules/harmony-benchmark/db"
"github.com/simple-rules/harmony-benchmark/log"
"github.com/simple-rules/harmony-benchmark/node"
"github.com/simple-rules/harmony-benchmark/profiler"
"github.com/simple-rules/harmony-benchmark/utils"
"github.com/harmony-one/harmony/attack"
"github.com/harmony-one/harmony/consensus"
"github.com/harmony-one/harmony/db"
"github.com/harmony-one/harmony/log"
"github.com/harmony-one/harmony/node"
"github.com/harmony-one/harmony/profiler"
"github.com/harmony-one/harmony/utils"
)
var (

@ -8,8 +8,8 @@ import (
"log"
"time"
"github.com/simple-rules/harmony-benchmark/db"
"github.com/simple-rules/harmony-benchmark/utils"
"github.com/harmony-one/harmony/db"
"github.com/harmony-one/harmony/utils"
)
// Block is a block in the blockchain that contains block headers, transactions and signature etc.

@ -5,7 +5,7 @@ import (
"encoding/hex"
"github.com/dedis/kyber"
"github.com/simple-rules/harmony-benchmark/crypto/pki"
"github.com/harmony-one/harmony/crypto/pki"
)
// Blockchain keeps a sequence of Blocks

@ -3,7 +3,7 @@ package blockchain
import (
"testing"
"github.com/simple-rules/harmony-benchmark/crypto/pki"
"github.com/harmony-one/harmony/crypto/pki"
)
var (

@ -12,7 +12,7 @@ import (
"github.com/dedis/kyber"
"github.com/dedis/kyber/sign/schnorr"
"github.com/simple-rules/harmony-benchmark/crypto"
"github.com/harmony-one/harmony/crypto"
)
var (

@ -9,8 +9,8 @@ import (
"sync"
"github.com/dedis/kyber/sign/schnorr"
"github.com/simple-rules/harmony-benchmark/crypto"
"github.com/simple-rules/harmony-benchmark/log"
"github.com/harmony-one/harmony/crypto"
"github.com/harmony-one/harmony/log"
)
// Vout2AmountMap is a TODO type.

@ -5,12 +5,12 @@ import (
"encoding/gob"
"sync"
"github.com/simple-rules/harmony-benchmark/proto/node"
"github.com/harmony-one/harmony/proto/node"
"github.com/simple-rules/harmony-benchmark/blockchain"
"github.com/simple-rules/harmony-benchmark/log"
"github.com/simple-rules/harmony-benchmark/p2p"
client_proto "github.com/simple-rules/harmony-benchmark/proto/client"
"github.com/harmony-one/harmony/blockchain"
"github.com/harmony-one/harmony/log"
"github.com/harmony-one/harmony/p2p"
client_proto "github.com/harmony-one/harmony/proto/client"
)
// A client represents a node (e.g. a wallet) which sends transactions and receives responses from the harmony network

@ -7,7 +7,7 @@ import (
"strconv"
"strings"
"github.com/simple-rules/harmony-benchmark/p2p"
"github.com/harmony-one/harmony/p2p"
)
// Entry is a single config of a node.

@ -12,15 +12,15 @@ import (
"sync"
"time"
"github.com/simple-rules/harmony-benchmark/blockchain"
"github.com/simple-rules/harmony-benchmark/client"
client_config "github.com/simple-rules/harmony-benchmark/client/config"
"github.com/simple-rules/harmony-benchmark/consensus"
"github.com/simple-rules/harmony-benchmark/crypto/pki"
"github.com/simple-rules/harmony-benchmark/log"
"github.com/simple-rules/harmony-benchmark/node"
"github.com/simple-rules/harmony-benchmark/p2p"
proto_node "github.com/simple-rules/harmony-benchmark/proto/node"
"github.com/harmony-one/harmony/blockchain"
"github.com/harmony-one/harmony/client"
client_config "github.com/harmony-one/harmony/client/config"
"github.com/harmony-one/harmony/consensus"
"github.com/harmony-one/harmony/crypto/pki"
"github.com/harmony-one/harmony/log"
"github.com/harmony-one/harmony/node"
"github.com/harmony-one/harmony/p2p"
proto_node "github.com/harmony-one/harmony/proto/node"
)
var (

@ -7,7 +7,7 @@ import (
"net/http"
"sync"
"github.com/simple-rules/harmony-benchmark/crypto/pki"
"github.com/harmony-one/harmony/crypto/pki"
)
var AddressToIntPriKeyMap map[[20]byte]int // For convenience, we use int as the secret seed for generating private key

@ -17,15 +17,15 @@ import (
"time"
"github.com/dedis/kyber"
"github.com/simple-rules/harmony-benchmark/blockchain"
"github.com/simple-rules/harmony-benchmark/client"
client_config "github.com/simple-rules/harmony-benchmark/client/config"
"github.com/simple-rules/harmony-benchmark/crypto"
"github.com/simple-rules/harmony-benchmark/crypto/pki"
"github.com/simple-rules/harmony-benchmark/node"
"github.com/simple-rules/harmony-benchmark/p2p"
proto_node "github.com/simple-rules/harmony-benchmark/proto/node"
"github.com/simple-rules/harmony-benchmark/utils"
"github.com/harmony-one/harmony/blockchain"
"github.com/harmony-one/harmony/client"
client_config "github.com/harmony-one/harmony/client/config"
"github.com/harmony-one/harmony/crypto"
"github.com/harmony-one/harmony/crypto/pki"
"github.com/harmony-one/harmony/node"
"github.com/harmony-one/harmony/p2p"
proto_node "github.com/harmony-one/harmony/proto/node"
"github.com/harmony-one/harmony/utils"
)
func main() {

@ -8,12 +8,12 @@ import (
"github.com/dedis/kyber"
"github.com/dedis/kyber/sign/schnorr"
"github.com/simple-rules/harmony-benchmark/blockchain"
"github.com/simple-rules/harmony-benchmark/crypto"
"github.com/simple-rules/harmony-benchmark/crypto/pki"
"github.com/simple-rules/harmony-benchmark/log"
"github.com/simple-rules/harmony-benchmark/p2p"
"github.com/simple-rules/harmony-benchmark/utils"
"github.com/harmony-one/harmony/blockchain"
"github.com/harmony-one/harmony/crypto"
"github.com/harmony-one/harmony/crypto/pki"
"github.com/harmony-one/harmony/log"
"github.com/harmony-one/harmony/p2p"
"github.com/harmony-one/harmony/utils"
)
// Consensus data containing all info related to one round of consensus process

@ -7,7 +7,7 @@ import (
"github.com/ethereum/go-ethereum/core/state"
"github.com/ethereum/go-ethereum/params"
"github.com/ethereum/go-ethereum/rpc"
"github.com/simple-rules/harmony-benchmark/core/types"
"github.com/harmony-one/harmony/core/types"
)
// ChainReader defines a small collection of methods needed to access the local

@ -8,15 +8,15 @@ import (
"errors"
"time"
"github.com/simple-rules/harmony-benchmark/profiler"
"github.com/harmony-one/harmony/profiler"
"github.com/dedis/kyber"
"github.com/dedis/kyber/sign/schnorr"
"github.com/simple-rules/harmony-benchmark/blockchain"
"github.com/simple-rules/harmony-benchmark/crypto"
"github.com/simple-rules/harmony-benchmark/log"
"github.com/simple-rules/harmony-benchmark/p2p"
proto_consensus "github.com/simple-rules/harmony-benchmark/proto/consensus"
"github.com/harmony-one/harmony/blockchain"
"github.com/harmony-one/harmony/crypto"
"github.com/harmony-one/harmony/log"
"github.com/harmony-one/harmony/p2p"
proto_consensus "github.com/harmony-one/harmony/proto/consensus"
)
var (

@ -5,9 +5,9 @@ import (
"encoding/binary"
"github.com/dedis/kyber"
"github.com/simple-rules/harmony-benchmark/crypto"
"github.com/simple-rules/harmony-benchmark/log"
proto_consensus "github.com/simple-rules/harmony-benchmark/proto/consensus"
"github.com/harmony-one/harmony/crypto"
"github.com/harmony-one/harmony/log"
proto_consensus "github.com/harmony-one/harmony/proto/consensus"
)
// Constructs the announce message

@ -3,10 +3,10 @@ package consensus
import (
"testing"
"github.com/simple-rules/harmony-benchmark/crypto"
"github.com/simple-rules/harmony-benchmark/crypto/pki"
"github.com/simple-rules/harmony-benchmark/p2p"
consensus_proto "github.com/simple-rules/harmony-benchmark/proto/consensus"
"github.com/harmony-one/harmony/crypto"
"github.com/harmony-one/harmony/crypto/pki"
"github.com/harmony-one/harmony/p2p"
consensus_proto "github.com/harmony-one/harmony/proto/consensus"
)
func TestConstructAnnounceMessage(test *testing.T) {

@ -3,7 +3,7 @@ package consensus
import (
"testing"
"github.com/simple-rules/harmony-benchmark/p2p"
"github.com/harmony-one/harmony/p2p"
)
func TestNewConsensus(test *testing.T) {

@ -6,13 +6,13 @@ import (
"encoding/gob"
"github.com/dedis/kyber/sign/schnorr"
"github.com/simple-rules/harmony-benchmark/attack"
"github.com/simple-rules/harmony-benchmark/blockchain"
"github.com/simple-rules/harmony-benchmark/crypto"
"github.com/simple-rules/harmony-benchmark/log"
"github.com/simple-rules/harmony-benchmark/p2p"
proto_consensus "github.com/simple-rules/harmony-benchmark/proto/consensus"
"github.com/simple-rules/harmony-benchmark/utils"
"github.com/harmony-one/harmony/attack"
"github.com/harmony-one/harmony/blockchain"
"github.com/harmony-one/harmony/crypto"
"github.com/harmony-one/harmony/log"
"github.com/harmony-one/harmony/p2p"
proto_consensus "github.com/harmony-one/harmony/proto/consensus"
"github.com/harmony-one/harmony/utils"
)
// ProcessMessageValidator dispatches validator's consensus message.

@ -5,8 +5,8 @@ import (
"encoding/binary"
"github.com/dedis/kyber"
"github.com/simple-rules/harmony-benchmark/crypto"
proto_consensus "github.com/simple-rules/harmony-benchmark/proto/consensus"
"github.com/harmony-one/harmony/crypto"
proto_consensus "github.com/harmony-one/harmony/proto/consensus"
)
// Construct the commit message to send to leader (assumption the consensus data is already verified)

@ -3,9 +3,9 @@ package consensus
import (
"testing"
"github.com/simple-rules/harmony-benchmark/crypto"
"github.com/simple-rules/harmony-benchmark/p2p"
consensus_proto "github.com/simple-rules/harmony-benchmark/proto/consensus"
"github.com/harmony-one/harmony/crypto"
"github.com/harmony-one/harmony/p2p"
consensus_proto "github.com/harmony-one/harmony/proto/consensus"
)
func TestConstructCommitMessage(test *testing.T) {

@ -21,8 +21,8 @@ import (
"github.com/ethereum/go-ethereum/core/state"
"github.com/ethereum/go-ethereum/params"
"github.com/simple-rules/harmony-benchmark/consensus"
"github.com/simple-rules/harmony-benchmark/core/types"
"github.com/harmony-one/harmony/consensus"
"github.com/harmony-one/harmony/core/types"
)
// BlockValidator is responsible for validating block headers, uncles and

@ -41,9 +41,9 @@ import (
"github.com/ethereum/go-ethereum/rlp"
"github.com/ethereum/go-ethereum/trie"
"github.com/hashicorp/golang-lru"
"github.com/simple-rules/harmony-benchmark/consensus"
"github.com/simple-rules/harmony-benchmark/core/rawdb"
"github.com/simple-rules/harmony-benchmark/core/types"
"github.com/harmony-one/harmony/consensus"
"github.com/harmony-one/harmony/core/rawdb"
"github.com/harmony-one/harmony/core/types"
)
var (

@ -18,7 +18,7 @@ package core
import (
"github.com/ethereum/go-ethereum/common"
"github.com/simple-rules/harmony-benchmark/core/types"
"github.com/harmony-one/harmony/core/types"
)
// NewTxsEvent is posted when a batch of transactions enter the transaction pool.

@ -21,8 +21,8 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/vm"
"github.com/simple-rules/harmony-benchmark/consensus"
"github.com/simple-rules/harmony-benchmark/core/types"
"github.com/harmony-one/harmony/consensus"
"github.com/harmony-one/harmony/core/types"
)
// ChainContext supports retrieving headers and consensus parameters from the

@ -31,9 +31,9 @@ import (
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum/go-ethereum/params"
"github.com/hashicorp/golang-lru"
"github.com/simple-rules/harmony-benchmark/consensus"
"github.com/simple-rules/harmony-benchmark/core/rawdb"
"github.com/simple-rules/harmony-benchmark/core/types"
"github.com/harmony-one/harmony/consensus"
"github.com/harmony-one/harmony/core/rawdb"
"github.com/harmony-one/harmony/core/types"
)
const (

@ -24,7 +24,7 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum/go-ethereum/rlp"
"github.com/simple-rules/harmony-benchmark/core/types"
"github.com/harmony-one/harmony/core/types"
)
// ReadCanonicalHash retrieves the hash assigned to a canonical block number.

@ -25,7 +25,7 @@ import (
"github.com/ethereum/go-ethereum/crypto/sha3"
"github.com/ethereum/go-ethereum/ethdb"
"github.com/ethereum/go-ethereum/rlp"
"github.com/simple-rules/harmony-benchmark/core/types"
"github.com/harmony-one/harmony/core/types"
)
// Tests block header storage and retrieval operations.

@ -20,7 +20,7 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum/go-ethereum/rlp"
"github.com/simple-rules/harmony-benchmark/core/types"
"github.com/harmony-one/harmony/core/types"
)
// ReadTxLookupEntry retrieves the positional metadata associated with a transaction

@ -22,7 +22,7 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/ethdb"
"github.com/simple-rules/harmony-benchmark/core/types"
"github.com/harmony-one/harmony/core/types"
)
// Tests that positional lookup metadata can be stored and retrieved.

@ -23,8 +23,8 @@ import (
"github.com/ethereum/go-ethereum/core/vm"
"github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/params"
"github.com/simple-rules/harmony-benchmark/consensus"
"github.com/simple-rules/harmony-benchmark/core/types"
"github.com/harmony-one/harmony/consensus"
"github.com/harmony-one/harmony/core/types"
)
// StateProcessor is a basic Processor, which takes care of transitioning

@ -24,7 +24,7 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum/go-ethereum/rlp"
"github.com/simple-rules/harmony-benchmark/core/types"
"github.com/harmony-one/harmony/core/types"
)
// errNoActiveJournal is returned if a transaction is attempted to be inserted

@ -24,7 +24,7 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/log"
"github.com/simple-rules/harmony-benchmark/core/types"
"github.com/harmony-one/harmony/core/types"
)
// nonceHeap is a heap.Interface implementation over 64bit unsigned integers for

@ -21,7 +21,7 @@ import (
"testing"
"github.com/ethereum/go-ethereum/crypto"
"github.com/simple-rules/harmony-benchmark/core/types"
"github.com/harmony-one/harmony/core/types"
)
// Tests that transactions can be added to strict lists and list contents and

@ -32,7 +32,7 @@ import (
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum/go-ethereum/metrics"
"github.com/ethereum/go-ethereum/params"
"github.com/simple-rules/harmony-benchmark/core/types"
"github.com/harmony-one/harmony/core/types"
)
const (

@ -32,7 +32,7 @@ import (
"github.com/ethereum/go-ethereum/ethdb"
"github.com/ethereum/go-ethereum/event"
"github.com/ethereum/go-ethereum/params"
"github.com/simple-rules/harmony-benchmark/core/types"
"github.com/harmony-one/harmony/core/types"
)
// testTxPoolConfig is a transaction pool configuration without stateful disk

@ -19,7 +19,7 @@ package core
import (
"github.com/ethereum/go-ethereum/core/state"
"github.com/ethereum/go-ethereum/core/vm"
"github.com/simple-rules/harmony-benchmark/core/types"
"github.com/harmony-one/harmony/core/types"
)
// Validator is an interface which defines the standard for block validation. It

@ -3,8 +3,8 @@ package pki
import (
"crypto/sha256"
"github.com/dedis/kyber"
"github.com/simple-rules/harmony-benchmark/crypto"
"github.com/simple-rules/harmony-benchmark/log"
"github.com/harmony-one/harmony/crypto"
"github.com/harmony-one/harmony/log"
)
func GetAddressFromPublicKey(pubKey kyber.Point) [20]byte {

@ -4,7 +4,7 @@ import (
"sync"
"time"
"github.com/simple-rules/harmony-benchmark/log"
"github.com/harmony-one/harmony/log"
"github.com/syndtr/goleveldb/leveldb"
"github.com/syndtr/goleveldb/leveldb/errors"
"github.com/syndtr/goleveldb/leveldb/filter"

@ -4,7 +4,7 @@ import (
"errors"
"sync"
"github.com/simple-rules/harmony-benchmark/utils"
"github.com/harmony-one/harmony/utils"
)
// MemDatabase is the test memory database. It won't be used for any production.

@ -5,8 +5,8 @@ import (
"github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/ethdb"
"github.com/ethereum/go-ethereum/params"
"github.com/simple-rules/harmony-benchmark/core"
"github.com/simple-rules/harmony-benchmark/core/types"
"github.com/harmony-one/harmony/core"
"github.com/harmony-one/harmony/core/types"
"math/big"
)

@ -8,15 +8,15 @@ import (
"sync"
"time"
"github.com/simple-rules/harmony-benchmark/blockchain"
"github.com/simple-rules/harmony-benchmark/client"
"github.com/simple-rules/harmony-benchmark/consensus"
"github.com/simple-rules/harmony-benchmark/crypto/pki"
"github.com/simple-rules/harmony-benchmark/db"
"github.com/simple-rules/harmony-benchmark/log"
"github.com/simple-rules/harmony-benchmark/p2p"
proto_identity "github.com/simple-rules/harmony-benchmark/proto/identity"
"github.com/simple-rules/harmony-benchmark/syncing"
"github.com/harmony-one/harmony/blockchain"
"github.com/harmony-one/harmony/client"
"github.com/harmony-one/harmony/consensus"
"github.com/harmony-one/harmony/crypto/pki"
"github.com/harmony-one/harmony/db"
"github.com/harmony-one/harmony/log"
"github.com/harmony-one/harmony/p2p"
proto_identity "github.com/harmony-one/harmony/proto/identity"
"github.com/harmony-one/harmony/syncing"
)
type NetworkNode struct {

@ -10,13 +10,13 @@ import (
"strconv"
"time"
"github.com/simple-rules/harmony-benchmark/blockchain"
"github.com/simple-rules/harmony-benchmark/p2p"
"github.com/simple-rules/harmony-benchmark/proto"
"github.com/simple-rules/harmony-benchmark/proto/client"
"github.com/simple-rules/harmony-benchmark/proto/consensus"
proto_identity "github.com/simple-rules/harmony-benchmark/proto/identity"
proto_node "github.com/simple-rules/harmony-benchmark/proto/node"
"github.com/harmony-one/harmony/blockchain"
"github.com/harmony-one/harmony/p2p"
"github.com/harmony-one/harmony/proto"
"github.com/harmony-one/harmony/proto/client"
"github.com/harmony-one/harmony/proto/consensus"
proto_identity "github.com/harmony-one/harmony/proto/identity"
proto_node "github.com/harmony-one/harmony/proto/node"
)
const (

@ -3,8 +3,8 @@ package node
import (
"testing"
"github.com/simple-rules/harmony-benchmark/consensus"
"github.com/simple-rules/harmony-benchmark/p2p"
"github.com/harmony-one/harmony/consensus"
"github.com/harmony-one/harmony/p2p"
)
func TestNewNewNode(test *testing.T) {

@ -1,8 +1,8 @@
package node
import (
"github.com/simple-rules/harmony-benchmark/blockchain"
"github.com/simple-rules/harmony-benchmark/crypto/pki"
"github.com/harmony-one/harmony/blockchain"
"github.com/harmony-one/harmony/crypto/pki"
)
// AddTestingAddresses creates in genesis block numAddress transactions which assign k token to each address in [0 - numAddress)

@ -5,7 +5,7 @@ import (
"net"
"testing"
"github.com/simple-rules/harmony-benchmark/p2p"
"github.com/harmony-one/harmony/p2p"
)
func setUpTestServer(times int, t *testing.T, conCreated chan struct{}) {

@ -3,7 +3,7 @@ package ida
import (
"time"
"github.com/simple-rules/harmony-benchmark/p2p"
"github.com/harmony-one/harmony/p2p"
)
// IDAImp implements IDA interface.

@ -5,7 +5,7 @@ import (
"testing"
"time"
"github.com/simple-rules/harmony-benchmark/p2p"
"github.com/harmony-one/harmony/p2p"
)
var (

@ -1,7 +1,7 @@
package ida
import (
"github.com/simple-rules/harmony-benchmark/p2p"
"github.com/harmony-one/harmony/p2p"
"time"
)

@ -8,7 +8,7 @@ import (
"runtime"
"time"
"github.com/simple-rules/harmony-benchmark/log"
"github.com/harmony-one/harmony/log"
"github.com/dedis/kyber"
)

@ -9,7 +9,7 @@ import (
"time"
"github.com/shirou/gopsutil/process"
"github.com/simple-rules/harmony-benchmark/log"
"github.com/harmony-one/harmony/log"
)
type Profiler struct {

@ -4,8 +4,8 @@ import (
"bytes"
"encoding/gob"
"github.com/simple-rules/harmony-benchmark/blockchain"
"github.com/simple-rules/harmony-benchmark/proto"
"github.com/harmony-one/harmony/blockchain"
"github.com/harmony-one/harmony/proto"
)
// The specific types of message under CLIENT category

@ -4,7 +4,7 @@ import (
"bytes"
"errors"
"github.com/simple-rules/harmony-benchmark/proto"
"github.com/harmony-one/harmony/proto"
)
/*

@ -4,7 +4,7 @@ import (
"bytes"
"errors"
"github.com/simple-rules/harmony-benchmark/proto"
"github.com/harmony-one/harmony/proto"
)
// IdentityMessageTypeBytes is the number of bytes consensus message type occupies

@ -5,9 +5,9 @@ import (
"encoding/gob"
"log"
"github.com/simple-rules/harmony-benchmark/blockchain"
"github.com/simple-rules/harmony-benchmark/p2p"
"github.com/simple-rules/harmony-benchmark/proto"
"github.com/harmony-one/harmony/blockchain"
"github.com/harmony-one/harmony/p2p"
"github.com/harmony-one/harmony/proto"
)
// NodeMessageType is to indicate the specific type of message under NODE category

@ -1,7 +1,7 @@
package main
import (
"github.com/simple-rules/harmony-benchmark/beaconchain"
"github.com/harmony-one/harmony/beaconchain"
)
func main() {

@ -4,8 +4,8 @@ import (
"flag"
"time"
"github.com/simple-rules/harmony-benchmark/node"
"github.com/simple-rules/harmony-benchmark/p2p"
"github.com/harmony-one/harmony/node"
"github.com/harmony-one/harmony/p2p"
)
func main() {

@ -7,9 +7,9 @@ import (
"time"
"github.com/Workiva/go-datastructures/queue"
"github.com/simple-rules/harmony-benchmark/blockchain"
"github.com/simple-rules/harmony-benchmark/p2p"
proto_node "github.com/simple-rules/harmony-benchmark/proto/node"
"github.com/harmony-one/harmony/blockchain"
"github.com/harmony-one/harmony/p2p"
proto_node "github.com/harmony-one/harmony/proto/node"
)
type SyncPeerConfig struct {

@ -7,9 +7,9 @@ import (
"strconv"
"strings"
"github.com/simple-rules/harmony-benchmark/crypto"
"github.com/simple-rules/harmony-benchmark/crypto/pki"
"github.com/simple-rules/harmony-benchmark/p2p"
"github.com/harmony-one/harmony/crypto"
"github.com/harmony-one/harmony/crypto/pki"
"github.com/harmony-one/harmony/p2p"
)
type ConfigEntry struct {

@ -8,7 +8,7 @@ import (
"regexp"
"strconv"
"github.com/simple-rules/harmony-benchmark/p2p"
"github.com/harmony-one/harmony/p2p"
)
// ConvertFixedDataIntoByteArray converts an empty interface data to a byte array

Loading…
Cancel
Save