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

go/consensus/tendermint: Refactor internal event handling #3091

Merged
merged 4 commits into from
Jul 17, 2020

Conversation

kostko
Copy link
Member

@kostko kostko commented Jul 8, 2020

TODO

  • Remove Subscribe/Unsubscribe from internal Tendermint backend APIs.
  • Cleanup.

@kostko kostko force-pushed the kostko/feature/tm-events-refactor branch 5 times, most recently from 908dfae to cff510a Compare July 9, 2020 15:24
@codecov
Copy link

codecov bot commented Jul 9, 2020

Codecov Report

Merging #3091 into master will increase coverage by 0.20%.
The diff coverage is 80.25%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3091      +/-   ##
==========================================
+ Coverage   68.32%   68.53%   +0.20%     
==========================================
  Files         372      374       +2     
  Lines       36882    36896      +14     
==========================================
+ Hits        25200    25287      +87     
+ Misses       8433     8395      -38     
+ Partials     3249     3214      -35     
Impacted Files Coverage Δ
go/consensus/tendermint/seed.go 70.00% <0.00%> (ø)
go/epochtime/api/api.go 33.33% <ø> (ø)
go/roothash/api/api.go 75.00% <ø> (ø)
go/scheduler/api/api.go 72.85% <ø> (ø)
go/storage/client/client.go 73.33% <50.00%> (-1.99%) ⬇️
go/consensus/tendermint/scheduler/scheduler.go 67.10% <65.11%> (-9.31%) ⬇️
...sensus/tendermint/epochtime_mock/epochtime_mock.go 70.63% <68.00%> (+0.29%) ⬆️
go/consensus/tendermint/beacon/beacon.go 55.00% <77.77%> (+2.36%) ⬆️
go/consensus/tendermint/roothash/roothash.go 72.51% <79.75%> (+6.50%) ⬆️
go/consensus/tendermint/tendermint.go 64.76% <80.39%> (+0.50%) ⬆️
... and 54 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c28bc0c...cebc3fd. Read the comment docs.

@kostko kostko marked this pull request as ready for review July 9, 2020 15:44
@kostko kostko force-pushed the kostko/feature/tm-events-refactor branch from cff510a to 2cd8401 Compare July 9, 2020 15:53
@kostko kostko mentioned this pull request Jul 10, 2020
9 tasks
@kostko kostko force-pushed the kostko/feature/tm-events-refactor branch 2 times, most recently from 1cc84bf to 68aaf8c Compare July 10, 2020 15:39
@kostko kostko force-pushed the kostko/feature/tm-events-refactor branch 13 times, most recently from 54c9416 to b99419c Compare July 17, 2020 19:13
Previously each consensus service client implemented its own event processing
loop. All service clients now have a unified event loop implementation (each
still runs in its own goroutine) that takes care of query subscriptions and
event dispatch.
The previous implementation did not support querying for historic blocks and
this adds a simple (non-optimal) implementation. Since this mock epochtime is
only used in tests this seems fine.
In case the minimum write replication factor is set by the runtime, it doesn't
make sense to emit partial receipts as other nodes will not accept them.
Configure the runtime to allow a smaller replication factor as otherwise
execution may fail when the bad node is in the storage committee.
@kostko kostko force-pushed the kostko/feature/tm-events-refactor branch from b99419c to cebc3fd Compare July 17, 2020 20:36
@kostko kostko merged commit 34caaad into master Jul 17, 2020
@kostko kostko deleted the kostko/feature/tm-events-refactor branch July 17, 2020 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants