Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
064100a
fix(evo): partition Evo-derived caches by view
PastaPastaPasta Nov 20, 2026
6ebc01c
fix(evo): bind non-active paths and dispatcher boundaries explicitly
PastaPastaPasta Oct 15, 2026
583d7a9
fixup! fix(evo): bind non-active paths and dispatcher boundaries expl…
PastaPastaPasta Nov 28, 2026
97c2ed6
fixup! fix(evo): bind non-active paths and dispatcher boundaries expl…
PastaPastaPasta Nov 28, 2026
0bcdc57
fixup! fix(evo): bind non-active paths and dispatcher boundaries expl…
PastaPastaPasta Nov 28, 2026
b37ca6f
fixup! fix(evo): bind non-active paths and dispatcher boundaries expl…
PastaPastaPasta Nov 28, 2026
06879fe
fixup! fix(evo): bind non-active paths and dispatcher boundaries expl…
PastaPastaPasta Nov 28, 2026
ebbff73
amend! fix(evo): bind non-active paths and dispatcher boundaries expl…
PastaPastaPasta Nov 28, 2026
313f2b6
fixup! fix(evo): bind non-active paths and dispatcher boundaries expl…
PastaPastaPasta Nov 29, 2026
f363b81
fixup! fix(evo): bind non-active paths and dispatcher boundaries expl…
PastaPastaPasta Nov 29, 2026
c9f6c68
feat(evo): reject unbound Evo reads during dual operation
PastaPastaPasta Oct 15, 2026
815787f
fix(validation): stop reading a rejected snapshot when its rejection …
PastaPastaPasta Oct 31, 2026
98a482c
fixup! fix(validation): stop reading a rejected snapshot when its rej…
PastaPastaPasta Nov 28, 2026
3b94cd7
fixup! fix(validation): stop reading a rejected snapshot when its rej…
PastaPastaPasta Nov 28, 2026
1a242ad
fixup! fix(validation): stop reading a rejected snapshot when its rej…
PastaPastaPasta Nov 28, 2026
6a62b6d
fixup! feat(evo): reject unbound Evo reads during dual operation
PastaPastaPasta Nov 28, 2026
50f4ead
fixup! fix(validation): stop reading a rejected snapshot when its rej…
PastaPastaPasta Nov 28, 2026
ad378ef
fixup! fix(validation): stop reading a rejected snapshot when its rej…
PastaPastaPasta Nov 28, 2026
cdeca19
fixup! feat(evo): reject unbound Evo reads during dual operation
PastaPastaPasta Nov 28, 2026
f572ae8
fixup! fix(validation): stop reading a rejected snapshot when its rej…
PastaPastaPasta Nov 28, 2026
c64c0c4
amend! feat(evo): reject unbound Evo reads during dual operation
PastaPastaPasta Nov 28, 2026
7bb5879
amend! fix(validation): stop reading a rejected snapshot when its rej…
PastaPastaPasta Nov 28, 2026
8cc36ee
fixup! feat(evo): reject unbound Evo reads during dual operation
PastaPastaPasta Nov 28, 2026
e342632
fixup! feat(evo): reject unbound Evo reads during dual operation
PastaPastaPasta Nov 29, 2026
8cec98c
feat(evo): v4 snapshot with derived rotation dependencies and bootstr…
PastaPastaPasta Oct 15, 2026
1702146
feat(evo): carry and consume the credit-pool window
PastaPastaPasta Oct 15, 2026
61c5f6e
feat(evo): carry the header-proven base coinbase and use it for B+1 C…
PastaPastaPasta Oct 15, 2026
3ef5405
fix(evo): export the raw MNHF signal record at the base and derive th…
PastaPastaPasta Oct 16, 2026
7ba70bd
fix(evo): carry the snapshot's masternode ids into NORMAL's at promotion
PastaPastaPasta Nov 28, 2026
90b5e8a
fix(evo): number the evo section's masternodes canonically
PastaPastaPasta Nov 28, 2026
4ff33c7
fixup! feat(evo): carry the header-proven base coinbase and use it fo…
PastaPastaPasta Nov 28, 2026
c83d62d
fixup! feat(evo): v4 snapshot with derived rotation dependencies and …
PastaPastaPasta Nov 28, 2026
a62d85c
fixup! feat(evo): carry and consume the credit-pool window
PastaPastaPasta Nov 28, 2026
6bbaf1d
fixup! feat(evo): carry the header-proven base coinbase and use it fo…
PastaPastaPasta Nov 28, 2026
405a70a
fixup! fix(evo): export the raw MNHF signal record at the base and de…
PastaPastaPasta Nov 28, 2026
2a1d8ab
fixup! fix(evo): carry the snapshot's masternode ids into NORMAL's at…
PastaPastaPasta Nov 28, 2026
a34eda0
fixup! fix(evo): number the evo section's masternodes canonically
PastaPastaPasta Nov 28, 2026
58d77a4
fixup! feat(evo): v4 snapshot with derived rotation dependencies and …
PastaPastaPasta Nov 29, 2026
282803d
fixup! feat(evo): carry the header-proven base coinbase and use it fo…
PastaPastaPasta Nov 29, 2026
ce3456c
fixup! feat(evo): v4 snapshot with derived rotation dependencies and …
PastaPastaPasta Nov 29, 2026
07f5e37
fixup! fix(evo): export the raw MNHF signal record at the base and de…
PastaPastaPasta Nov 29, 2026
26a47d2
fixup! fix(evo): export the raw MNHF signal record at the base and de…
PastaPastaPasta Nov 29, 2026
921021b
fixup! feat(evo): v4 snapshot with derived rotation dependencies and …
PastaPastaPasta Nov 29, 2026
bb8c99b
fixup! feat(evo): v4 snapshot with derived rotation dependencies and …
PastaPastaPasta Nov 29, 2026
3018f70
fixup! feat(evo): carry and consume the credit-pool window
PastaPastaPasta Nov 29, 2026
e322eca
fixup! fix(evo): export the raw MNHF signal record at the base and de…
PastaPastaPasta Nov 29, 2026
125b5fe
fix(llmq): exact work modifiers and no silent degradation under the s…
PastaPastaPasta Oct 15, 2026
581e2d9
feat(llmq): prove ChainLock and asset-unlock scan coverage
PastaPastaPasta Nov 20, 2026
d7e2fec
fixup! fix(llmq): exact work modifiers and no silent degradation unde…
PastaPastaPasta Nov 28, 2026
32302a5
fixup! feat(llmq): prove ChainLock and asset-unlock scan coverage
PastaPastaPasta Nov 28, 2026
b9deac4
fixup! feat(llmq): prove ChainLock and asset-unlock scan coverage
PastaPastaPasta Nov 29, 2026
1000658
feat(rpc): emit the v4 evo section in dumptxoutset
PastaPastaPasta Oct 15, 2026
2b3686c
feat(validation): require a matching evo pin; add regtest -assumeutxo…
PastaPastaPasta Oct 15, 2026
d0e65c0
test: suppress a TSan lock-order false positive from a reused stack a…
PastaPastaPasta Nov 19, 2026
5bd76bf
fixup! feat(rpc): emit the v4 evo section in dumptxoutset
PastaPastaPasta Nov 28, 2026
c42534b
fixup! feat(validation): require a matching evo pin; add regtest -ass…
PastaPastaPasta Nov 28, 2026
84521b9
feat(validation): seed into an unpublished generation, dry-run, then …
PastaPastaPasta Oct 15, 2026
b821065
feat(validation): rebuild and compare the full evo section at completion
PastaPastaPasta Nov 10, 2026
b4330b6
fixup! feat(validation): seed into an unpublished generation, dry-run…
PastaPastaPasta Nov 28, 2026
918f649
fixup! feat(validation): rebuild and compare the full evo section at …
PastaPastaPasta Nov 28, 2026
9cbe438
fixup! feat(validation): seed into an unpublished generation, dry-run…
PastaPastaPasta Nov 29, 2026
2bf1541
fixup! feat(validation): rebuild and compare the full evo section at …
PastaPastaPasta Nov 29, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions doc/release-notes-8270.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Updated RPCs
------------

