@@ -46,8 +46,10 @@ class ReplicaConfig : public concord::serialize::SerializableFactory<ReplicaConf
4646 }
4747
4848 CONFIG_PARAM (isReadOnly, bool , false , " Am I a read-only replica?" );
49+ CONFIG_PARAM (isFullNode, bool , false , " Am I a fullNode replica?" );
4950 CONFIG_PARAM (numReplicas, uint16_t , 0 , " number of regular replicas" );
5051 CONFIG_PARAM (numRoReplicas, uint16_t , 0 , " number of read-only replicas" );
52+ CONFIG_PARAM (numFnReplicas, uint16_t , 0 , " number of full-node replicas" );
5153 CONFIG_PARAM (fVal , uint16_t , 0 , " F value - max number of faulty/malicious replicas. fVal >= 1" );
5254 CONFIG_PARAM (cVal, uint16_t , 0 , " C value. cVal >=0" );
5355 CONFIG_PARAM (replicaId,
@@ -327,8 +329,10 @@ class ReplicaConfig : public concord::serialize::SerializableFactory<ReplicaConf
327329
328330 void serializeDataMembers (std::ostream& outStream) const {
329331 serialize (outStream, isReadOnly);
332+ serialize (outStream, isFullNode);
330333 serialize (outStream, numReplicas);
331334 serialize (outStream, numRoReplicas);
335+ serialize (outStream, numFnReplicas);
332336 serialize (outStream, fVal );
333337 serialize (outStream, cVal);
334338 serialize (outStream, replicaId);
@@ -427,8 +431,10 @@ class ReplicaConfig : public concord::serialize::SerializableFactory<ReplicaConf
427431 }
428432 void deserializeDataMembers (std::istream& inStream) {
429433 deserialize (inStream, isReadOnly);
434+ deserialize (inStream, isFullNode);
430435 deserialize (inStream, numReplicas);
431436 deserialize (inStream, numRoReplicas);
437+ deserialize (inStream, numFnReplicas);
432438 deserialize (inStream, fVal );
433439 deserialize (inStream, cVal);
434440 deserialize (inStream, replicaId);
@@ -605,7 +611,8 @@ inline std::ostream& operator<<(std::ostream& os, const ReplicaConfig& rc) {
605611 rc.maxNumberOfDbCheckpoints ,
606612 rc.dbCheckPointWindowSize ,
607613 rc.dbCheckpointDirPath ,
608- rc.dbSnapshotIntervalSeconds .count ());
614+ rc.dbSnapshotIntervalSeconds .count (),
615+ rc.isFullNode );
609616 os << " ," ;
610617 const auto replicaMsgSignAlgo =
611618 (concord::crypto::SignatureAlgorithm::EdDSA == rc.replicaMsgSigningAlgo ) ? " eddsa" : " undefined" ;
0 commit comments