VT2020-BFT-Demo

From air
Revision as of 17:41, 10 January 2021 by Alexandre.Salmon (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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>