diff options
author | glozow <gloriajzhao@gmail.com> | 2021-10-04 13:01:38 +0100 |
---|---|---|
committer | glozow <gloriajzhao@gmail.com> | 2021-10-04 15:00:28 +0100 |
commit | 9e8d7ad5d9cc4b013826daead9cee09aad539401 (patch) | |
tree | c10b2f86152cd8639f4c1af45b7e741c16cb0459 /src/validation.h | |
parent | 09d18916afb0ecae90700d4befd9d5dc52767970 (diff) |
[validation/mempool] use Spend/AddCoin instead of UpdateCoins
UpdateCoins is an unnecessary dependency on validation. All we need to
do is add and remove coins to check inputs. We don't need the extra
logic for checking coinbases and handling TxUndos.
Also remove the wrapper function in validation.h which constructs a
throwaway TxUndo object before calling UpdateCoins because it is now
unused.
Diffstat (limited to 'src/validation.h')
-rw-r--r-- | src/validation.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/validation.h b/src/validation.h index b2282828ce..caa0832dd3 100644 --- a/src/validation.h +++ b/src/validation.h @@ -229,9 +229,6 @@ PackageMempoolAcceptResult ProcessNewPackage(CChainState& active_chainstate, CTx const Package& txns, bool test_accept) EXCLUSIVE_LOCKS_REQUIRED(cs_main); -/** Apply the effects of this transaction on the UTXO set represented by view */ -void UpdateCoins(const CTransaction& tx, CCoinsViewCache& inputs, int nHeight); - /** Transaction validation functions */ /** |