pub enum InventoryInconsistency {
StateAbsent(ContractId),
DisclosureAbsent(Txid),
BundleAbsent(OpId),
NoBundleAnchor(BundleId),
UnrelatedAnchor,
BundleReveal(RevealError),
OutsizedBundle,
Stash(StashInconsistency),
}
Expand description
These errors indicate internal business logic error. We report them instead of panicking to make sure that the software doesn’t crash and gracefully handles situation, allowing users to report the problem back to the devs.
Variants§
StateAbsent(ContractId)
state for contract {0} is not known or absent in the database.
DisclosureAbsent(Txid)
disclosure for txid {0} is absent.
It may happen due to RGB standard library bug, or indicate internal inventory inconsistency and compromised inventory data storage.
BundleAbsent(OpId)
absent information about bundle for operation {0}.
It may happen due to RGB library bug, or indicate internal inventory inconsistency and compromised inventory data storage.
NoBundleAnchor(BundleId)
absent information about anchor for bundle {0}.
It may happen due to RGB library bug, or indicate internal inventory inconsistency and compromised inventory data storage.
the anchor is not related to the contract.
It may happen due to RGB library bug, or indicate internal inventory inconsistency and compromised inventory data storage.
BundleReveal(RevealError)
bundle reveal error. Details: {0}
It may happen due to RGB library bug, or indicate internal inventory inconsistency and compromised inventory data storage.
OutsizedBundle
the resulting bundle size exceeds consensus restrictions.
It may happen due to RGB library bug, or indicate internal inventory inconsistency and compromised inventory data storage.