Documentation ¶
Overview ¶
Cache for assets
temporary store assets just received until they are: a. verified by having a corresponding issue verified b. confirmed by having a block broadcast containing them c. expired because no longer referenced by any issues
i.e. all isues were expired
Index ¶
- func Cache(asset *transactionrecord.AssetData) (*transactionrecord.AssetIndex, transactionrecord.Packed, error)
- func Delete(assetIndex transactionrecord.AssetIndex)
- func Exists(assetIndex transactionrecord.AssetIndex) bool
- func Finalise()
- func Get(assetIndex transactionrecord.AssetIndex) transactionrecord.Packed
- func Initialise() error
- func SetVerified(assetIndex transactionrecord.AssetIndex)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Cache ¶
func Cache(asset *transactionrecord.AssetData) (*transactionrecord.AssetIndex, transactionrecord.Packed, error)
cache an incoming asset
func Get ¶
func Get(assetIndex transactionrecord.AssetIndex) transactionrecord.Packed
get packed asset data from cache (nil if not present)
func SetVerified ¶
func SetVerified(assetIndex transactionrecord.AssetIndex)
mark a cached asset being verified
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.