erigon-pulse/turbo/adapter/block_propagator.go
2021-04-06 12:54:50 +07:00

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)
}