aboutsummaryrefslogblamecommitdiff
path: root/src/client.cpp
blob: 562fab50eedd26dab257454266d72f48e97f1989 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                            




                               



                                                               

 


                                                                  

 
#include "hotstuff/client.h"

namespace hotstuff {

uint64_t CommandDummy::cnt = 0;

const opcode_t MsgReqCmd::opcode;
MsgReqCmd::MsgReqCmd(const Command &cmd) { serialized << cmd; }
void MsgReqCmd::postponed_parse(HotStuffCore *hsc) {
    cmd = hsc->parse_cmd(serialized);
}

const opcode_t MsgRespCmd::opcode;
MsgRespCmd::MsgRespCmd(const Finality &fin) { serialized << fin; }
MsgRespCmd::MsgRespCmd(DataStream &&s) { s >> fin; }

}