Documentation ¶
Overview ¶
Package altmempool provides functions to pull an alternative mempool config from an IPFS gateway and validate it against a schema.
Schema originally written by @dancoombs: https://hackmd.io/@dancoombs/BJYRz3h8n.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var (
Schema, _ = newJSONSchema()
)
Functions ¶
This section is empty.
Types ¶
type Directory ¶
type Directory struct {
// contains filtered or unexported fields
}
Directory maintains a collection of alternative mempool configurations. It allows a consumer to check if a known alternative mempool exists that will allow specific exceptions that the canonical mempool cannot accept.
func NewFromIPFS ¶
NewFromIPFS will pull alternative mempool configs from IPFS and returns a Directory. The mempool id is equal to an IPFS CID.
func (*Directory) HasInvalidStorageAccessException ¶
func (d *Directory) HasInvalidStorageAccessException(entity string, contract string, slot string) []string
HasInvalidStorageAccessException will attempt to find all mempools ids that will accept the given invalid storage access pattern and return it. If none is found, an empty array will be returned.