validation: export GetBlockScriptFlags()
This commit is contained in:
1 parent
5db8cd2d37
commit
a3986935f0
2 files changed
+4
-4
No files matched your search
+1
-4
@@ -262,9 +262,6 @@ bool CheckSequenceLocksAtTip(CBlockIndex* tip,
|
|||||||
return EvaluateSequenceLocks(index, {lock_points.height, lock_points.time});
|
return EvaluateSequenceLocks(index, {lock_points.height, lock_points.time});
|
||||||
}
|
}
|
||||||
|
|
||||||
// Returns the script flags which should be checked for a given block
|
|
||||||
static unsigned int GetBlockScriptFlags(const CBlockIndex& block_index, const ChainstateManager& chainman);
|
|
||||||
|
|
||||||
static void LimitMempoolSize(CTxMemPool& pool, CCoinsViewCache& coins_cache)
|
static void LimitMempoolSize(CTxMemPool& pool, CCoinsViewCache& coins_cache)
|
||||||
EXCLUSIVE_LOCKS_REQUIRED(::cs_main, pool.cs)
|
EXCLUSIVE_LOCKS_REQUIRED(::cs_main, pool.cs)
|
||||||
{
|
{
|
||||||
@@ -2328,7 +2325,7 @@ DisconnectResult Chainstate::DisconnectBlock(const CBlock& block, const CBlockIn
|
|||||||
return fClean ? DISCONNECT_OK : DISCONNECT_UNCLEAN;
|
return fClean ? DISCONNECT_OK : DISCONNECT_UNCLEAN;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int GetBlockScriptFlags(const CBlockIndex& block_index, const ChainstateManager& chainman)
|
unsigned int GetBlockScriptFlags(const CBlockIndex& block_index, const ChainstateManager& chainman)
|
||||||
{
|
{
|
||||||
const Consensus::Params& consensusparams = chainman.GetConsensus();
|
const Consensus::Params& consensusparams = chainman.GetConsensus();
|
||||||
|
|
||||||
|
|||||||
@@ -1358,4 +1358,7 @@ bool IsBIP30Repeat(const CBlockIndex& block_index);
|
|||||||
/** Identifies blocks which coinbase output was subsequently overwritten in the UTXO set (see BIP30) */
|
/** Identifies blocks which coinbase output was subsequently overwritten in the UTXO set (see BIP30) */
|
||||||
bool IsBIP30Unspendable(const uint256& block_hash, int block_height);
|
bool IsBIP30Unspendable(const uint256& block_hash, int block_height);
|
||||||
|
|
||||||
|
// Returns the script flags which should be checked for a given block
|
||||||
|
unsigned int GetBlockScriptFlags(const CBlockIndex& block_index, const ChainstateManager& chainman);
|
||||||
|
|
||||||
#endif // BITCOIN_VALIDATION_H
|
#endif // BITCOIN_VALIDATION_H
|
||||||
Reference in new issue
Block a user