Skip to content

Commit

Permalink
1.3.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Remapper committed Jun 9, 2020
1 parent c97b8c6 commit 08b95aa
Show file tree
Hide file tree
Showing 10 changed files with 34 additions and 21 deletions.
3 changes: 1 addition & 2 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,7 @@ am__DIST_COMMON = $(srcdir)/Makefile.in \
$(top_srcdir)/test/util/bitcoin-util-test.py \
$(top_srcdir)/test/util/rpcauth-test.py COPYING INSTALL \
build-aux/compile build-aux/config.guess build-aux/config.sub \
build-aux/depcomp build-aux/install-sh build-aux/ltmain.sh \
build-aux/missing
build-aux/install-sh build-aux/ltmain.sh build-aux/missing
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
distdir = $(PACKAGE)-$(VERSION)
top_distdir = $(distdir)
Expand Down
24 changes: 12 additions & 12 deletions configure
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.69 for Sap 1.3.0.
# Generated by GNU Autoconf 2.69 for Sap 1.3.1.
#
# Report bugs to <https://github.com/SapOfficial/Sap/issues>.
#
Expand Down Expand Up @@ -590,8 +590,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='Sap'
PACKAGE_TARNAME='sap'
PACKAGE_VERSION='1.3.0'
PACKAGE_STRING='Sap 1.3.0'
PACKAGE_VERSION='1.3.1'
PACKAGE_STRING='Sap 1.3.1'
PACKAGE_BUGREPORT='https://github.com/SapOfficial/Sap/issues'
PACKAGE_URL='https://www.sapnetwork.io/'

