Skip to content

Commit

Permalink
Version 2.1.1. Ajout des hashs des identités de la BC pour vérificati…
Browse files Browse the repository at this point in the history
…on des certifications en piscine en cas de double identité. Tenir compte, dans les dossiers externes, de suffisamment de certifications pour vérifier la règle de distance et attendre qu’elles soient disponibles. Considérer que les certifications disponibles à des dates sép^Cées par des durées inférieures à avgGenTime ont une grande probabilité de passer dans le même bloc, et supposer qu'il en est ainsi.
  • Loading branch information
gerard94 committed Jan 13, 2018
1 parent 010593d commit 5a12f03
Show file tree
Hide file tree
Showing 221 changed files with 14,424 additions and 5,348 deletions.
2 changes: 1 addition & 1 deletion INSTALL
Original file line number Diff line number Diff line change
@@ -1 +1 @@
See one of the manuals in the Help directory.
You can install two versions of WotWizard: Server or Standalone. For each one, see one of the manuals in the Help directory .
38 changes: 14 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,42 +2,29 @@

WotWizard builds, from the blockchain and sandbox of Duniter, a prediction of the future entries of candidates into the Duniter Web of Trust (WOT). It uses a simulation of the Duniter mechanism. When several possibilities may happen, each one is listed with its probabilities. The published lists are automatically updated every five minutes, and any change is signalled visually.

WotWizard is divided into:
- a server (WWServer.exe) which produces two data files (WWByDates.json & WWMeta.json)
- a gui interface (WotWizard.exe) which reads the data from WWServer.exe and displays them
This program needs that a Duniter node runs on the same computer.
This program runs natively on Windows. If your computer runs on Linux, install "wine" first, and, in a terminal, run "winecfg" and configure the drives to be sure that the Duniter database (see below) can be reached.

You can find the executables here:
https://github.com/duniter/WotWizard/releases

There are two versions of WotWizard: Server or Standalone.

This program needs that a Duniter node runs on the same computer.
This program runs natively on Windows. If your computer runs on Linux, install "wine" first, and, in a terminal, run "winecfg" and configure the drives to be sure that the Duniter database (see below) can be reached.
Server version:

You can run WotWizard as a server only, if you want to display yourself its results (e.g. in a web page). In this case, put the file "WWServer.exe" into an empty directory and put the Windows dll "sqlite3.dll" into the same directory. Then, you have to run "WWServer.exe" as often as you want with the line command:
Server version is divided into:
- a server (WWServer.exe) which produces two data files (WWByDates.json & WWMeta.json)
- a gui interface (WotWizard.exe) which reads the data from WWServer.exe and displays them

You can run this version as a server only, if you want to display yourself its results (e.g. in a web page). In this case, put the file "WWServer.exe" into an empty directory and put the Windows dll "sqlite3.dll" into the same directory. Then, you have to run "WWServer.exe" as often as you want with the line command:

$wine WWServer.exe

or directly from within your application. The dll can be found at the address:

https://www.sqlite.org/2015/sqlite-dll-win32-x86-3081002.zip

At the end of every run, WWServer writes (or updates) two files, in json syntax: WWByDates.json, which lists the entries of the newcomers, sorted and grouped by dates, and WWMete.json, which gives some metadata on the computing and the original data.

You have to tell WWServer two things:
- the path where it can find the Duniter database.
By default:
D:\.config\duniter\duniter_default\duniter.db
Change the default value by creating (or editing) the file Duniter/Rsrc/Init.txt; warning: the path must be surrounded by two double quotes (ex: "D:\.config\duniter\duniter_default\duniter.db")
- the largest memory size in bytes (approximatively) it is allowed to allocate.
By default: 800000000
Change the default value by creating (or editing) the file Duniter/Rsrc/WW_Max_Stack.txt.

You can change the language of the output with these line commands options:

$wine WWServer.exe -lang fr for a French output, or
$wine WWServer.exe -lang en for an English output.

On the first run of WWServer, a part of Duniter data is copied into a new database (Duniter/DBase.data), to accelerate their future use. This operation may take a rather long time,.
At the end of every run, WWServer writes (or updates) two files, in json syntax: WWByDates.json, which lists the entries of the newcomers, sorted and grouped by dates, and WWMeta.json, which gives some metadata on the computing and the original data.

