Skip to content

Commit

Permalink
CI fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
EduMenges committed Aug 27, 2024
1 parent a8ea817 commit 56d49c0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
5 changes: 3 additions & 2 deletions src/base/blob.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ namespace sgns::base {
* @brief constructor enabling initializer list
* @param l initializer list
*/
explicit Blob(const std::array<byte_t, size_> &l) {
std::copy(l.begin(), l.end(), this->begin());
explicit constexpr Blob( const std::array<byte_t, size_> &l )
{
std::copy( l.begin(), l.end(), this->begin() );
}

/**
Expand Down
9 changes: 4 additions & 5 deletions src/primitives/common.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


#ifndef SUPERGENIUS_SRC_PRIMITIVES_COMMON_HPP
#define SUPERGENIUS_SRC_PRIMITIVES_COMMON_HPP

Expand All @@ -19,10 +17,11 @@ namespace sgns::primitives {
// (BlockInfo, Prevote, Precommit, PrimaryPropose)
template <typename Tag>
struct BlockInfoT : public boost::equality_comparable<BlockInfoT<Tag>> {
BlockInfoT() = default;
constexpr BlockInfoT() = default;

BlockInfoT(const BlockNumber &n, const BlockHash &h)
: block_number(n), block_hash(h) {}
constexpr BlockInfoT( BlockNumber n, BlockHash h ) : block_number( n ), block_hash( h )
{
}

BlockNumber block_number{};
BlockHash block_hash;
Expand Down
2 changes: 1 addition & 1 deletion src/verification/authority/impl/schedule_node.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ namespace sgns::authority {
std::shared_ptr<ScheduleNode> makeDescendant(
const primitives::BlockInfo &block, bool finalized = false);

const primitives::BlockInfo block;
const primitives::BlockInfo block{};
std::weak_ptr<ScheduleNode> parent;
std::vector<std::shared_ptr<ScheduleNode>> descendants;

Expand Down

0 comments on commit 56d49c0

Please sign in to comment.