aboutsummaryrefslogtreecommitdiffstats
path: root/simulation/validator.go
diff options
context:
space:
mode:
authorJimmy Hu <41561308+jimmyhu-dexon@users.noreply.github.com>2018-07-26 12:15:17 +0800
committerGitHub <noreply@github.com>2018-07-26 12:15:17 +0800
commit39f62971de32373de715cdfb8b694832ed24806c (patch)
tree18e2d14a99adf5a7f266d8906e15925fd3c92d66 /simulation/validator.go
parent7a60cb62e1d1b90f5a61f384acf1f19a413d4a10 (diff)
downloadtangerine-consensus-39f62971de32373de715cdfb8b694832ed24806c.tar
tangerine-consensus-39f62971de32373de715cdfb8b694832ed24806c.tar.gz
tangerine-consensus-39f62971de32373de715cdfb8b694832ed24806c.tar.bz2
tangerine-consensus-39f62971de32373de715cdfb8b694832ed24806c.tar.lz
tangerine-consensus-39f62971de32373de715cdfb8b694832ed24806c.tar.xz
tangerine-consensus-39f62971de32373de715cdfb8b694832ed24806c.tar.zst
tangerine-consensus-39f62971de32373de715cdfb8b694832ed24806c.zip
Verify the Total Ordering Algorithm in peerServer in tcp mode (#11)
Verify the Total Ordering Algorithm in peerServer in tcp mode.
Diffstat (limited to 'simulation/validator.go')
-rw-r--r--simulation/validator.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/simulation/validator.go b/simulation/validator.go
index c98efd2..b7ec2a0 100644
--- a/simulation/validator.go
+++ b/simulation/validator.go
@@ -31,7 +31,7 @@ import (
// Validator represents a validator in DexCon.
type Validator struct {
- network core.Network
+ network Network
app *SimApp
config config.Validator
@@ -50,9 +50,9 @@ type Validator struct {
func NewValidator(
id types.ValidatorID,
config config.Validator,
- network core.Network,
+ network Network,
db *leveldb.DB) *Validator {
- app := NewSimApp(id)
+ app := NewSimApp(id, network)
lattice := core.NewBlockLattice(blockdb.NewMemBackedBlockDB(), app)
return &Validator{
ID: id,