From bc40113e0c584df3fc691da712bd2fa46a7769ca Mon Sep 17 00:00:00 2001 From: tfn18001 Date: Sun, 24 Apr 2022 23:23:37 -0400 Subject: [PATCH] Vocabulary changes --- CTng/Readme.md | 4 +++- CTng/gossip/accusations.go | 2 +- CTng/testData/monitorNetworkTest/monitor_pub_config.json | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CTng/Readme.md b/CTng/Readme.md index beab13a..4092aa9 100644 --- a/CTng/Readme.md +++ b/CTng/Readme.md @@ -23,7 +23,9 @@ ___ **`ctng.go`**: A commandline interface for running a Monitor, Gossiper, fakeLogger, or fakeCA. -**`monitorTest.sh`**: run as `sh monitorTest.sh [N]`, where N is which monitor you want to run +**`monitorTest.sh`**: run as `sh monitorTest.sh [N]`, where N is which # monitor you want to run from the testData folder + +**`gossiperTest.sh`**: run as `sh gossiperTest.sh [N]`, where N is which # monitor you want to run from the testData folder # Running the code diff --git a/CTng/gossip/accusations.go b/CTng/gossip/accusations.go index 1fe87b2..5a7e22f 100644 --- a/CTng/gossip/accusations.go +++ b/CTng/gossip/accusations.go @@ -21,7 +21,7 @@ func Process_Accusation(new_acc Gossip_object, accs *AccusationDB, c *crypto.Cry //check if the accusation is a duplicate (from an existing accuser) for _, x := range val.Accusers { if x == new_acc.Signer { - return nil, false, errors.New("Recieved Duplicate Accusation") + return nil, false, errors.New("Accusation already Stored") } } //update the number of accusations and the list of accusers diff --git a/CTng/testData/monitorNetworkTest/monitor_pub_config.json b/CTng/testData/monitorNetworkTest/monitor_pub_config.json index eeb7d4d..e37df91 100644 --- a/CTng/testData/monitorNetworkTest/monitor_pub_config.json +++ b/CTng/testData/monitorNetworkTest/monitor_pub_config.json @@ -2,7 +2,7 @@ "All_CA_URLs": ["localhost:9100", "localhost:9101", "localhost:9102"], "All_Logger_URLs": ["localhost:9000", "localhost:9001", "localhost:9002"], "Gossip_wait_time": 3, - "MMD": 5, - "MRD": 5, + "MMD": 10, + "MRD": 10, "Http_vers": ["2","1","3"] }