From 1fd470d7113c7c44e53c69cde23d92528ea6b97f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9rard=20Meunier?= Date: Sat, 25 Jan 2020 02:08:27 +0100 Subject: [PATCH] Go basic.go: Better log management. Log files (log.txt) are no more erased at every restart of wwServer. They grow until a maximal size (50MB), then a new one replaces them. The last replaced log file is saved under a new name (log1.txt), which is erased when a new log.txt is saved (rotation). blockchain.go: More convenient stopping protocol; now a ctrl-c stops wwServer without any risk of destroying DBase.data; system signals SIGHUP, SIGINT and SIGTERM are redirected to a go channel that is processed when no data is at risk. Increase of the number of buffer pages in util/btree (2000 -> 8000). New indexes in DBase.data to sort, for each identity, its received certifications by order of expiration dates; improves the speed of resolution of the CertLim operation; the new certToFork struct splits the two sorting: by pubkeys (byPub) and by expiration dates (byExp); new corresponding exported function CertNextToByExp. A new mutex (poSTMut) avoids a concurrency bug between reading and writing the tree poST in PercentOfSentriesS. New exported function SentryThreshold (minimal number of certifications for a member to become a sentry), devoted to be the only reference to this calculus. events.go: simplification and acceleration of the DoCertifsEnds function by use of the new procedure blockchain.CertNextToByExp. members.go: informations added: real time and blockchain time of events, uid of identities entering or exiting the WoT. gqlReceiver.go & run.go: renaming of graphQL to graphQLPartial. wotWizard.go: the comparison of the date field of File items with the current date is now relegated at the end of the CalcPermutations algorithm (into the CalcEntries function) to avoid incorrect changes in Dossier dates due to changes of previous certifications dates. Component Pascal BasicPrint.odc: No more procedure StopGo, useless. MembersPrint.odc: Display of more informations on WoT entries / exits (see members.go). WotWizardPrint: Display of the field Dossier.minimum_date. --- INSTALL | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/INSTALL b/INSTALL index 9c8a0be..724a60a 100644 --- a/INSTALL +++ b/INSTALL @@ -1,4 +1,4 @@ To install WotWizard, see the manuals in the Help directory. **Warning**: You need the 1.7.17 version of duniter or any later version in the series 1.7.x already installed. -modif +