Feathercoin  0.5.0
P2P Digital Currency
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
Functions | Variables
DoS_tests.cpp File Reference
#include <algorithm>
#include <boost/assign/list_of.hpp>
#include <boost/date_time/posix_time/posix_time_types.hpp>
#include <boost/test/unit_test.hpp>
#include <boost/foreach.hpp>
#include "main.h"
#include "wallet.h"
#include "net.h"
#include "util.h"
#include <stdint.h>
Include dependency graph for DoS_tests.cpp:

Go to the source code of this file.

Functions

bool AddOrphanTx (const CTransaction &tx)
 
unsigned int LimitOrphanTxSize (unsigned int nMaxOrphans)
 
CService ip (uint32_t i)
 
 BOOST_AUTO_TEST_CASE (DoS_banning)
 
 BOOST_AUTO_TEST_CASE (DoS_banscore)
 
 BOOST_AUTO_TEST_CASE (DoS_bantime)
 
 BOOST_AUTO_TEST_CASE (DoS_checknbits)
 
CTransaction RandomOrphan ()
 
 BOOST_AUTO_TEST_CASE (DoS_mapOrphans)
 
 BOOST_AUTO_TEST_CASE (DoS_checkSig)
 

Variables

std::map< uint256, CTransactionmapOrphanTransactions
 
std::map< uint256, std::set
< uint256 > > 
mapOrphanTransactionsByPrev
 

Function Documentation

bool AddOrphanTx ( const CTransaction tx)

Definition at line 297 of file main.cpp.

BOOST_AUTO_TEST_CASE ( DoS_banning  )

Definition at line 33 of file DoS_tests.cpp.

BOOST_AUTO_TEST_CASE ( DoS_banscore  )

Definition at line 51 of file DoS_tests.cpp.

BOOST_AUTO_TEST_CASE ( DoS_bantime  )

Definition at line 66 of file DoS_tests.cpp.

BOOST_AUTO_TEST_CASE ( DoS_checknbits  )

Definition at line 98 of file DoS_tests.cpp.

BOOST_AUTO_TEST_CASE ( DoS_mapOrphans  )

Definition at line 143 of file DoS_tests.cpp.

BOOST_AUTO_TEST_CASE ( DoS_checkSig  )

Definition at line 216 of file DoS_tests.cpp.

CService ip ( uint32_t  i)

Definition at line 24 of file DoS_tests.cpp.

unsigned int LimitOrphanTxSize ( unsigned int  nMaxOrphans)

Definition at line 340 of file main.cpp.

CTransaction RandomOrphan ( )

Definition at line 134 of file DoS_tests.cpp.

Variable Documentation

std::map<uint256, CTransaction> mapOrphanTransactions

Definition at line 72 of file main.cpp.

std::map<uint256, std::set<uint256> > mapOrphanTransactionsByPrev

Definition at line 73 of file main.cpp.