upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/headers_core.h
blob: f890c2f9d24551ac5b87cd53f4633f0eb8a41438 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
// Core node headers -- no GUI framework dependency.
// Included by gui.cpp and all non-GUI source files.

// The one place the human-readable release version lives -- bump it at release.
// It is what the About dialog shows. Protocol and transaction versions elsewhere
// (nVersion fields) are unrelated and must not be changed for a release.
#define BITFLASH_VERSION_STRING "1.2.20"

#ifdef _MSC_VER
#pragma warning(disable:4786)
#endif

#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN 1
#define _WIN32_WINNT 0x0601
#include <winsock2.h>
#include <ws2tcpip.h>
#include <windows.h>
#include <process.h>
#include <direct.h>  // _mkdir on MSVC
#ifndef _MSC_VER
// MinGW: _mkdir not defined, use mkdir from <sys/stat.h>
#include <sys/stat.h>
inline int _mkdir(const char* p) { return ::mkdir(p); }
#endif
#else
#include "compat.h"
#endif

#include <openssl/ecdsa.h>
#include <openssl/evp.h>
#include <openssl/rand.h>
#include <openssl/sha.h>
#include <openssl/ripemd.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <limits.h>
#include <assert.h>
#include <memory>
#include <sstream>
#include <string>
#include <vector>
#include <list>
#include <deque>
#include <map>
#include <set>
#include <algorithm>
#include <numeric>
#include <array>
#include <boost/foreach.hpp>
#pragma hdrstop
using namespace std;

template<typename T1, typename T2>
inline typename std::common_type<T1,T2>::type min(const T1& a, const T2& b)
{ return (a<b)?a:b; }
template<typename T1, typename T2>
inline typename std::common_type<T1,T2>::type max(const T1& a, const T2& b)
{ return (a>b)?a:b; }

#include "serialize.h"
#include "uint256.h"
#include "util.h"
#include "key.h"
#include "bignum.h"
#include "base58.h"
#include "script.h"
#include "db.h"
#include "net.h"
#include "nostr.h"
#include "randomx_pow.h"
#include "main.h"
#include "market.h"

// GUI callback -- implemented in gui.cpp (or as no-op in headless builds)
void MainFrameRepaint();
string DateTimeStr(int64 nTime);