Research Article
[Retracted] Design and Application of Electronic Rehabilitation Medical Record (ERMR) Sharing Scheme Based on Blockchain Technology
Algorithm 2
Algorithm on log replication
Input: REQUEST from the client. | Output:ci | 1: client send R1 a REQUSET to add a record | 2: R1 append the record to its log | 3: | 4: for to Ndo | 5: R1 send Ri an INSTRUCTION to append the record | 6: end for | 7: | 8: for to Ndo | 9: ifRi agree to add the record then | 10: | 11: end if | 12: ifthen | 13: the addition of the record is confirmed | 14: | 15: R1 send the client a MESSAGE of successful record entry | 16: break | 17: end if | 18: end for | 19: for to Ndo | 20: R1 inform Ri to append the confirmed record | 21: Ri append the record to the log | 22: | 23: end for |
|