diff --git a/src/avalanche/processor.h b/src/avalanche/processor.h --- a/src/avalanche/processor.h +++ b/src/avalanche/processor.h @@ -62,12 +62,12 @@ }; template class VoteItemUpdate { - std::remove_reference_t item; + VoteItem item; VoteStatus status; public: VoteItemUpdate(const VoteItem itemIn, VoteStatus statusIn) - : item(itemIn), status(statusIn) {} + : item(std::move(itemIn)), status(statusIn) {} const VoteStatus &getStatus() const { return status; } @@ -76,7 +76,7 @@ }; using BlockUpdate = VoteItemUpdate; -using ProofUpdate = VoteItemUpdate &>; +using ProofUpdate = VoteItemUpdate>; using BlockVoteMap = std::map;