aboutsummaryrefslogblamecommitdiff
path: root/src/hotstuff_app.cpp
blob: 014fe166d5b1d1d0e57950bcfebfc075e1d5ed77 (plain) (tree)






































                                      
                         


                            

                           




                                             

                                    
                           
                    
                                                              
                               
                                                                            
                        

                                                                      
                                            

                         

                                                               
                                               
 
                                                          
 
                                               




                                      




                                                        
                                                              
                          
                                 
                                                                     
      





                                                 

     

                                  
                                   
                                       



                                               
                                              

                                       



                 





























                                                                               
                                                             

                                                            
                                                            
                                                    



                                                                      


                                                                                                             
                                                            
                                                                                                             

                                                                                                               
                                                                                                                 
                                                                                                           

                                                                                    
                    
                          


































                                                                      


                                                    
                                                                                            

                                                                                        
            
                                                                                                
 
                                                   
                                                   
                                                   



                                                                   
                                              

                                                






                                                                        
                          








                                                     
                                           
                                               



                                                       
                                                      

                                               
                                        
                                                          
                             
                                     

           
                                
                                                    
                                                                                                     
                            

 

                                                                           

                                           
                               
                                                                   















                                                                              

 
                           




                                                         
                                                








                                                                   

                                   
                  
 
#include <iostream>
#include <cstring>
#include <cassert>
#include <algorithm>
#include <random>
#include <unistd.h>
#include <signal.h>
#include <event2/event.h>

#include "salticidae/stream.h"
#include "salticidae/util.h"
#include "salticidae/network.h"
#include "salticidae/msg.h"

#include "hotstuff/promise.hpp"
#include "hotstuff/type.h"
#include "hotstuff/entity.h"
#include "hotstuff/util.h"
#include "hotstuff/client.h"
#include "hotstuff/hotstuff.h"

using salticidae::MsgNetwork;
using salticidae::ClientNetwork;
using salticidae::ElapsedTime;
using salticidae::Config</