Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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