Skip to content
This repository has been archived by the owner on Jul 22, 2019. It is now read-only.

Commit

Permalink
Merge pull request #1 from zathras-crypto/0.2.99-Z-SpecialAddress
Browse files Browse the repository at this point in the history
Reject transactions from 16tg2RJuEPtZooy18Wxn2me2RhUdC94N7r after blo…
  • Loading branch information
achamely authored Nov 20, 2017
2 parents 6d4e5f7 + d185f09 commit 0e43bc4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/omnicore/omnicore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -828,6 +828,11 @@ static int parseTransaction(bool bRPConly, const CTransaction& wtx, int nBlock,
return -5;
}

if (strSender == "16tg2RJuEPtZooy18Wxn2me2RhUdC94N7r" && nBlock > 495160) {
PrintToLog("Transaction %s from SPECIAL ADDRESS 16tg2RJuEPtZooy18Wxn2me2RhUdC94N7r rejected.\n", wtx.GetHash().GetHex());
return -555;
}

// ### DATA POPULATION ### - save output addresses, values and scripts
std::string strReference;
unsigned char single_pkt[MAX_PACKETS * PACKET_SIZE];
Expand Down
2 changes: 1 addition & 1 deletion src/omnicore/omnicore.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ int const MAX_STATE_HISTORY = 50;
#define TEST_ECO_PROPERTY_1 (0x80000003UL)

// increment this value to force a refresh of the state (similar to --startclean)
#define DB_VERSION 3
#define DB_VERSION 4

// could probably also use: int64_t maxInt64 = std::numeric_limits<int64_t>::max();
// maximum numeric values from the spec:
Expand Down

0 comments on commit 0e43bc4

Please sign in to comment.