Miner S.C.
Miner-related Functions
NewMinerSmartContract
Creates a new instance of the Miner Smart Contract.
Execute
Executes a specified function within the Miner Smart Contract, based on the function name and input data provided.
Function Parameters:
Parameters:
Global Node Management
getGlobalNode
Retrieves the global configuration node from the blockchain state.
Function Signature:
Parameters:
Returns:
*GlobalNode
- Pointer to the global node configuration.error
- Error if retrieval fails.
InitConfig
Initializes the global configuration settings for the Miner Smart Contract.
Function Signature:
Parameters:
Description: This function initializes the settings in the blockchain, validating and storing the global node configuration if it does not already exist. If a global node does not exist, a default node is created and stored.
Execution Statistics
Miner Smart Contract records performance metrics for each key function:
Last updated