From 5db8cd2d37eba3ca6abc66386a3b9dc2185fa3ce Mon Sep 17 00:00:00 2001 From: Anthony Towns Date: Wed, 14 Sep 2022 13:15:42 +1000 Subject: [PATCH 1/8] Move mapFlagNames and FormatScriptFlags logic to script/interpreter.h Moves FormatScriptFlags logic into GetScriptFlagNames which returns a vector of strings. For completeness, also has GetScriptFlagNames report on any bits that do not match a known script flag. --- src/deploymentinfo.h | 2 ++ src/script/interpreter.cpp | 46 +++++++++++++++++++++++++++++++++ src/script/interpreter.h | 4 +++ src/test/script_tests.cpp | 17 +++++++++++- src/test/transaction_tests.cpp | 47 +++++----------------------------- 5 files changed, 74 insertions(+), 42 deletions(-) diff --git a/src/deploymentinfo.h b/src/deploymentinfo.h index 10029b0e30a..3178ea74288 100644 --- a/src/deploymentinfo.h +++ b/src/deploymentinfo.h @@ -8,8 +8,10 @@ #include #include +#include #include #include +#include struct VBDeploymentInfo { /** Deployment name */ diff --git a/src/script/interpreter.cpp b/src/script/interpreter.cpp index 07fda48c493..85cb76873f5 100644 --- a/src/script/interpreter.cpp +++ b/src/script/interpreter.cpp @@ -10,6 +10,7 @@ #include #include #include