Changeset View
Changeset View
Standalone View
Standalone View
src/avalanche/delegationbuilder.h
Show All 18 Lines | |||||
class DelegationBuilder { | class DelegationBuilder { | ||||
ProofId proofid; | ProofId proofid; | ||||
DelegationId dgid; | DelegationId dgid; | ||||
std::vector<Delegation::Level> levels; | std::vector<Delegation::Level> levels; | ||||
public: | public: | ||||
DelegationBuilder(const Proof &p); | explicit DelegationBuilder(const Proof &p); | ||||
bool importDelegation(const Delegation &d); | |||||
bool addLevel(const CKey &key, const CPubKey &newMaster); | bool addLevel(const CKey &key, const CPubKey &newMaster); | ||||
Delegation build() const; | Delegation build() const; | ||||
}; | }; | ||||
} // namespace avalanche | } // namespace avalanche | ||||
#endif // BITCOIN_AVALANCHE_DELEGATIONBUILDER_H | #endif // BITCOIN_AVALANCHE_DELEGATIONBUILDER_H |