mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 22:56:43 +00:00
23 lines
437 B
Go
23 lines
437 B
Go
package core
|
|
|
|
import (
|
|
"github.com/ethereum/go-ethereum/core/types"
|
|
)
|
|
|
|
// StateSyncEvent represents state sync events
|
|
type StateSyncEvent struct {
|
|
Data *types.StateSyncData
|
|
}
|
|
|
|
var (
|
|
Chain2HeadReorgEvent = "reorg"
|
|
Chain2HeadCanonicalEvent = "head"
|
|
Chain2HeadForkEvent = "fork"
|
|
)
|
|
|
|
// For tracking reorgs related information
|
|
type Chain2HeadEvent struct {
|
|
NewChain []*types.Header
|
|
OldChain []*types.Header
|
|
Type string
|
|
}
|