mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-07 03:22:18 +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)
|
|
}
|