aboutsummaryrefslogtreecommitdiff
path: root/src/client.cpp
blob: 7827b7cc80111dc9e7fae34286b1d5620995e376 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "hotstuff/client.h"

namespace hotstuff {

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; }

}