If you want to display the updated results of WWServer continuously, put the file "WotWizard.exe" into the same directory as "WWServer.exe" and run WotWizard with the line command:

Expand All @@ -47,5 +34,8 @@ You can:
- choose the way the list is displayed (by names or by dates, or metadata)
- manually update the list (it's automatically updated every five minutes)

When the list has changed, two asterisks appear, one on each side of the title, and a new button "Check" is created. Click on the button to make the marks disappear. You can then compare the new and old lists by clicking on the button "Compare", or by using the menu item "Edit -> Compare Texts".


Standalone version:

This version combines the server side and the gui side into a single application. It contains several derived tools like an explorer of the web of trust, a tool that prints the number of members day by day, or the number of certifications by certifiers, etc...
Binary file modified Server version/Blackbox/Duniter/Docu/Manual.odc
Binary file not shown.
Binary file modified Server version/Blackbox/Duniter/Docu/fr/Manual.odc
Binary file not shown.
Binary file modified Server version/Blackbox/Duniter/Mod/Basic.odc
Binary file not shown.
Binary file modified Server version/Blackbox/Duniter/Mod/Blockchain.odc
Binary file not shown.
Binary file modified Server version/Blackbox/Duniter/Mod/Log.odc
Binary file not shown.
Binary file modified Server version/Blackbox/Duniter/Mod/Sandbox.odc
Binary file not shown.
Binary file modified Server version/Blackbox/Duniter/Mod/Server.odc
Binary file not shown.
Binary file modified Server version/Blackbox/Duniter/Mod/WWViews.odc
Binary file not shown.
Binary file modified Server version/Blackbox/Duniter/Mod/WotWizard.odc
Binary file not shown.
Binary file modified Server version/Blackbox/Duniter/Rsrc/Strings.odc
Binary file not shown.
Binary file modified Server version/Blackbox/Duniter/Rsrc/fr/Strings.odc
Binary file not shown.
Binary file modified Server version/Blackbox/Util/Mod/External.odc
Binary file not shown.
Binary file modified Server version/Blackbox/Util/Mod/Json.odc
Binary file not shown.
Binary file modified Server version/Documentation/Duniter/Manual.en.pdf
Binary file not shown.
Binary file modified Server version/Documentation/Duniter/Manual.fr.pdf
Binary file not shown.
Binary file added Server version/Help/Manual.en.pdf
Binary file not shown.
55 changes: 0 additions & 55 deletions Server version/Help/Manual.en.txt

This file was deleted.

Binary file added Server version/Help/Manual.fr.pdf
Binary file not shown.
56 changes: 0 additions & 56 deletions Server version/Help/Manual.fr.txt

This file was deleted.

16 changes: 10 additions & 6 deletions Server version/Sources/Duniter/Basic.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(*
Duniter: WotWizard.

Copyright (C) 2017 GérardMeunier
Copyright (C) 2017 Gérard Meunier

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

Expand All @@ -18,7 +18,7 @@ MODULE DuniterBasic;

IMPORT

A := UtilAvlTree, Converters, Dates, Kernel, Services, Strings, UC := UnicodeCase_Mapping, UL := UnicodeLetter_Mapping;
A := UtilAvlTree, Converters, Dates, Dialog, Kernel, Services, Strings, UC := UnicodeCase_Mapping, UL := UnicodeLetter_Mapping;

CONST

Expand Down Expand Up @@ -75,10 +75,14 @@ MODULE DuniterBasic;
time: Dates.Time;

BEGIN (*TimestampToString*)
TimestampToDate(t, date, time);
Dates.DateToString(date, Dates.short, da);
Dates.TimeToString(time, ti);
dt := da + " " + ti;
IF t = never THEN
Dialog.MapString("#Duniter0:Never", dt);
ELSE
TimestampToDate(t, date, time);
Dates.DateToString(date, Dates.short, da);
Dates.TimeToString(time, ti);
dt := da + " " + ti;
END;
END TimestampToString;

(* Convert the string dt to a date *)
Expand Down
Loading

0 comments on commit 5a12f03

Please sign in to comment.