erigon-pulse/consensus/bor/finality/generics/generics.go
Anshal Shukla 076dc33232
move borfinality package out of eth (#8407)
- Move borfinality out of eth package
- Adds nil pointer check in bor_verifier
2023-10-09 19:13:31 +01:00

23 lines
495 B
Go

package generics
import (
"sync/atomic"
libcommon "github.com/ledgerwatch/erigon-lib/common"
"github.com/ledgerwatch/erigon/core/types"
)
func Empty[T any]() (t T) {
return
}
// BorMilestoneRewind is used as a flag/variable
// Flag: if equals 0, no rewind according to bor whitelisting service
// Variable: if not equals 0, rewind chain back to BorMilestoneRewind
var BorMilestoneRewind atomic.Pointer[uint64]
type Response struct {
Headers []*types.Header
Hashes []libcommon.Hash
}