Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
)Functions ¶
This section is empty.
Types ¶
type MultiPrestateProvider ¶
type MultiPrestateProvider struct {
// contains filtered or unexported fields
}
func NewMultiPrestateProvider ¶
func NewMultiPrestateProvider(baseUrl *url.URL, dataDir string) *MultiPrestateProvider
func (*MultiPrestateProvider) PrestatePath ¶
func (m *MultiPrestateProvider) PrestatePath(hash common.Hash) (string, error)
type PrestateProviderCache ¶
type PrestateProviderCache struct {
// contains filtered or unexported fields
}
func NewPrestateProviderCache ¶
func NewPrestateProviderCache(m caching.Metrics, label string, createProvider func(prestateHash common.Hash) (types.PrestateProvider, error)) *PrestateProviderCache
func (*PrestateProviderCache) GetOrCreate ¶
func (p *PrestateProviderCache) GetOrCreate(prestateHash common.Hash) (types.PrestateProvider, error)
type PrestateSource ¶
type PrestateSource interface { // PrestatePath returns the path to the prestate file to use for the game. // The provided prestateHash may be used to differentiate between different states but no guarantee is made that // the returned prestate matches the supplied hash. PrestatePath(prestateHash common.Hash) (string, error) }
type SinglePrestateSource ¶
type SinglePrestateSource struct {
// contains filtered or unexported fields
}
func NewSinglePrestateSource ¶
func NewSinglePrestateSource(path string) *SinglePrestateSource
func (*SinglePrestateSource) PrestatePath ¶
func (s *SinglePrestateSource) PrestatePath(_ common.Hash) (string, error)
Click to show internal directories.
Click to hide internal directories.