Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: calculate quorum members using v20 cbtx clsig #5366

Merged
merged 10 commits into from
May 17, 2023
Prev Previous commit
Next Next commit
partial revert
UdjinM6 authored and ogabrielides committed May 12, 2023
commit 02a98b52c80733dfbf9f0d86c88f51e0ddeafd4a
15 changes: 2 additions & 13 deletions src/evo/cbtx.cpp
Original file line number Diff line number Diff line change
@@ -443,19 +443,8 @@ std::optional<CCbTx> GetCoinbaseTx(const CBlockIndex* pindex)
}

CBlock block;
{
FlatFilePos blockPos;
{
blockPos = pindex->GetBlockPos();
}

if (!ReadBlockFromDisk(block, blockPos, Params().GetConsensus())) {
return std::nullopt;
}

if (block.GetHash() != pindex->GetBlockHash()) {
return std::nullopt;
}
if (!ReadBlockFromDisk(block, pindex, Params().GetConsensus())) {
return std::nullopt;
}

CTransactionRef cbTx = block.vtx[0];