Skip to content

Commit

Permalink
Merge pull request #24 from j00v/master
Browse files Browse the repository at this point in the history
Blocks DoS spam filter and fork blocks handling
  • Loading branch information
MNPJason authored Feb 13, 2019
2 parents 426dbe5 + 16925e3 commit e7fd007
Show file tree
Hide file tree
Showing 10 changed files with 296 additions and 87 deletions.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ dnl require autoconf 2.60 (AS_ECHO/AS_ECHO_N)
AC_PREREQ([2.60])
define(_CLIENT_VERSION_MAJOR, 1)
define(_CLIENT_VERSION_MINOR, 2)
define(_CLIENT_VERSION_REVISION, 2)
define(_CLIENT_VERSION_REVISION, 3)
define(_CLIENT_VERSION_BUILD, 0)
define(_CLIENT_VERSION_IS_RELEASE, true)
define(_COPYRIGHT_YEAR, 2019)
Expand Down
6 changes: 3 additions & 3 deletions share/genbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ SUFFIX=""
LAST_COMMIT_DATE=""
if [ -e "$(which git 2>/dev/null)" -a "$(git rev-parse --is-inside-work-tree 2>/dev/null)" = "true" ]; then
# clean 'dirty' status of touched files that haven't been modified
git diff >/dev/null 2>/dev/null
git diff >/dev/null 2>/dev/null

# if latest commit is tagged and not dirty, then override using the tag name
RAWDESC=$(git describe --abbrev=0 2>/dev/null)
Expand All @@ -28,7 +28,7 @@ if [ -e "$(which git 2>/dev/null)" -a "$(git rev-parse --is-inside-work-tree 2>/

# otherwise generate suffix from git, i.e. string like "59887e8-dirty"
SUFFIX=$(git rev-parse --short HEAD)
git diff-index --quiet HEAD -- || SUFFIX="$SUFFIX-dirty"
git diff-index --quiet HEAD -- || SUFFIX="$SUFFIX-"

# get a string like "2012-04-10 16:27:19 +0200"
LAST_COMMIT_DATE="$(git log -n 1 --format="%ci")"
Expand All @@ -48,4 +48,4 @@ if [ "$INFO" != "$NEWINFO" ]; then
if [ -n "$LAST_COMMIT_DATE" ]; then
echo "#define BUILD_DATE \"$LAST_COMMIT_DATE\"" >> "$FILE"
fi
fi
fi
6 changes: 3 additions & 3 deletions src/config/mnpcoin-config.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#define CLIENT_VERSION_MINOR 2

/* Build revision */
#define CLIENT_VERSION_REVISION 2
#define CLIENT_VERSION_REVISION 3

/* Version is release */
#define COPYRIGHT_YEAR 2019
Expand Down Expand Up @@ -274,7 +274,7 @@
#define PACKAGE_NAME "MNPCoin Core"

/* Define to the full name and version of this package. */
#define PACKAGE_STRING "MNPCoin Core 1.0.0"
#define PACKAGE_STRING "MNPCoin Core 1.2.3"

/* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "mnpcoin"
Expand All @@ -283,7 +283,7 @@
#define PACKAGE_URL ""

/* Define to the version of this package. */
#define PACKAGE_VERSION "1.0.0"
#define PACKAGE_VERSION "1.2.3"

/* Define to necessary symbol if this constant uses a non-standard name on
your system. */
Expand Down
4 changes: 4 additions & 0 deletions src/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,10 @@ std::string HelpMessage(HelpMessageMode mode)
strUsage += HelpMessageOpt("-rpcsslprivatekeyfile=<file.pem>", strprintf(_("Server private key (default: %s)"), "server.pem"));
strUsage += HelpMessageOpt("-rpcsslciphers=<ciphers>", strprintf(_("Acceptable ciphers (default: %s)"), "TLSv1.2+HIGH:TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!3DES:@STRENGTH"));

strUsage += HelpMessageOpt("-blockspamfilter=<n>", strprintf(_("Use block spam filter (default: %u)"), DEFAULT_BLOCK_SPAM_FILTER));
strUsage += HelpMessageOpt("-blockspamfiltermaxsize=<n>", strprintf(_("Maximum size of the list of indexes in the block spam filter (default: %u)"), DEFAULT_BLOCK_SPAM_FILTER_MAX_SIZE));
strUsage += HelpMessageOpt("-blockspamfiltermaxavg=<n>", strprintf(_("Maximum average size of an index occurrence in the block spam filter (default: %u)"), DEFAULT_BLOCK_SPAM_FILTER_MAX_AVG));

return strUsage;
}

Expand Down
Loading

0 comments on commit e7fd007

Please sign in to comment.