Back to home page

Bitcoin sources

 
 

    


0001 // Copyright (c) 2009-2010 Satoshi Nakamoto
0002 // Copyright (c) 2009-2012 The Bitcoin developers
0003 // Distributed under the MIT/X11 software license, see the accompanying
0004 // file license.txt or http://www.opensource.org/licenses/mit-license.php.
0005 
0006 // Include boost/foreach here as it defines __STDC_LIMIT_MACROS on some systems.
0007 #include <boost/foreach.hpp>
0008 #ifndef __STDC_LIMIT_MACROS
0009 #define __STDC_LIMIT_MACROS // to enable UINT64_MAX from stdint.h
0010 #endif
0011 
0012 #if (defined(__unix__) || defined(unix)) && !defined(USG)
0013 #include <sys/param.h>  // to get BSD define
0014 #endif
0015 #ifdef MAC_OSX
0016 #ifndef BSD
0017 #define BSD 1
0018 #endif
0019 #endif
0020 #include <openssl/buffer.h>
0021 #include <openssl/ecdsa.h>
0022 #include <openssl/evp.h>
0023 #include <openssl/rand.h>
0024 #include <openssl/sha.h>
0025 #include <openssl/ripemd.h>
0026 #include <db_cxx.h>
0027 #include <stdio.h>
0028 #include <stdlib.h>
0029 #include <time.h>
0030 #include <math.h>
0031 #include <limits.h>
0032 #include <float.h>
0033 #include <assert.h>
0034 #include <iostream>
0035 #include <sstream>
0036 #include <string>
0037 #include <vector>
0038 #include <list>
0039 #include <deque>
0040 #include <map>
0041 
0042 #include <sys/time.h>
0043 #include <sys/resource.h>
0044 #include <sys/socket.h>
0045 #include <sys/stat.h>
0046 #include <arpa/inet.h>
0047 #include <netdb.h>
0048 #include <unistd.h>
0049 #include <errno.h>
0050 #include <net/if.h>
0051 #include <ifaddrs.h>
0052 #include <fcntl.h>
0053 #include <signal.h>
0054 
0055 #ifdef BSD
0056 #include <netinet/in.h>
0057 #endif
0058 
0059 
0060 #include "serialize.h"
0061 #include "uint256.h"
0062 #include "util.h"
0063 #include "bignum.h"
0064 #include "base58.h"
0065 #include "main.h"
0066 #include "noui.h"