Difference between revisions of "VT2020-BFT-Demo"
Jump to navigation
Jump to search
(Created page with "==BFT-SMART== Clonez le repository Git de BFT-Smart, il contient une démo. $ git clone git@github.com:bft-smart/library.git $ cd library Un fichier de config est disponibl...") |
|||
Line 2: | Line 2: | ||
Clonez le repository Git de BFT-Smart, il contient une démo. |
Clonez le repository Git de BFT-Smart, il contient une démo. |
||
+ | <pre> |
||
− | |||
$ git clone git@github.com:bft-smart/library.git |
$ git clone git@github.com:bft-smart/library.git |
||
$ cd library |
$ cd library |
||
+ | </pre> |
||
Un fichier de config est disponible si vous souhaitez appliquer des modifications (nombre de noeuds du réseau par exemple): config/hosts.config |
Un fichier de config est disponible si vous souhaitez appliquer des modifications (nombre de noeuds du réseau par exemple): config/hosts.config |
||
Line 11: | Line 12: | ||
Si vous souhaitez essayer avec 4 noeuds (par défaut), lancez 4 terminaux et tapez les commandes suivantes: |
Si vous souhaitez essayer avec 4 noeuds (par défaut), lancez 4 terminaux et tapez les commandes suivantes: |
||
+ | <pre> |
||
$ runscripts/smartrun.sh bftsmart.demo.map.MapServer 0 |
$ runscripts/smartrun.sh bftsmart.demo.map.MapServer 0 |
||
$ runscripts/smartrun.sh bftsmart.demo.map.MapServer 1 |
$ runscripts/smartrun.sh bftsmart.demo.map.MapServer 1 |
||
$ runscripts/smartrun.sh bftsmart.demo.map.MapServer 2 |
$ runscripts/smartrun.sh bftsmart.demo.map.MapServer 2 |
||
$ runscripts/smartrun.sh bftsmart.demo.map.MapServer 3 |
$ runscripts/smartrun.sh bftsmart.demo.map.MapServer 3 |
||
+ | </pre> |
||
Si le lancement des noeuds affiche une erreur: javax.net.ssl.SSLHandshakeException: No appropriate protocol |
Si le lancement des noeuds affiche une erreur: javax.net.ssl.SSLHandshakeException: No appropriate protocol |
||
Line 21: | Line 24: | ||
Lancez le client avec: |
Lancez le client avec: |
||
+ | <pre> |
||
− | |||
$ runscripts/smartrun.sh bftsmart.demo.map.MapInteractiveClient <client_id> |
$ runscripts/smartrun.sh bftsmart.demo.map.MapInteractiveClient <client_id> |
||
+ | </pre> |
Latest revision as of 16:42, 10 January 2021
BFT-SMART
Clonez le repository Git de BFT-Smart, il contient une démo.
$ git clone git@github.com:bft-smart/library.git $ cd library
Un fichier de config est disponible si vous souhaitez appliquer des modifications (nombre de noeuds du réseau par exemple): config/hosts.config
Utilisation
Si vous souhaitez essayer avec 4 noeuds (par défaut), lancez 4 terminaux et tapez les commandes suivantes:
$ runscripts/smartrun.sh bftsmart.demo.map.MapServer 0 $ runscripts/smartrun.sh bftsmart.demo.map.MapServer 1 $ runscripts/smartrun.sh bftsmart.demo.map.MapServer 2 $ runscripts/smartrun.sh bftsmart.demo.map.MapServer 3
Si le lancement des noeuds affiche une erreur: javax.net.ssl.SSLHandshakeException: No appropriate protocol Décommentez dans config/system.config la ligne 196: system.ssltls.enabled_ciphers = TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,
Lancez le client avec:
$ runscripts/smartrun.sh bftsmart.demo.map.MapInteractiveClient <client_id>