Skip to content

Commit 66143eb

Browse files
committed
Add mrc fee to mrc hash
1 parent 985b289 commit 66143eb

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/gridcoin/mrc.cpp

+4-6
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,10 @@ namespace {
2323
//! \brief Get the hash of a subset of the data in the mrc object used as
2424
//! input to sign or verify a research reward claim.
2525
//!
26-
//! \param mrc MRC to generate a hash for.
27-
//! \param last_block_hash Hash of the block at the head of the chain.
28-
//! \param mrc mrc transaction of the block that contains
29-
//! the claim.
26+
//! \param last_block_hash: Hash of the block at the head of the chain.
27+
//! \param mrc: mrc transaction of the block that contains the claim.
3028
//!
31-
//! \return Hash of the CPID and last block hash contained in the claim.
29+
//! \return Hash of the CPID, mrc fee, and last block hash contained in the claim.
3230
//!
3331
uint256 GetMRCHash(
3432
const MRC& mrc,
@@ -42,7 +40,7 @@ uint256 GetMRCHash(
4240

4341
CHashWriter hasher(SER_NETWORK, PROTOCOL_VERSION);
4442

45-
hasher << *cpid << last_block_hash;
43+
hasher << *cpid << mrc.m_fee << last_block_hash;
4644

4745
return hasher.GetHash();
4846
}

0 commit comments

Comments
 (0)