From 66143eb9de5c8e017237c9325bafd9115c0e805f Mon Sep 17 00:00:00 2001 From: "James C. Owens" Date: Sat, 12 Mar 2022 18:20:19 -0500 Subject: [PATCH] Add mrc fee to mrc hash --- src/gridcoin/mrc.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/gridcoin/mrc.cpp b/src/gridcoin/mrc.cpp index 3daf4d5f0d..1a7c0cd500 100644 --- a/src/gridcoin/mrc.cpp +++ b/src/gridcoin/mrc.cpp @@ -23,12 +23,10 @@ namespace { //! \brief Get the hash of a subset of the data in the mrc object used as //! input to sign or verify a research reward claim. //! -//! \param mrc MRC to generate a hash for. -//! \param last_block_hash Hash of the block at the head of the chain. -//! \param mrc mrc transaction of the block that contains -//! the claim. +//! \param last_block_hash: Hash of the block at the head of the chain. +//! \param mrc: mrc transaction of the block that contains the claim. //! -//! \return Hash of the CPID and last block hash contained in the claim. +//! \return Hash of the CPID, mrc fee, and last block hash contained in the claim. //! uint256 GetMRCHash( const MRC& mrc, @@ -42,7 +40,7 @@ uint256 GetMRCHash( CHashWriter hasher(SER_NETWORK, PROTOCOL_VERSION); - hasher << *cpid << last_block_hash; + hasher << *cpid << mrc.m_fee << last_block_hash; return hasher.GetHash(); }