raw
experimental-genesis    1 //  /****************************\
experimental-genesis 2 // * EXPERIMENTAL BRANCH. *
experimental-genesis 3 // * FOR LABORATORY USE ONLY. *
experimental-genesis 4 // ********************************
experimental-genesis 5 // ************
experimental-genesis 6 // **************
experimental-genesis 7 // ****************
experimental-genesis 8 // **** **** ****
experimental-genesis 9 // *** *** ***
experimental-genesis 10 // *** *** ***
experimental-genesis 11 // *** * * **
experimental-genesis 12 // ******** ********
experimental-genesis 13 // ******* ******
experimental-genesis 14 // *** **
experimental-genesis 15 // * ******* **
experimental-genesis 16 // ** * * * * *
experimental-genesis 17 // ** * * ***
experimental-genesis 18 // **** * * * * ****
experimental-genesis 19 // **** *** * * ** ***
experimental-genesis 20 // **** ********* ******
experimental-genesis 21 // ******* ***** *******
experimental-genesis 22 // ********* ****** **
experimental-genesis 23 // ** ****** ******
experimental-genesis 24 // ** ******* **
experimental-genesis 25 // ** ******* ***
experimental-genesis 26 // **** ******** ************
experimental-genesis 27 // ************ ************
experimental-genesis 28 // ******** *******
experimental-genesis 29 // ****** ****
experimental-genesis 30 // *** ***
experimental-genesis 31 // ********************************
experimental-genesis 32 // Copyright (c) 2009-2010 Satoshi Nakamoto
experimental-genesis 33 // Copyright (c) 2009-2012 The Bitcoin developers
experimental-genesis 34 // Distributed under the MIT/X11 software license, see the accompanying
experimental-genesis 35 // file license.txt or http://www.opensource.org/licenses/mit-license.php.
experimental-genesis 36
experimental-genesis 37 #ifdef _MSC_VER
experimental-genesis 38 #pragma warning(disable:4786)
experimental-genesis 39 #pragma warning(disable:4804)
experimental-genesis 40 #pragma warning(disable:4805)
experimental-genesis 41 #pragma warning(disable:4717)
experimental-genesis 42 #endif
experimental-genesis 43 #ifdef _WIN32_WINNT
experimental-genesis 44 #undef _WIN32_WINNT
experimental-genesis 45 #endif
experimental-genesis 46 #define _WIN32_WINNT 0x0500
experimental-genesis 47 #ifdef _WIN32_IE
experimental-genesis 48 #undef _WIN32_IE
experimental-genesis 49 #endif
experimental-genesis 50 #define _WIN32_IE 0x0400
experimental-genesis 51 #define WIN32_LEAN_AND_MEAN 1
experimental-genesis 52
experimental-genesis 53 // Include boost/foreach here as it defines __STDC_LIMIT_MACROS on some systems.
experimental-genesis 54 #include <boost/foreach.hpp>
experimental-genesis 55 #ifndef __STDC_LIMIT_MACROS
experimental-genesis 56 #define __STDC_LIMIT_MACROS // to enable UINT64_MAX from stdint.h
experimental-genesis 57 #endif
experimental-genesis 58
experimental-genesis 59 #if (defined(__unix__) || defined(unix)) && !defined(USG)
experimental-genesis 60 #include <sys/param.h> // to get BSD define
experimental-genesis 61 #endif
experimental-genesis 62 #ifdef MAC_OSX
experimental-genesis 63 #ifndef BSD
experimental-genesis 64 #define BSD 1
experimental-genesis 65 #endif
experimental-genesis 66 #endif
experimental-genesis 67 #include <openssl/buffer.h>
experimental-genesis 68 #include <openssl/ecdsa.h>
experimental-genesis 69 #include <openssl/evp.h>
experimental-genesis 70 #include <openssl/rand.h>
experimental-genesis 71 #include <openssl/sha.h>
experimental-genesis 72 #include <openssl/ripemd.h>
experimental-genesis 73 #include <db_cxx.h>
experimental-genesis 74 #include <stdio.h>
experimental-genesis 75 #include <stdlib.h>
experimental-genesis 76 #include <time.h>
experimental-genesis 77 #include <math.h>
experimental-genesis 78 #include <limits.h>
experimental-genesis 79 #include <float.h>
experimental-genesis 80 #include <assert.h>
experimental-genesis 81 #include <iostream>
experimental-genesis 82 #include <sstream>
experimental-genesis 83 #include <string>
experimental-genesis 84 #include <vector>
experimental-genesis 85 #include <list>
experimental-genesis 86 #include <deque>
experimental-genesis 87 #include <map>
experimental-genesis 88
experimental-genesis 89 #ifdef WIN32
experimental-genesis 90 #include <windows.h>
experimental-genesis 91 #include <winsock2.h>
experimental-genesis 92 #include <mswsock.h>
experimental-genesis 93 #include <shlobj.h>
experimental-genesis 94 #include <shlwapi.h>
experimental-genesis 95 #include <io.h>
experimental-genesis 96 #include <process.h>
experimental-genesis 97 #include <malloc.h>
experimental-genesis 98 #else
experimental-genesis 99 #include <sys/time.h>
experimental-genesis 100 #include <sys/resource.h>
experimental-genesis 101 #include <sys/socket.h>
experimental-genesis 102 #include <sys/stat.h>
experimental-genesis 103 #include <arpa/inet.h>
experimental-genesis 104 #include <netdb.h>
experimental-genesis 105 #include <unistd.h>
experimental-genesis 106 #include <errno.h>
experimental-genesis 107 #include <net/if.h>
experimental-genesis 108 #include <ifaddrs.h>
experimental-genesis 109 #include <fcntl.h>
experimental-genesis 110 #include <signal.h>
experimental-genesis 111 #endif
experimental-genesis 112 #ifdef BSD
experimental-genesis 113 #include <netinet/in.h>
experimental-genesis 114 #endif
experimental-genesis 115
experimental-genesis 116
experimental-genesis 117 #include "serialize.h"
experimental-genesis 118 #include "uint256.h"
experimental-genesis 119 #include "util.h"
experimental-genesis 120 #include "bignum.h"
experimental-genesis 121 #include "base58.h"
experimental-genesis 122 #include "main.h"
experimental-genesis 123 #ifdef QT_GUI
experimental-genesis 124 #include "qtui.h"
experimental-genesis 125 #else
experimental-genesis 126 #include "noui.h"
experimental-genesis 127 #endif