Skip to content

Commit

Permalink
Fix VerifyBMM method
Browse files Browse the repository at this point in the history
* Verify block hash instead of merkle root
  • Loading branch information
nchashch committed Aug 24, 2024
1 parent b438d5f commit b1f02e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/drivechain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ bool CDrivechain::IsConnected(const CBlockHeader& block)

bool CDrivechain::VerifyBMM(const CBlockHeader& block)
{
return this->drivechain->verify_bmm(block.hashPrevMainBlock.GetHex(), block.hashMerkleRoot.GetHex());
return this->drivechain->verify_bmm(block.hashPrevMainBlock.GetHex(), block.GetHash().GetHex());
}

std::vector<CTxOut> CDrivechain::GetCoinbaseOutputs()
Expand Down

0 comments on commit b1f02e9

Please sign in to comment.