upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/headers_core.h
diff options
context:
space:
mode:
authorbitflash-coin <bookofshamers@outlook.com>2026-08-04 06:34:32 -0700
committerbitflash-coin <bookofshamers@outlook.com>2026-08-04 06:34:32 -0700
commit5ce650382352c1503f40abf08129ada69402af55 (patch)
tree6a18198901f1e2c4933f1ac53c9365eec512bf63 /src/headers_core.h
parentf34113291da7e5e3dc7d2468d4f9c212c05c584b (diff)
public commit
Diffstat (limited to 'src/headers_core.h')
-rw-r--r--src/headers_core.h73
1 files changed, 73 insertions, 0 deletions
diff --git a/src/headers_core.h b/src/headers_core.h
new file mode 100644
index 0000000..6c0c602
--- /dev/null
+++ b/src/headers_core.h
@@ -0,0 +1,73 @@
1// Core node headers -- no GUI framework dependency.
2// Included by gui.cpp and all non-GUI source files.
3
4#ifdef _MSC_VER
5#pragma warning(disable:4786)
6#endif
7
8#ifdef _WIN32
9#define WIN32_LEAN_AND_MEAN 1
10#define _WIN32_WINNT 0x0601
11#include <winsock2.h>
12#include <ws2tcpip.h>
13#include <windows.h>
14#include <process.h>
15#include <direct.h> // _mkdir on MSVC
16#ifndef _MSC_VER
17// MinGW: _mkdir not defined, use mkdir from <sys/stat.h>
18#include <sys/stat.h>
19inline int _mkdir(const char* p) { return ::mkdir(p); }
20#endif
21#else
22#include "compat.h"
23#endif
24
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 <stdio.h>
31#include <stdlib.h>
32#include <math.h>
33#include <limits.h>
34#include <assert.h>
35#include <memory>
36#include <sstream>
37#include <string>
38#include <vector>
39#include <list>
40#include <deque>
41#include <map>
42#include <set>
43#include <algorithm>
44#include <numeric>
45#include <array>
46#include <boost/foreach.hpp>
47#pragma hdrstop
48using namespace std;
49
50template<typename T1, typename T2>
51inline typename std::common_type<T1,T2>::type min(const T1& a, const T2& b)
52{ return (a<b)?a:b; }
53template<typename T1, typename T2>
54inline typename std::common_type<T1,T2>::type max(const T1& a, const T2& b)
55{ return (a>b)?a:b; }
56
57#include "serialize.h"
58#include "uint256.h"
59#include "util.h"
60#include "key.h"
61#include "bignum.h"
62#include "base58.h"
63#include "script.h"
64#include "db.h"
65#include "net.h"
66#include "nostr.h"
67#include "randomx_pow.h"
68#include "main.h"
69#include "market.h"
70
71// GUI callback -- implemented in gui.cpp (or as no-op in headless builds)
72void MainFrameRepaint();
73string DateTimeStr(int64 nTime);