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, stateConverter vm.StateConverter) *MultiPrestateProvider
func (*MultiPrestateProvider) PrestatePath ¶
type PrestateProviderCache ¶
type PrestateProviderCache struct {
// contains filtered or unexported fields
}
func (*PrestateProviderCache) GetOrCreate ¶
func (p *PrestateProviderCache) GetOrCreate(ctx context.Context, 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(ctx context.Context, prestateHash common.Hash) (string, error) }
func NewPrestateSource ¶ added in v1.9.0
func NewPrestateSource(baseURL *url.URL, path string, localDir string, stateConverter vm.StateConverter) PrestateSource
type SinglePrestateSource ¶
type SinglePrestateSource struct {
// contains filtered or unexported fields
}
func NewSinglePrestateSource ¶
func NewSinglePrestateSource(path string) *SinglePrestateSource
func (*SinglePrestateSource) PrestatePath ¶
Click to show internal directories.
Click to hide internal directories.