Skip to content

Commit a398693

Browse files
committed
validation: export GetBlockScriptFlags()
1 parent 5db8cd2 commit a398693

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/validation.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -262,9 +262,6 @@ bool CheckSequenceLocksAtTip(CBlockIndex* tip,
262262
return EvaluateSequenceLocks(index, {lock_points.height, lock_points.time});
263263
}
264264

265-
// Returns the script flags which should be checked for a given block
266-
static unsigned int GetBlockScriptFlags(const CBlockIndex& block_index, const ChainstateManager& chainman);
267-
268265
static void LimitMempoolSize(CTxMemPool& pool, CCoinsViewCache& coins_cache)
269266
EXCLUSIVE_LOCKS_REQUIRED(::cs_main, pool.cs)
270267
{
@@ -2328,7 +2325,7 @@ DisconnectResult Chainstate::DisconnectBlock(const CBlock& block, const CBlockIn
23282325
return fClean ? DISCONNECT_OK : DISCONNECT_UNCLEAN;
23292326
}
23302327

2331-
static unsigned int GetBlockScriptFlags(const CBlockIndex& block_index, const ChainstateManager& chainman)
2328+
unsigned int GetBlockScriptFlags(const CBlockIndex& block_index, const ChainstateManager& chainman)
23322329
{
23332330
const Consensus::Params& consensusparams = chainman.GetConsensus();
23342331

src/validation.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1358,4 +1358,7 @@ bool IsBIP30Repeat(const CBlockIndex& block_index);
13581358
/** Identifies blocks which coinbase output was subsequently overwritten in the UTXO set (see BIP30) */
13591359
bool IsBIP30Unspendable(const uint256& block_hash, int block_height);
13601360

1361+
// Returns the script flags which should be checked for a given block
1362+
unsigned int GetBlockScriptFlags(const CBlockIndex& block_index, const ChainstateManager& chainman);
1363+
13611364
#endif // BITCOIN_VALIDATION_H

0 commit comments

Comments
 (0)