Research Article
To Delay Instantiation of a Smart Contract to Save Calculation Resources in IoT
Algorithm 2. Handling for IMR and IUR.
| 1: Process(Request r) | | 2: … | | 3: if r is IMR then | | 4: create instance | | 5: forward cached requests and r to instance | | 6: end if | | 7: if r is IUR then | | 8: if instance is not created then | | 9: cache r | | 10: else | | 11: forward r to instance | | 12: end if | | 13: end if |
|
Algorithm 2. Handling for IMR and IUR. |