Closed ocnc closed 1 week ago
The recent changes involve modifications to data types and interfaces across several modules. Key updates include altering generic type definitions and interface methods in the Service
struct and types.go
. Additionally, there are adjustments to middleware initialization in middleware.go
and logic flow in state processing for staking in state_processor_staking.go
. These changes streamline type handling and interface interactions.
Files | Summary |
---|---|
mod/da/pkg/da/service.go |
Modified BeaconBlockBodyT and BlobSidecarsT types in Service struct and NewService function. |
mod/da/pkg/da/types.go |
Updated AvailabilityStore and BlobProcessor interfaces, introduced the BlobSidecar interface, and removed some method declarations. |
mod/node-core/pkg/components/middleware.go |
Changed ProvideABCIMiddleware to use the constructor NewABCIMiddleware directly. |
mod/state-transition/pkg/core/... |
Adjusted the epoch retrieval logic in state_processor_staking.go by moving it to after the slot value is obtained. |
In the code, the changes flow,
Types and interfaces, a fresh new glow.
Middleware calls, streamlined and tight,
Epochs now retrieved just right.
The code evolves, a steady flight,
By a rabbit’s touch, day and night.
🐇✨
Attention: Patch coverage is 0%
with 1 line
in your changes missing coverage. Please review.
Project coverage is 22.62%. Comparing base (
33a34ce
) to head (d7437fb
).
Summary by CodeRabbit
New Features
Persist
in theAvailabilityStore
interface for improved data persistence management.Refactor
BeaconBlockBodyT
andBlobSidecarsT
types within services to enhance flexibility and maintainability.Bug Fixes
ABCIMiddleware
to ensure proper middleware initialization and functionality consistency.