Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Break up script/standard.{h/cpp} #28244

Merged
merged 9 commits into from
Aug 17, 2023
1 change: 1 addition & 0 deletions src/key_io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

#include <base58.h>
#include <bech32.h>
#include <script/interpreter.h>
#include <script/standard.h>
#include <util/strencodings.h>

Expand Down
6 changes: 2 additions & 4 deletions src/script/standard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,13 @@
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include <script/standard.h>

#include <crypto/sha256.h>
#include <hash.h>
#include <pubkey.h>
#include <script/interpreter.h>
#include <script/script.h>
#include <util/strencodings.h>
#include <span.h>

#include <string>
#include <algorithm>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bacdb2e: nit:

script/solver.cpp should add these lines:
#include <cassert>              // for assert
#include "prevector.h"           // for operator-, prevector

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in #28284


typedef std::vector<unsigned char> valtype;

Expand Down
13 changes: 6 additions & 7 deletions src/script/standard.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,15 @@
#define BITCOIN_SCRIPT_STANDARD_H

#include <attributes.h>
#include <pubkey.h>
#include <script/interpreter.h>
#include <uint256.h>
#include <util/hash_type.h>
#include <script/script.h>

#include <map>
#include <string>
#include <variant>
#include <optional>
#include <utility>
#include <vector>

class CScript;
class CPubKey;
template <typename C> class Span;

enum class TxoutType {
NONSTANDARD,
Expand Down
1 change: 1 addition & 0 deletions src/test/sigopcount_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <consensus/tx_verify.h>
#include <key.h>
#include <pubkey.h>
#include <script/interpreter.h>
#include <script/script.h>
#include <script/standard.h>
#include <test/util/setup_common.h>
Expand Down