Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(dot/state/epoch, lib/babe): enable block production through epochs without rely on finalization #2593

Merged
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
3fc7d75
fix: block production to be independant of finalized blocks
EclesioMeloJunior Jun 9, 2022
960dd15
chore: fix
EclesioMeloJunior Jun 9, 2022
ed5b41b
chore: remove not need check functions
EclesioMeloJunior Jun 9, 2022
bbf4b15
chore: inserting locks
EclesioMeloJunior Jun 9, 2022
6e87289
Merge branch 'development' into eclesio/fix/block-production-for-epochs
EclesioMeloJunior Jun 9, 2022
46bde58
chore: remove deadcode
EclesioMeloJunior Jun 9, 2022
697abcc
chore: fix wrapped error
EclesioMeloJunior Jun 13, 2022
719a724
chore: remove not needed diffs
EclesioMeloJunior Jun 13, 2022
246e442
chore: remove not needed diffs
EclesioMeloJunior Jun 13, 2022
2ea979c
chore: simplify the conditions and fix the get config method from epo…
EclesioMeloJunior Jun 16, 2022
4f0f701
chore: fixing a infof->debugf
EclesioMeloJunior Jun 16, 2022
2a637d4
Merge branch 'development' into eclesio/fix/block-production-for-epochs
EclesioMeloJunior Jun 22, 2022
5eac5bb
chore: pass `*BlockState` instead of `*EpochState`
EclesioMeloJunior Jun 22, 2022
5e57512
Merge branch 'development' into eclesio/fix/block-production-for-epochs
EclesioMeloJunior Jun 23, 2022
07a1d9c
chore: remove `chain/dev/chain-spec` diffs
EclesioMeloJunior Jun 27, 2022
1f3e18d
chore: fix mocks expected calls
EclesioMeloJunior Jun 27, 2022
cf0d28d
Merge branch 'development' into eclesio/fix/block-production-for-epochs
EclesioMeloJunior Jun 29, 2022
f196dbb
Merge branch 'development' into eclesio/fix/block-production-for-epochs
EclesioMeloJunior Jun 30, 2022
9b69ffb
chore: fix test `getEpochDataAndStartSlot`
EclesioMeloJunior Jun 30, 2022
257c2bb
create nextEpochMap type (#2633)
timwu20 Jul 4, 2022
612a293
update mockery version to 2.14
EclesioMeloJunior Jul 4, 2022
89d544e
Merge branch 'development' into eclesio/fix/block-production-for-epochs
EclesioMeloJunior Jul 5, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 58 additions & 0 deletions chain/dev/config-alice.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
[global]
basepath = "./tmp/alice"
log = "info"
metrics-address = ":9876"

[log]
core = ""
network = ""
rpc = ""
state = ""
runtime = ""
babe = "debug"
grandpa = ""
sync = ""
digest = "debug"

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

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

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

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

[rpc]
enabled = true
ws = true
port = 8545
host = "localhost"
modules = [
"system",
"author",
"chain",
"state",
"rpc",
"grandpa",
"offchain",
"childstate",
"syncstate",
"payment",
]
ws-port = 8546

[pprof]
enabled = false
listening-address = "localhost:6060"
block-rate = 0
mutex-rate = 0
57 changes: 57 additions & 0 deletions chain/dev/config-bob.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
[global]
basepath = "./tmp/bob"
log = "info"
metrics-address = ":9876"

[log]
core = ""
network = ""
rpc = ""
state = ""
runtime = ""
babe = "debug"
grandpa = ""
sync = ""
digest = "debug"

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

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

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

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

[rpc]
enabled = true
ws = true
port = 8545
host = "localhost"
modules = [
"system",
"author",
"chain",
"state",
"rpc",
"grandpa",
"offchain",
"childstate",
"syncstate",
"payment",
]
ws-port = 8546

[pprof]
enabled = false
listening-address = "localhost:6060"
block-rate = 0
mutex-rate = 0
22 changes: 16 additions & 6 deletions chain/dev/config.toml → chain/dev/config-dave.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[global]
basepath = "~/.gossamer/dev"
basepath = "./tmp/dave"
log = "info"
metrics-address = ":9876"

Expand All @@ -15,20 +15,19 @@ sync = ""
digest = ""

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

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

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

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

Expand All @@ -37,7 +36,18 @@ enabled = true
ws = true
port = 8545
host = "localhost"
modules = ["system", "author", "chain", "state", "rpc", "grandpa", "offchain", "childstate", "syncstate", "payment"]
modules = [
"system",
"author",
"chain",
"state",
"rpc",
"grandpa",
"offchain",
"childstate",
"syncstate",
"payment",
]
ws-port = 8546

[pprof]
Expand Down
354 changes: 63 additions & 291 deletions chain/dev/genesis-spec.json

Large diffs are not rendered by default.

88 changes: 40 additions & 48 deletions chain/dev/genesis.json

Large diffs are not rendered by default.

Loading