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
| Name | Type | Description |
|---|---|---|
| prevState | []byte | The byte slice representing the previous round's state, used to initialize the new PluginStateManager. |
| prevVersion | uint8 | The version of the previous state, used to initialize the new PluginStateManager. |
Returns
| Type | Description |
|---|---|
*PluginStateManager | A new PluginStateManager instance. |