Skip to content

Commit

Permalink
chore: using notifyNeighbor goroutine func
Browse files Browse the repository at this point in the history
  • Loading branch information
EclesioMeloJunior committed Jul 22, 2022
1 parent af18a24 commit 270cb21
Show file tree
Hide file tree
Showing 3 changed files with 112 additions and 49 deletions.
12 changes: 6 additions & 6 deletions chain/dev/config.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[global]
basepath = "~/.gossamer/dev"
basepath = "./tmp/dev"
log = "info"
metrics-address = ":9876"

Expand All @@ -10,25 +10,25 @@ rpc = ""
state = ""
runtime = ""
babe = ""
grandpa = ""
grandpa = "debug"
sync = ""
digest = ""

[init]
genesis = "./chain/dev/genesis-spec.json"
genesis = "./chain/dev/genesis.json"

[account]
key = "alice"
key = "bob"
unlock = ""

[core]
roles = 4
babe-authority = true
grandpa-authority = true
babe-lead = true
babe-lead = false

[network]
port = 7001
port = 7002
nobootstrap = false
nomdns = false

Expand Down
147 changes: 104 additions & 43 deletions chain/dev/genesis.json

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions lib/grandpa/grandpa.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,8 @@ func (s *Service) Start() error {
}
}()

go s.notifyNeighbor(neighbourMessageInterval)

return nil
}

Expand Down

0 comments on commit 270cb21

Please sign in to comment.