Skip to content

Commit

Permalink
Go
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
gerard94 committed Jan 25, 2020
1 parent ef5fb4d commit 1fd470d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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

0 comments on commit 1fd470d

Please sign in to comment.