mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-10 22:18:54 +01:00
util: move spanparsing.h to script/parsing.h
Move miniscript / descriptor script parsing functions out of util library so they are not a dependency of the kernel. There are no changes to code or behavior.
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
#include <common/signmessage.h> // For MessageSign(), MessageVerify(), MESSAGE_MAGIC
|
||||
#include <hash.h> // For Hash()
|
||||
#include <key.h> // For CKey
|
||||
#include <script/parsing.h>
|
||||
#include <sync.h>
|
||||
#include <test/util/random.h>
|
||||
#include <test/util/setup_common.h>
|
||||
@@ -16,7 +17,6 @@
|
||||
#include <util/moneystr.h>
|
||||
#include <util/overflow.h>
|
||||
#include <util/readwritefile.h>
|
||||
#include <util/spanparsing.h>
|
||||
#include <util/strencodings.h>
|
||||
#include <util/string.h>
|
||||
#include <util/time.h>
|
||||
@@ -1292,9 +1292,9 @@ static std::string SpanToStr(const Span<const char>& span)
|
||||
return std::string(span.begin(), span.end());
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE(test_spanparsing)
|
||||
BOOST_AUTO_TEST_CASE(test_script_parsing)
|
||||
{
|
||||
using namespace spanparsing;
|
||||
using namespace script;
|
||||
std::string input;
|
||||
Span<const char> sp;
|
||||
bool success;
|
||||
|
||||
Reference in New Issue
Block a user