- RPC handlers that let a local Evo-state exception reach the RPC dispatcher
now return `RPC_INTERNAL_ERROR` (-32603) instead of `RPC_MISC_ERROR` (-1).
RPCs that handle the failure as a validation result, such as `submitblock`
and the package RPCs, report it through their own error paths. (#8270)
19 changes: 19 additions & 0 deletions doc/release-notes-8271.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Updated RPCs
------------

- On a pruned node, `quorum info`, `quorum memberof` and `quorum selectquorum`
fail with `RPC_INTERNAL_ERROR` for a quorum whose members this node cannot
compute because the block that fixes them was pruned. They used to work with
members computed from a substitute value, which could be wrong. (#8271)

Other changes
-------------

- A pruned node no longer substitutes the block hash for the quorum score
modifier of a pruned work block. It keeps such a quorum's public key, from
its mined commitment, without members, so it still verifies signatures
by that quorum (for example on masternode hard-fork signals) and never
stalls on them. `quorum listextended` and the GUI then compute its health
over its commitment's member slots. Its members are computed again once the
pruned block is downloaded again, for example with `getblockfrompeer`.
(#8271)
1 change: 1 addition & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ add_library(bitcoin_node STATIC EXCLUDE_FROM_ALL
evo/simplifiedmns.cpp
evo/smldiff.cpp
evo/snapshot.cpp
evo/snapshot_chain.cpp
evo/specialtx.cpp
evo/specialtx_filter.cpp
evo/specialtxman.cpp
Expand Down
9 changes: 8 additions & 1 deletion src/chainlock/handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ ChainlockHandler::ChainlockHandler(chainlock::Chainlocks& chainlocks, Chainstate
std::make_unique<std::thread>(std::thread(util::TraceThread, "cl-schdlr", [&] { scheduler->serviceQueue(); }))},
seenChainLocks{SEEN_CHAINLOCKS_CUTOFF_SIZE, SEEN_CHAINLOCKS_MAX_SIZE}
{
// Tasks are scheduled only from Start(), after this is set.
scheduler->SetTaskWrapper(
[this](const CScheduler::Function& task) { RunActiveEvoRound(m_chainman.EvoDb(), "cl-schdlr", task); });
}

ChainlockHandler::~ChainlockHandler()
Expand Down Expand Up @@ -203,10 +206,14 @@ void ChainlockHandler::UpdatedBlockTip(const CBlockIndex* pindexNew, const CBloc
if (bool expected = false; tryLockChainTipScheduled.compare_exchange_strong(expected, true)) {
scheduler->scheduleFromNow(
[&]() {
// A failed round must still let the next tip schedule one.
const struct Unschedule {
ChainlockHandler& handler;
~Unschedule() { handler.tryLockChainTipScheduled = false; }
} done{*this};
CheckActiveState();
EnforceBestChainLock();
Cleanup();
tryLockChainTipScheduled = false;
},
std::chrono::seconds{0});
}
Expand Down
3 changes: 3 additions & 0 deletions src/chainlock/signing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ ChainLockSigner::ChainLockSigner(const ChainstateManager& chainman, const chainl
m_scheduler_thread{
std::make_unique<std::thread>(std::thread(util::TraceThread, "cls-schdlr", [&] { m_scheduler->serviceQueue(); }))}
{
// Tasks are scheduled only from Start(), after this is set.
m_scheduler->SetTaskWrapper(
[this](const CScheduler::Function& task) { RunActiveEvoRound(m_chainman.EvoDb(), "cls-schdlr", task); });
}

ChainLockSigner::~ChainLockSigner() { Stop(); }
Expand Down
27 changes: 27 additions & 0 deletions src/chainparams.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,31 @@ static void ReadRegTestLLMQInstantSendDIP0024Args(const ArgsManager& args, CChai
options.llmq_dip0024_instantsend = args.GetArg("-llmqtestinstantsenddip0024", "");
}

static void ReadRegTestAssumeutxoArgs(const ArgsManager& args, CChainParams::RegTestOptions& options)
{
for (const std::string& arg : args.GetArgs("-assumeutxodata")) {
const std::vector<std::string> fields{SplitString(arg, ':')};
const auto valid_hash = [](const std::string& value) {
return value.size() == uint256::size() * 2 && IsHex(value) && !uint256S(value).IsNull();
};
int32_t height;
uint32_t n_chain_tx;
if (fields.size() != 5 || !ParseInt32(fields[0], &height) || height <= 0 || !valid_hash(fields[1]) ||
!valid_hash(fields[2]) || !ParseUInt32(fields[3], &n_chain_tx) || n_chain_tx == 0 ||
!valid_hash(fields[4])) {
throw std::runtime_error(strprintf(
"Invalid value (%s) for -assumeutxodata=<height>:<hash_serialized>:<evo_hash>:<nchaintx>:<blockhash>",
arg));
}
options.assumeutxo_data.emplace_back(height, AssumeutxoData{
.hash_serialized = AssumeutxoHash{uint256S(fields[1])},
.evo_hash = EvoSnapshotHash{uint256S(fields[2])},
.nChainTx = n_chain_tx,
.blockhash = uint256S(fields[4]),
});
}
}

void ReadRegTestArgs(const ArgsManager& args, CChainParams::RegTestOptions& options)
{
if (auto value = args.GetBoolArg("-fastprune")) options.fastprune = *value;
Expand All @@ -215,6 +240,7 @@ void ReadRegTestArgs(const ArgsManager& args, CChainParams::RegTestOptions& opti
ReadRegTestLLMQTestArgs(args, options, Consensus::LLMQType::LLMQ_TEST_INSTANTSEND);
ReadRegTestLLMQTestArgs(args, options, Consensus::LLMQType::LLMQ_TEST_PLATFORM);
ReadRegTestLLMQInstantSendDIP0024Args(args, options);
ReadRegTestAssumeutxoArgs(args, options);
}

static void ReadDevNetSubsidyAndDiffArgs(const ArgsManager& args, CChainParams::DevNetOptions& options)
Expand Down Expand Up @@ -335,6 +361,7 @@ void SetupChainParamsOptions(ArgsManager& argsman)
{
SetupChainParamsBaseOptions(argsman);

argsman.AddArg("-assumeutxodata=<height>:<hash_serialized>:<evo_hash>:<nchaintx>:<blockhash>", "Add an exact AssumeUTXO snapshot authorization (regtest-only)", ArgsManager::ALLOW_ANY | ArgsManager::DEBUG_ONLY, OptionsCategory::CHAINPARAMS);
argsman.AddArg("-budgetparams=<masternode>:<budget>:<superblock>", "Override masternode, budget and superblock start heights (regtest-only)", ArgsManager::ALLOW_ANY | ArgsManager::DEBUG_ONLY, OptionsCategory::CHAINPARAMS);
argsman.AddArg("-dip3params=<activation>:<enforcement>", "Override DIP3 activation and enforcement heights (regtest-only)", ArgsManager::ALLOW_ANY | ArgsManager::DEBUG_ONLY, OptionsCategory::CHAINPARAMS);
argsman.AddArg("-highsubsidyblocks=<n>", "The number of blocks with a higher than normal subsidy to mine at the start of a chain. Block after that height will have fixed subsidy base. (default: 0, devnet-only)", ArgsManager::ALLOW_ANY, OptionsCategory::CHAINPARAMS);
Expand Down
2 changes: 2 additions & 0 deletions src/coins.h
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,8 @@ class CCoinsViewCursor

virtual bool Valid() const = 0;
virtual void Next() = 0;
//! Whether a read failed: the cursor may then have skipped records.
virtual bool HasError() const = 0;

//! Get best block at the time this cursor was created
const uint256 &GetBestBlock() const { return hashBlock; }
Expand Down
24 changes: 11 additions & 13 deletions src/dbwrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,16 @@ struct LevelDBContext {

//! the database itself
leveldb::DB* pdb;

//! Also frees what a constructor that threw had allocated.
~LevelDBContext()
{
delete pdb;
delete options.filter_policy;
delete options.info_log;
delete options.block_cache;
delete penv;
}
};

CDBWrapper::CDBWrapper(const DBParams& params)
Expand Down Expand Up @@ -275,19 +285,7 @@ CDBWrapper::CDBWrapper(const DBParams& params)
LogPrintf("Using obfuscation key for %s: %s\n", fs::PathToString(params.path), HexStr(obfuscate_key));
}

CDBWrapper::~CDBWrapper()
{
delete DBContext().pdb;
DBContext().pdb = nullptr;
delete DBContext().options.filter_policy;
DBContext().options.filter_policy = nullptr;
delete DBContext().options.info_log;
DBContext().options.info_log = nullptr;
delete DBContext().options.block_cache;
DBContext().options.block_cache = nullptr;
delete DBContext().penv;
DBContext().options.env = nullptr;
}
CDBWrapper::~CDBWrapper() = default;

bool CDBWrapper::WriteBatch(CDBBatch& batch, bool fSync)
{
Expand Down
2 changes: 2 additions & 0 deletions src/dbwrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,8 @@ class CDBTransactionIterator
return transactionIt != transaction.writes.end() || parentIt->Valid();
}

bool HasError() const { return parentIt->HasError(); }

void Next() {
if (transactionIt == transaction.writes.end() && !parentIt->Valid()) {
return;
Expand Down
70 changes: 58 additions & 12 deletions src/evo/cbtx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

#include <evo/cbtx.h>

#include <evo/evodb.h>
#include <evo/snapshot_types.h>
#include <evo/specialtx.h>
#include <llmq/blockprocessor.h>
#include <llmq/commitment.h>
Expand Down Expand Up @@ -193,7 +195,35 @@ std::string CCbTx::ToString() const
creditPoolBalance / COIN, creditPoolBalance % COIN, merkleRootAssetUnlocks.ToString());
}

std::optional<std::pair<CBLSSignature, uint32_t>> GetNonNullCoinbaseChainlock(const node::BlockManager& blockman, const CBlockIndex* pindex)
std::optional<CCbTx> DecodeCbTxPayload(const CTransaction& tx)
{
if (!tx.IsCoinBase() || tx.nType != TRANSACTION_COINBASE) return std::nullopt;
DataStream ds{tx.vExtraPayload};
CCbTx cbtx;
try {
ds >> cbtx.nVersion >> cbtx.nHeight >> cbtx.merkleRootMNList;
if (cbtx.nVersion >= CCbTx::Version::MERKLE_ROOT_QUORUMS) {
ds >> cbtx.merkleRootQuorums;
if (cbtx.nVersion >= CCbTx::Version::CLSIG_AND_BALANCE) {
ds >> COMPACTSIZE(cbtx.bestCLHeightDiff);
// Decoded eagerly: bytes valid in neither scheme reject the payload.
CBLSSignature signature;
ds >> signature;
cbtx.bestCLSignature.Set(signature);
ds >> cbtx.creditPoolBalance;
if (cbtx.nVersion >= CCbTx::Version::MERKLE_ROOT_ASSETUNLOCKS) ds >> cbtx.merkleRootAssetUnlocks;
}
}
} catch (const std::exception&) {
return std::nullopt;
}
if (!ds.empty()) return std::nullopt;
return cbtx;
}

std::optional<std::pair<CBLSSignature, uint32_t>> GetNonNullCoinbaseChainlock(const EvoViewToken& view,
const node::BlockManager& blockman,
const CBlockIndex* pindex)
{
if (pindex == nullptr) {
return std::nullopt;
Expand All @@ -205,22 +235,38 @@ std::optional<std::pair<CBLSSignature, uint32_t>> GetNonNullCoinbaseChainlock(co
}

CBlock block;
if (!blockman.ReadBlockFromDisk(block, *pindex)) {
if (!ReadBlockInView(view, blockman, *pindex, block)) return std::nullopt;
return GetNonNullCoinbaseChainlock(block, *pindex);
}

std::optional<std::pair<CBLSSignature, uint32_t>> GetNonNullCoinbaseChainlock(const CBlock& block, const CBlockIndex& index)
{
if (block.vtx.empty()) return std::nullopt;
const auto payload{DecodeCbTxPayload(*block.vtx[0])};
if (!payload || payload->nVersion < CCbTx::Version::CLSIG_AND_BALANCE || payload->nHeight != index.nHeight ||
!payload->bestCLSignature.Get().IsValid() || payload->bestCLHeightDiff >= static_cast<uint32_t>(index.nHeight)) {
return std::nullopt;
}

return GetNonNullCoinbaseChainlock(block, pindex->nHeight);
return std::make_pair(payload->bestCLSignature.Get(), payload->bestCLHeightDiff);
}

std::optional<std::pair<CBLSSignature, uint32_t>> GetNonNullCoinbaseChainlock(const CBlock& block, int32_t height)
bool ReadBlockInView(const EvoViewToken& view, const node::BlockManager& blockman, const CBlockIndex& index,
CBlock& block)
{
if (block.vtx.empty() || !block.vtx[0]->IsCoinBase() || block.vtx[0]->nType != TRANSACTION_COINBASE) {
return std::nullopt;
const auto [have_data, block_pos]{WITH_LOCK(::cs_main, return std::make_pair(
(index.nStatus & BLOCK_HAVE_DATA) != 0, index.GetBlockPos()))};
if (!have_data) {
// A snapshot view lacks the bodies at or below its base, where a block
// this node does not have cannot be told from one whose data does not
// matter.
if (view.AtOrBelowSnapshotBase(index.nHeight)) {
throw BlockDataUnavailableError(strprintf("block %s at or below the snapshot base is not available",
index.GetBlockHash().ToString()));
}
return false;
}
const auto payload = GetTxPayload<CCbTx>(*block.vtx[0]);
if (!payload || payload->nVersion < CCbTx::Version::CLSIG_AND_BALANCE || payload->nHeight != height ||
!payload->bestCLSignature.Get().IsValid() || payload->bestCLHeightDiff >= static_cast<uint32_t>(height)) {
return std::nullopt;
if (blockman.ReadBlockFromDisk(block, block_pos) != index.GetBlockHash()) {
throw BlockDataReadError(strprintf("block %s cannot be read", index.GetBlockHash().ToString()));
}
return std::make_pair(payload->bestCLSignature.Get(), payload->bestCLHeightDiff);
return true;
}
22 changes: 20 additions & 2 deletions src/evo/cbtx.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class CBlock;
class CBlockIndex;
class CDeterministicMNList;
class TxValidationState;
struct EvoViewToken;
struct RPCResult;

namespace node {
Expand Down Expand Up @@ -87,7 +88,24 @@ bool CalcCbTxMerkleRootQuorums(const CBlock& block, const CBlockIndex* pindexPre
BlockValidationState& state);
uint256 CalcCbTxMerkleRootAssetUnlocks(const CBlock& block);

std::optional<std::pair<CBLSSignature, uint32_t>> GetNonNullCoinbaseChainlock(const node::BlockManager& blockman, const CBlockIndex* pindex);
std::optional<std::pair<CBLSSignature, uint32_t>> GetNonNullCoinbaseChainlock(const CBlock& block, int32_t height);
/** Decode a coinbase's CbTx payload strictly: the ChainLock signature
* eagerly, and nothing may follow the payload. */
std::optional<CCbTx> DecodeCbTxPayload(const CTransaction& tx);
/** The non-null ChainLock in the coinbase of `pindex`'s block. A block this
* node has but cannot read raises BlockDataReadError; one it lacks reads as
* none, except at or below the base in a snapshot `view`, where it raises
* BlockDataUnavailableError. */
std::optional<std::pair<CBLSSignature, uint32_t>> GetNonNullCoinbaseChainlock(const EvoViewToken& view,
const node::BlockManager& blockman,
const CBlockIndex* pindex);
/** Read the body of `index` for a reader working in `view`. Returns false if
* this node does not have it, raises BlockDataUnavailableError instead when the
* view is a snapshot view at or below its base, and BlockDataReadError when the
* body is stored but cannot be read. */
bool ReadBlockInView(const EvoViewToken& view, const node::BlockManager& blockman, const CBlockIndex& index,
CBlock& block);
/** The non-null ChainLock in `block`'s coinbase, decoded strictly, where
* `index` is the block's own index. */
std::optional<std::pair<CBLSSignature, uint32_t>> GetNonNullCoinbaseChainlock(const CBlock& block, const CBlockIndex& index);

#endif // BITCOIN_EVO_CBTX_H
Loading
Loading