Bitcoin Core
25.99.0
P2P Digital Currency

#include <policy/packages.h>
#include <policy/policy.h>
#include <primitives/transaction.h>
#include <uint256.h>
#include <util/hasher.h>
#include <algorithm>
#include <cassert>
#include <iterator>
#include <memory>
#include <numeric>
#include <unordered_set>
Go to the source code of this file.
Functions  
bool  CheckPackage (const Package &txns, PackageValidationState &state) 
Contextfree package policy checks: More...  
bool  IsChildWithParents (const Package &package) 
Contextfree check that a package is exactly one child and its parents; not all parents need to be present, but the package must not contain any transactions that are not the child's parents. More...  
bool CheckPackage  (  const Package &  txns, 
PackageValidationState &  state  
) 
Contextfree package policy checks:
Definition at line 18 of file packages.cpp.
bool IsChildWithParents  (  const Package &  package  ) 
Contextfree check that a package is exactly one child and its parents; not all parents need to be present, but the package must not contain any transactions that are not the child's parents.
It is expected to be sorted, which means the last transaction must be the child.
Definition at line 68 of file packages.cpp.