Babe epoch newtype (#1596)

Removal of verbatim duplication of BABE's `Epoch` struct in the client.

I think is better to have one single definition and wrap the primitive
`Epoch` in a newtype (required because we need to implement the `Epoch`
trait).
This commit is contained in:
Davide Galassi
2023-09-17 22:06:19 +02:00
committed by GitHub
parent d787269cdf
commit c7dbfc21b6
6 changed files with 45 additions and 51 deletions
Generated
-3
View File
@@ -14754,17 +14754,14 @@ dependencies = [
"num-traits",
"parity-scale-codec",
"parking_lot 0.12.1",
"rand_chacha 0.2.2",
"sc-block-builder",
"sc-client-api",
"sc-consensus",
"sc-consensus-epochs",
"sc-consensus-slots",
"sc-network",
"sc-network-test",
"sc-telemetry",
"sc-transaction-pool-api",
"scale-info",
"sp-api",
"sp-application-crypto",
"sp-block-builder",