Expand Down Expand Up @@ -1665,7 +1665,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
\`configure' configures Sap 1.3.0 to adapt to many kinds of systems.
\`configure' configures Sap 1.3.1 to adapt to many kinds of systems.

Usage: $0 [OPTION]... [VAR=VALUE]...

Expand Down Expand Up @@ -1736,7 +1736,7 @@ fi

if test -n "$ac_init_help"; then
case $ac_init_help in
short | recursive ) echo "Configuration of Sap 1.3.0:";;
short | recursive ) echo "Configuration of Sap 1.3.1:";;
esac
cat <<\_ACEOF

Expand Down Expand Up @@ -2052,7 +2052,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
Sap configure 1.3.0
Sap configure 1.3.1
generated by GNU Autoconf 2.69

Copyright (C) 2012 Free Software Foundation, Inc.
Expand Down Expand Up @@ -2826,7 +2826,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by Sap $as_me 1.3.0, which was
It was created by Sap $as_me 1.3.1, which was
generated by GNU Autoconf 2.69. Invocation command line was

$ $0 $@
Expand Down Expand Up @@ -3782,7 +3782,7 @@ fi

# Define the identity of the package.
PACKAGE='sap'
VERSION='1.3.0'
VERSION='1.3.1'


# Some tools Automake needs.
Expand Down Expand Up @@ -33641,7 +33641,7 @@ $as_echo "#define CLIENT_VERSION_MAJOR 1" >>confdefs.h
$as_echo "#define CLIENT_VERSION_MINOR 3" >>confdefs.h


$as_echo "#define CLIENT_VERSION_REVISION 0" >>confdefs.h
$as_echo "#define CLIENT_VERSION_REVISION 1" >>confdefs.h


$as_echo "#define CLIENT_VERSION_BUILD 0" >>confdefs.h
Expand All @@ -33656,7 +33656,7 @@ CLIENT_VERSION_MAJOR=1

CLIENT_VERSION_MINOR=3

CLIENT_VERSION_REVISION=0
CLIENT_VERSION_REVISION=1

CLIENT_VERSION_BUILD=0

Expand Down Expand Up @@ -34405,7 +34405,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by Sap $as_me 1.3.0, which was
This file was extended by Sap $as_me 1.3.1, which was
generated by GNU Autoconf 2.69. Invocation command line was

CONFIG_FILES = $CONFIG_FILES
Expand Down Expand Up @@ -34476,7 +34476,7 @@ _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
Sap config.status 1.3.0
Sap config.status 1.3.1
configured by $0, generated by GNU Autoconf 2.69,
with options \\"\$ac_cs_config\\"

Expand Down
4 changes: 2 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ dnl require autoconf 2.60 (AS_ECHO/AS_ECHO_N)
AC_PREREQ([2.60])
define(_CLIENT_VERSION_MAJOR, 1)
define(_CLIENT_VERSION_MINOR, 3)
define(_CLIENT_VERSION_REVISION, 0)
define(_CLIENT_VERSION_BUILD, 1)
define(_CLIENT_VERSION_REVISION, 1)
define(_CLIENT_VERSION_BUILD, 0)
define(_CLIENT_VERSION_RC, 0)
define(_CLIENT_VERSION_IS_RELEASE, true)
define(_COPYRIGHT_YEAR, 2020)
Expand Down
2 changes: 1 addition & 1 deletion share/genbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ if [ "${BITCOIN_GENBUILD_NO_GIT}" != "1" -a -e "$(which git 2>/dev/null)" -a "$(

# 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-release"

# get a string like "2012-04-10 16:27:19 +0200"
LAST_COMMIT_DATE="$(git log -n 1 --format="%ci")"
Expand Down
1 change: 1 addition & 0 deletions src/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -2739,6 +2739,7 @@ EXTRA_DIST =
@ENABLE_QT_TRUE@QT_TS = \
@ENABLE_QT_TRUE@ qt/locale/pivx_en.ts


# pivx qt core #
@ENABLE_QT_TRUE@QT_FORMS_UI = \
@ENABLE_QT_TRUE@ qt/forms/addressbookpage.ui \
Expand Down
2 changes: 1 addition & 1 deletion src/chainparams.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ class CMainParams : public CChainParams
consensus.height_ZC_RecalcAccumulators = 999999999;

// fork away from old chain at this height
consensus.height_new_client = 574000; //------- Starting Point ----------//
consensus.height_new_client = 585330; //New enforcement//

// validation by-pass
consensus.nPivxBadBlockTime = disabled;
Expand Down
13 changes: 12 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1597,6 +1597,10 @@ int64_t GetBlockValue(int nHeight)
//Create a fork to ensure all old wallets update
if (nHeight == 574010) {
return 801 * COIN;
}

if (nHeight == 585330) {
return 801 * COIN;
}

if (nHeight == 0) {
Expand Down Expand Up @@ -2294,6 +2298,14 @@ bool ConnectBlock(const CBlock& block, CValidationState& state, CBlockIndex* pin
view.SetBestBlock(pindex->GetBlockHash());
return true;
}

if (sporkManager.IsSporkActive(SPORK_23_CHOKE_CONTROL_MODE)) {
uint256 invalidHash = block.GetHash();
CBlockIndex* pblockindex = mapBlockIndex[invalidHash];
InvalidateBlock(state, pblockindex);
ActivateBestChain(state);
return false;
}

const int last_pow_block = consensus.height_last_PoW;
if (pindex->nHeight <= last_pow_block && block.IsProofOfStake())
Expand Down Expand Up @@ -3799,7 +3811,6 @@ bool AcceptBlockHeader(const CBlock& block, CValidationState& state, CBlockIndex
return true;
}
}

return state.DoS(100, error("%s : prev block height=%d hash=%s is invalid, unable to add block %s", __func__, pindexPrev->nHeight, block.hashPrevBlock.GetHex(), block.GetHash().GetHex()),
REJECT_INVALID, "bad-prevblk");
}
Expand Down
1 change: 1 addition & 0 deletions src/spork.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ std::vector<CSporkDef> sporkDefs = {
MAKE_SPORK_DEF(SPORK_20_UPGRADE_CYCLE_FACTOR, 4070908800ULL), // OFF
MAKE_SPORK_DEF(SPORK_21_COLDSTAKING_ENFORCEMENT, 4070908800ULL), // OFF
MAKE_SPORK_DEF(SPORK_22_BAN_DUPLICATE_MN_PER_IP, 4070908800ULL), // OFF
MAKE_SPORK_DEF(SPORK_23_CHOKE_CONTROL_MODE, 4070908800ULL), // OFF
};

CSporkManager sporkManager;
Expand Down
1 change: 1 addition & 0 deletions src/sporkid.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ enum SporkId : int32_t {
SPORK_20_UPGRADE_CYCLE_FACTOR = 10019,
SPORK_21_COLDSTAKING_ENFORCEMENT = 10020,
SPORK_22_BAN_DUPLICATE_MN_PER_IP = 10021,
SPORK_23_CHOKE_CONTROL_MODE =10022,
SPORK_INVALID = -1
};

Expand Down
4 changes: 2 additions & 2 deletions src/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* network protocol versioning
*/

static const int PROTOCOL_VERSION = 70922;
static const int PROTOCOL_VERSION = 70923;

//! initial proto version, to be increased after version/verack negotiation
static const int INIT_PROTO_VERSION = 209;
Expand All @@ -20,7 +20,7 @@ static const int INIT_PROTO_VERSION = 209;
static const int GETHEADERS_VERSION = 70077;

//! disconnect from peers older than this proto version
static const int MIN_PEER_PROTO_VERSION_BEFORE_ENFORCEMENT = 70921;
static const int MIN_PEER_PROTO_VERSION_BEFORE_ENFORCEMENT = 70922;
static const int MIN_PEER_PROTO_VERSION_AFTER_ENFORCEMENT = PROTOCOL_VERSION;

//! masternodes older than this proto version use old strMessage format for mnannounce
Expand Down

0 comments on commit 08b95aa

Please sign in to comment.