From 8a13a8e019c8c130f61c07cdf6a25a77077f580e Mon Sep 17 00:00:00 2001 From: Anthony Towns Date: Wed, 14 Sep 2022 13:15:42 +1000 Subject: [PATCH 1/9] Move mapFlagNames and FormatScriptFlags logic to deploymentinfo.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.cpp | 47 ++++++++++++++++++++++++++++++++++ src/deploymentinfo.h | 8 ++++++ src/test/script_tests.cpp | 17 +++++++++++- src/test/transaction_tests.cpp | 47 +++++----------------------------- 4 files changed, 77 insertions(+), 42 deletions(-) diff --git a/src/deploymentinfo.cpp b/src/deploymentinfo.cpp index 185a7dcb54ce7..71572496eb4af 100644 --- a/src/deploymentinfo.cpp +++ b/src/deploymentinfo.cpp @@ -5,6 +5,8 @@ #include #include +#include