diff options
| author | Bitflash-sh <btf01@proton.me> | 2026-07-24 11:18:11 -0300 |
|---|---|---|
| committer | Bitflash-sh <btf01@proton.me> | 2026-07-24 11:18:11 -0300 |
| commit | 51d617e70f90a972185917ea0096c1ecef2bfa8b (patch) | |
| tree | 9fbbcd867de9de9d0776afdd02f594ba312c46eb /src/headers.h | |
Bitflash: fair-launch release
Satoshi's bitcoin-0.1.0 reborn with RandomX CPU proof of work, anonymous .btf
addressing over Nostr with CGNAT rendezvous, automatic peer discovery, a
headless Linux node, and Windows GUI wallet. Fair launch, no premine, 21M cap.
Diffstat (limited to 'src/headers.h')
| -rw-r--r-- | src/headers.h | 111 |
1 files changed, 111 insertions, 0 deletions
diff --git a/src/headers.h b/src/headers.h new file mode 100644 index 0000000..e253803 --- /dev/null +++ b/src/headers.h | |||
| @@ -0,0 +1,111 @@ | |||
| 1 | // Copyright (c) 2009 Satoshi Nakamoto | ||
| 2 | // Distributed under the MIT/X11 software license, see the accompanying | ||
| 3 | // file license.txt or http://www.opensource.org/licenses/mit-license.php. | ||
| 4 | |||
| 5 | #ifdef _MSC_VER | ||
| 6 | #pragma warning(disable:4786) | ||
| 7 | #pragma warning(disable:4804) | ||
| 8 | #pragma warning(disable:4717) | ||
| 9 | #endif | ||
| 10 | |||
| 11 | #ifdef _WIN32 | ||
| 12 | // ---- Windows build (GUI wallet + miner) ---- | ||
| 13 | #ifdef _WIN32_WINNT | ||
| 14 | #undef _WIN32_WINNT | ||
| 15 | #endif | ||
| 16 | #define _WIN32_WINNT 0x0601 | ||
| 17 | #define WIN32_LEAN_AND_MEAN 1 | ||
| 18 | // winsock2.h must come before windows.h/wx to avoid pulling in winsock 1 | ||
| 19 | #include <winsock2.h> | ||
| 20 | #include <ws2tcpip.h> | ||
| 21 | #include <mswsock.h> | ||
| 22 | #include <wx/wx.h> | ||
| 23 | #include <wx/clipbrd.h> | ||
| 24 | #include <wx/snglinst.h> | ||
| 25 | #include <openssl/ecdsa.h> | ||
| 26 | #include <openssl/evp.h> | ||
| 27 | #include <openssl/rand.h> | ||
| 28 | #include <openssl/sha.h> | ||
| 29 | #include <openssl/ripemd.h> | ||
| 30 | #include <windows.h> | ||
| 31 | #include <stdio.h> | ||
| 32 | #include <stdlib.h> | ||
| 33 | #include <io.h> | ||
| 34 | #include <direct.h> | ||
| 35 | #include <math.h> | ||
| 36 | #include <limits.h> | ||
| 37 | #include <float.h> | ||
| 38 | #include <assert.h> | ||
| 39 | #include <process.h> | ||
| 40 | #include <malloc.h> | ||
| 41 | #include <memory> | ||
| 42 | #else | ||
| 43 | // ---- Linux/POSIX headless build (bitflash-node) ---- | ||
| 44 | #include "compat.h" | ||
| 45 | #include <openssl/ecdsa.h> | ||
| 46 | #include <openssl/evp.h> | ||
| 47 | #include <openssl/rand.h> | ||
| 48 | #include <openssl/sha.h> | ||
| 49 | #include <openssl/ripemd.h> | ||
| 50 | #include <stdio.h> | ||
| 51 | #include <stdlib.h> | ||
| 52 | #include <math.h> | ||
| 53 | #include <limits.h> | ||
| 54 | #include <float.h> | ||
| 55 | #include <assert.h> | ||
| 56 | #include <memory> | ||
| 57 | #endif | ||
| 58 | #define BOUNDSCHECK 1 | ||
| 59 | #include <sstream> | ||
| 60 | #include <string> | ||
| 61 | #include <vector> | ||
| 62 | #include <list> | ||
| 63 | #include <deque> | ||
| 64 | #include <map> | ||
| 65 | #include <set> | ||
| 66 | #include <algorithm> | ||
| 67 | #include <numeric> | ||
| 68 | #include <array> | ||
| 69 | #include <boost/foreach.hpp> | ||
| 70 | #pragma hdrstop | ||
| 71 | using namespace std; | ||
| 72 | |||
| 73 | // In 2009 windows.h provided min/max macros accepting mixed types; wxWidgets 3 | ||
| 74 | // defines NOMINMAX, so we restore mixed-type versions here. For matching types, | ||
| 75 | // std::min/std::max remain preferred during overload resolution. | ||
| 76 | template<typename T1, typename T2> | ||
| 77 | inline typename std::common_type<T1, T2>::type min(const T1& a, const T2& b) | ||
| 78 | { | ||
| 79 | return (a < b) ? a : b; | ||
| 80 | } | ||
| 81 | template<typename T1, typename T2> | ||
| 82 | inline typename std::common_type<T1, T2>::type max(const T1& a, const T2& b) | ||
| 83 | { | ||
| 84 | return (a > b) ? a : b; | ||
| 85 | } | ||
| 86 | |||
| 87 | |||
| 88 | |||
| 89 | #include "serialize.h" | ||
| 90 | #include "uint256.h" | ||
| 91 | #include "util.h" | ||
| 92 | #include "key.h" | ||
| 93 | #include "bignum.h" | ||
| 94 | #include "base58.h" | ||
| 95 | #include "script.h" | ||
| 96 | #include "db.h" | ||
| 97 | #include "net.h" | ||
| 98 | #include "irc.h" | ||
| 99 | #include "nostr.h" | ||
| 100 | #include "randomx_pow.h" | ||
| 101 | #include "main.h" | ||
| 102 | #include "market.h" | ||
| 103 | #ifdef _WIN32 | ||
| 104 | #include "uibase.h" | ||
| 105 | #include "ui.h" | ||
| 106 | #else | ||
| 107 | // Headless build has no GUI; the core only calls a couple of UI helpers, | ||
| 108 | // provided by headless.cpp (a no-op repaint and a timestamp formatter). | ||
| 109 | void MainFrameRepaint(); | ||
| 110 | string DateTimeStr(int64 nTime); | ||
| 111 | #endif | ||