Blob channel (#12753)

* Add a new blob channel

* fix mock

* reset the channel

* keep a map of channels

* gazelle

* do not overwrite map

* remove pre-declaration
This commit is contained in:
Potuz
2023-08-17 21:03:31 -03:00
committed by Preston Van Loon
parent 7ed2a731d3
commit 3a1b4a19c2
8 changed files with 100 additions and 4 deletions

View File

@@ -38,6 +38,12 @@ type BlockReceiver interface {
RecentBlockSlot(root [32]byte) (primitives.Slot, error)
}
// BlobReceiver interface defines the methods of chain service for receiving new
// blobs
type BlobReceiver interface {
SendNewBlobEvent([32]byte, uint64)
}
// SlashingReceiver interface defines the methods of chain service for receiving validated slashing over the wire.
type SlashingReceiver interface {
ReceiveAttesterSlashing(ctx context.Context, slashings *ethpb.AttesterSlashing)