Research Article
Temporal Index Scheme of Hyperledger Fabric System in IoT
| Input: key , time interval | | Output: list of events | | 1: Events= | | 2: Get from StateDB | | 3: for has next do | | 4: if is Join of Inclusion then | | 5: Append to | | 6: end if | | 7: end for | | 8: fordo | | 9: | | 10: ifthen | | 11: Read file to memory | | 12: Parse file | | 13: Events=temporal | | 14: else | | 15: Read memory | | 16: Events=temporal join | | 17: end if | | 18: end for | | 19: fordo | | 20: if Events not belong to then | | 21: Remove Events from Events | | 22: end if | | 23: end for | | 24: return Events |
|