|
|
@ -3,7 +3,6 @@ package node |
|
|
|
import ( |
|
|
|
import ( |
|
|
|
"context" |
|
|
|
"context" |
|
|
|
"fmt" |
|
|
|
"fmt" |
|
|
|
"github.com/harmony-one/harmony/internal/configs/harmony" |
|
|
|
|
|
|
|
"math/big" |
|
|
|
"math/big" |
|
|
|
"os" |
|
|
|
"os" |
|
|
|
"strings" |
|
|
|
"strings" |
|
|
@ -11,6 +10,7 @@ import ( |
|
|
|
"time" |
|
|
|
"time" |
|
|
|
|
|
|
|
|
|
|
|
"github.com/ethereum/go-ethereum/rlp" |
|
|
|
"github.com/ethereum/go-ethereum/rlp" |
|
|
|
|
|
|
|
"github.com/harmony-one/harmony/internal/configs/harmony" |
|
|
|
|
|
|
|
|
|
|
|
"github.com/ethereum/go-ethereum/common" |
|
|
|
"github.com/ethereum/go-ethereum/common" |
|
|
|
protobuf "github.com/golang/protobuf/proto" |
|
|
|
protobuf "github.com/golang/protobuf/proto" |
|
|
@ -106,7 +106,7 @@ type Node struct { |
|
|
|
ContractAddresses []common.Address |
|
|
|
ContractAddresses []common.Address |
|
|
|
// Channel to notify consensus service to really start consensus
|
|
|
|
// Channel to notify consensus service to really start consensus
|
|
|
|
startConsensus chan struct{} |
|
|
|
startConsensus chan struct{} |
|
|
|
HarmonyConfig harmony.HarmonyConfig |
|
|
|
HarmonyConfig harmony.HarmonyConfig |
|
|
|
// node configuration, including group ID, shard ID, etc
|
|
|
|
// node configuration, including group ID, shard ID, etc
|
|
|
|
NodeConfig *nodeconfig.ConfigType |
|
|
|
NodeConfig *nodeconfig.ConfigType |
|
|
|
// Chain configuration.
|
|
|
|
// Chain configuration.
|
|
|
|