mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-08 03:51:20 +00:00
33d8c08c1c
This is the initial merge for polygon milestones it implements an rpc call used by heimdall but does not directly impact any chain processing
23 lines
495 B
Go
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
|
|
}
|