Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( PluginSelf = PluginShadow{ ShadowName: func(s string) string { return s }, ShadowTable: func(a Table) Table { return a }, } )
Functions ¶
This section is empty.
Types ¶
type BatchAdapter ¶ added in v1.14.6
type CatchUpAdapter ¶ added in v1.18.16
CatchUpAdapter is implemented by plugins that opt in to running in catch-up mode (where the index starts mid-chain at the current tip instead of from height 0).
Plugins that maintain cumulative state derived from full history — balances, holders, lifetime totals, etc. — should NOT implement this, or should return false: starting from an arbitrary height would produce permanently incorrect data. Per-block fact plugins (block metadata, receipts, action records) and snapshot-derivable plugins (state queried from chain at each height) are safe candidates.
Operators can override the safety check via iotex.catchUpAllowPlugins in config.
type DependentAdapter ¶
type DependentAdapter interface {
DependentPlugins() []string
}
type PluginShadow ¶ added in v1.17.32
Click to show internal directories.
Click to hide internal directories.