Skip to content

Commit

Permalink
Update Readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jik18001 authored Apr 19, 2022
1 parent c96e330 commit 9d5b80f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CTng/HTTP/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ Timer_Loggers TimedMap
Timer_Loggers_LastCheckIn int64 (Unix() format)
Timer_CAs_LastCheckIn int64 (Unix() format)

Invoke func (c *MonitorContext) InitializeTimedMap() when starting the monitor

If the monitor receives the information (a valid gossip object) from a logger, it will update the Timer from the Timer_loggers with the URL of that logger as the key.
If the monitor receives the information (a valid gossip object) from a CA, it will update the Timer from the Timer_CAs with the URL of that CA as the key.
If it has been more than 1 MMD since last check in, the monitor will do a linear search on the Timer_loggers, accuse all loggers that didn't repond in this MMD,
Expand All @@ -24,4 +26,7 @@ func Monitor_process_valid_object(c *MonitorContext, g gossip.Gossip_object)
//if the logger sends the sth to the monitor,this function will send the raw version to the gossiper, wait for gossip_wait_time, check its updated PoM database,
if the signer of this sth is not in it, threshold sign this sth and send it to the gossiper
// Same thing applies to revocation information and CA
//it will store all the valid gossip object from its own gossiper, including different types of PoMs and fully signed sths and revocation information

func Monitor_handle_gossip(c *MonitorContext, w http.ResponseWriter, r *http.Request)
//Handles gossip object it received through HTTP

0 comments on commit 9d5b80f

Please sign in to comment.