-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Clean up Consensus Service traits and infrastructure #1021
Comments
While doing this, the |
Do you mean that we should move What's wrong with the dependency chain |
For example the |
That seems like a different issue -- how does it relate to consensus? |
Consensus use the function in |
It is the |
I think this is a question of general architecture and purpose of For many crates in substrate we opted for a I can understand the urge to keep the dependency tree of the specific consensus crates slimmer and them potentially providing all the necessary parts themselves, but in practice this isn't actually possible because many other crates do actually provide glue that they are then bound to - e.g #1158. By moving most of it into I am also okay with splitting up consensus-common into this bundle and a second super slim |
That sounds reasonable. So |
It seems like a bigger error that
|
Yeah, I'm also for keeping |
Following #911, most consensus infrastructure was extracted into
substrate-consensus-common
or the respective consensus engine. However for the integrationsubstrate-service
andsubstrate-network
still contain a few traits and a generic implementation of theOfflineTracker
. The interfaces should be cleaned up and - as much as possible - moved into and provided bysubstrate-consensus-common
and in-turn be exposed by the specific engines.The text was updated successfully, but these errors were encountered: