write a python script so take the log file as an input….

  

write a python script so take the log file as an input…. write a python script so take the log file as an input. requirement:parse the logs.For each valid BlockHash(valid BlockHash means it starts with “message”:”[Announce] Sent Announce Message!!” and end with “message”:”[OnCommit] Commit Grace Period Ended” if cannot find these pair message it means invalid) caculate the time takes Start from state:  “message”:”[Announce] Sent Announce Message!!” To “message”:”[OnPrepare] Sent Prepared Message!!” ==>T1For each valid BlockHash(valid BlockHash means it starts with “message”:”[Announce] Sent Announce Message!!” and end with “message”:”[OnCommit] Commit Grace Period Ended” if cannot find these pair message it means invalid) caculate the time takes Start from state:  “message”:”[Announce] Sent Announce Message!!” To “message”:”[finalCommit] Queued Committed Message” ==>T2caculate ave1 = (sum of t1) / (number of valid BlockHash)  and  ave1 = (sum of t2) / (number of valid BlockHash)log file https://docs.google.com/document/d/1aI07FtHzkhC_muIOsNTBHIr1AvBDi13nWtR8tS9Jjqo/edit?usp=sharing Computer Science Engineering & Technology Python Programming COM SCI 143

Don't use plagiarized sources. Get Your Custom Essay on
write a python script so take the log file as an input….
Just from $13/Page
Order Essay
  

Leave a Reply

Your email address will not be published.

Related Post

Open chat
💬 Need help?
Hello 👋
Can we help you?