Skip to main content

NewPluginStateManager

Creates a PluginStateManager initialized with the previous round's state.

def NewPluginStateManager(
prevState: []byte,
prevVersion: uint8
) - > *PluginStateManager

Creates a PluginStateManager initialized with the previous round's state.

Parameters

NameTypeDescription
prevState[]byteThe byte slice representing the previous round's state, used to initialize the new PluginStateManager.
prevVersionuint8The version of the previous state, used to initialize the new PluginStateManager.

Returns

TypeDescription
*PluginStateManagerA new PluginStateManager instance.