forked from etoken-project/etoken
-
Notifications
You must be signed in to change notification settings - Fork 0
/
blockedinputs.cpp
27 lines (22 loc) · 969 Bytes
/
blockedinputs.cpp
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
#include <boost/assign/list_of.hpp>
#include <boost/foreach.hpp>
#include "main.h"
#include "uint256.h"
namespace Blockedinputs {
typedef std::map<int, uint256> InputList;
static InputList blockedInputs =
boost::assign::map_list_of
( 0, uint256("0x146fb17753f19e34c32b1a1ac542918f1ffddce5dce9c933828ef649dc5e58c5"))
( 1, uint256("0x85ecd20c2b65e1dcf1b94be54750338f832ef16c55938b559ba7183e460d638a"))
( 2, uint256("0x38f0f3f0e57afb3928361767a76c1a489df3dd23af47b879b402a8e8ad78022e"))
;
bool isBankInput(const uint256& input) {
printf("calling isBankInput for %s\n", input.ToString().c_str());
if (fTestNet) return true;
const InputList& blockedinputs = blockedInputs;
for (InputList::const_iterator i = blockedinputs.begin(); i != blockedinputs.end(); ++i) {
if(i->second == input) return true;
}
return false;
}
}