Transaction Processing
Last updated
Last updated
Each function has a consumer contract. When the client calls the function, the system processes the transaction as follows:
Call the corresponding consumer contract on the chain. The consumer contract call will be passed to the Oracle contract in the system.
The worker node continuously listens to the function call event.
After the worker receives the call event, it calls the function service to execute.
The worker node queries its own trust value while executing the function.
After the worker node processes the function request, it calls the contract to send the execution result and its trust score to the chain.
Other worker nodes may also repeat the above process.
After a certain period of time, the miners filter the function results, select the most trusted worker’s execution result, and reach a consensus.