aboutsummaryrefslogblamecommitdiff
path: root/src/hotstuff_client.cpp
blob: b32bcb5523430f3a6e6cd356c82fb4d49bfd7a14 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
                  
                 
                   



                               



                            
 
                         
                             
 
                          

                             

                           

                             
                              
                          
                         
                          
 
                
                   

                     

                 
                 



                  
                     
                               
                                                 
                                                        

  
                                                                  
                                                     
                              
                                                       
                                          
 




                                                                 
                                  
                   


                                                                       

 
                 

                                                          
                                                


                                                            
                                 

                                                              
      
                                      
                                                      




                             
                                                                              
                        
                                                               
                                             
                                     


                                    

















                                                                        




                                                            


                                                          
      
                      
               


                                                                               
                                                               


                                          



                                               

                                   



                                    
                                                
                                                       

                                                           
                                                 
 
                                            


                                                        
                                                        
                                                                

                                                                        


                                               
                                                 
                                                             

                                                
                                                                       

                                                    
                                                          

         
                                                                      
                                                        
                                                          
                                
         


                                                                                          

         


                                                    
                          
                   
                      
                                
                                                                    
                                






                                                                                              
      


             
#include <cassert>
#include <random>
#include <signal.h>
#include "salticidae/type.h"
#include "salticidae/netaddr.h"
#include "salticidae/network.h"
#include "salticidae/util.h"

#include "hotstuff/util.h"
#include "hotstuff/type.h"
#include "hotstuff/client.h"

using salticidae::Config;
using salticidae::MsgNetwork;

using hotstuff::ReplicaID;
using hotstuff::NetAddr;
using hotstuff::EventContext;
using hotstuff::MsgReqCmd;
using hotstuff::MsgRespCmd;
using hotstuff::CommandDummy;
using hotstuff::Finality;
using hotstuff::HotStuffError;
using hotstuff::uint256_t;
using hotstuff::opcode_t;