Skip to content

Commit

Permalink
Add CPubKey m_public_key to Project class for v2
Browse files Browse the repository at this point in the history
This is for future use.
  • Loading branch information
jamescowens committed Jul 4, 2022
1 parent 5ae77b8 commit d0995d1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gridcoin/project.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include "gridcoin/contract/handler.h"
#include "gridcoin/contract/payload.h"
#include "serialize.h"
#include "pubkey.h"

#include <memory>
#include <vector>
Expand Down Expand Up @@ -58,6 +59,7 @@ class Project : public IContractPayload
std::string m_url; //!< As it exists in the contract value field.
int64_t m_timestamp; //!< Timestamp of the contract.
bool m_gdpr_controls; //!< Boolean to indicate whether project has GDPR stats export controls.
CPubKey m_public_key; //!< Project public key.

//!
//! \brief Initialize an empty, invalid project object.
Expand Down Expand Up @@ -187,6 +189,7 @@ class Project : public IContractPayload

if (m_version >= 2) {
READWRITE(m_gdpr_controls);
READWRITE(m_public_key);
}
}
}
Expand Down

0 comments on commit d0995d1

Please sign in to comment.