mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-08 03:51:20 +00:00
15 lines
332 B
Go
15 lines
332 B
Go
|
package adapter
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
"math/big"
|
||
|
|
||
|
"github.com/ledgerwatch/turbo-geth/common"
|
||
|
"github.com/ledgerwatch/turbo-geth/core/types"
|
||
|
)
|
||
|
|
||
|
type BlockPropagator interface {
|
||
|
PropagateNewBlockHashes(ctx context.Context, hash common.Hash, number uint64)
|
||
|
BroadcastNewBlock(ctx context.Context, block *types.Block, td *big.Int)
|
||
|
}
|