From 2ef187941db439c5b3e529f08b6ab153ff061fc5 Mon Sep 17 00:00:00 2001 From: glozow Date: Mon, 5 Apr 2021 10:12:58 -0700 Subject: [validation] package validation for test accepts Only allow test accepts for now. Use the CoinsViewTemporary to keep track of coins created by each transaction so that subsequent transactions can spend them. Uncache all coins since we only ever do test accepts (Note this is different from ATMP which doesn't uncache for valid test_accepts) to minimize impact on the coins cache. Require that the input txns have no conflicts and be ordered topologically. This commit isn't able to detect unsorted packages. --- src/validation.h | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) (limited to 'src/validation.h') diff --git a/src/validation.h b/src/validation.h index 231f55d827..3f09e59dab 100644 --- a/src/validation.h +++ b/src/validation.h @@ -18,6 +18,7 @@ #include #include #include +#include #include // For CMessageHeader::MessageStartChars #include