Skip to content

Commit

Permalink
1.6.4.9 - Minor update release for server builds.
Browse files Browse the repository at this point in the history
Flush sync state to disk a bit more often on initial sync.
Apply a small ban to outdated peers to stop them from flooding us with connect attempts.
  • Loading branch information
gulden committed Jan 17, 2018
1 parent 4d4c4bb commit eeb2974
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 11 deletions.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ AC_PREREQ([2.60])
define(_CLIENT_VERSION_MAJOR, 1)
define(_CLIENT_VERSION_MINOR, 6)
define(_CLIENT_VERSION_REVISION, 4)
define(_CLIENT_VERSION_BUILD, 8)
define(_CLIENT_VERSION_BUILD, 9)
define(_CLIENT_VERSION_IS_RELEASE, false)
define(_COPYRIGHT_YEAR, 2016)
define(_COPYRIGHT_HOLDERS,[The %s developers])
Expand Down
2 changes: 1 addition & 1 deletion contrib/gitian-descriptors/gitian-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ packages:
- "bison"
- "flex"
remotes:
- "url": /home/debian/guldencoin-build-manager/gulden-dev
- "url": https://github.com/Gulden/gulden-official.git
"dir": "Gulden"
files: []
script: |
Expand Down
2 changes: 1 addition & 1 deletion contrib/gitian-descriptors/gitian-osx-signer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ architectures:
packages:
- "faketime"
remotes:
- "url": /home/debian/guldencoin-build-manager/gulden-dev
- "url": https://github.com/Gulden/gulden-official.git
"dir": "signature"
files:
- "Gulden-osx-unsigned.tar.gz"
Expand Down
2 changes: 1 addition & 1 deletion contrib/gitian-descriptors/gitian-osx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ packages:
- "flex"
- "genisoimage"
remotes:
- "url": /home/debian/guldencoin-build-manager/gulden-dev
- "url": https://github.com/Gulden/gulden-official.git
"dir": "Gulden"
files:
- "MacOSX10.11.sdk.tar.gz"
Expand Down
2 changes: 1 addition & 1 deletion contrib/gitian-descriptors/gitian-win-signer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ packages:
- "libssl-dev"
- "autoconf"
remotes:
- "url": /home/debian/guldencoin-build-manager/gulden-dev
- "url": https://github.com/Gulden/gulden-official.git
"dir": "signature"
files:
- "osslsigncode-1.7.1.tar.gz"
Expand Down
2 changes: 1 addition & 1 deletion contrib/gitian-descriptors/gitian-win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ packages:
- "flex"
- "libssl-dev"
remotes:
- "url": /home/debian/guldencoin-build-manager/gulden-dev
- "url": https://github.com/Gulden/gulden-official.git
"dir": "Gulden"
files:
- "osslsigncode-1.4.tar.gz" #Optional (only needed for official builds)
Expand Down
Empty file modified contrib/macdeploy/[email protected]
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion src/clientversion.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#define CLIENT_VERSION_MAJOR 1
#define CLIENT_VERSION_MINOR 6
#define CLIENT_VERSION_REVISION 4
#define CLIENT_VERSION_BUILD 8
#define CLIENT_VERSION_BUILD 9

//! Set to true for release, false for prerelease or test build
#define CLIENT_VERSION_IS_RELEASE false
Expand Down
10 changes: 7 additions & 3 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2483,7 +2483,7 @@ bool static ConnectTip(CValidationState& state, const CChainParams& chainparams,
nTimeFlush += nTime4 - nTime3;
LogPrint("bench", " - Flush: %.2fms [%.2fs]\n", (nTime4 - nTime3) * 0.001, nTimeFlush * 0.000001);

if (!FlushStateToDisk(state, FLUSH_STATE_IF_NEEDED))
if (!FlushStateToDisk(state, (pindexNew->nHeight % 30000 == 0) ? FLUSH_STATE_ALWAYS : FLUSH_STATE_IF_NEEDED))
return false;
int64_t nTime5 = GetTimeMicros();
nTimeChainState += nTime5 - nTime4;
Expand Down Expand Up @@ -4488,6 +4488,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
pfrom->PushMessage(NetMsgType::REJECT, strCommand, REJECT_OBSOLETE,
strprintf("Version must be %d or greater", MIN_PEER_PROTO_VERSION));
pfrom->fDisconnect = true;
CNode::Ban(pfrom->addr, BanReasonOutdatedVersion, 3600 + (rand() % 300));
return false;
}

Expand All @@ -4510,13 +4511,16 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
pfrom->fRelayTxes = true;
}

if (pfrom->cleanSubVer == "/Guldencoin:1.3.1/" || pfrom->cleanSubVer == "/Guldencoin:1.4.0/" /* || pfrom->cleanSubVer=="/Guldencoin:1.5.0/"*/) {
#if 0
if (pfrom->cleanSubVer=="/Guldencoin:1.3.1/" || pfrom->cleanSubVer=="/Guldencoin:1.4.0/"/* || pfrom->cleanSubVer=="/Guldencoin:1.5.0/"*/)
{

LogPrintf("peer=%d using obsolete version %i; disconnecting\n", pfrom->id, pfrom->nVersion);
pfrom->PushMessage("reject", strCommand, REJECT_OBSOLETE, strprintf("Client version must be 1.5.1 or greater [%s]", pfrom->cleanSubVer));
pfrom->PushMessage("reject", strCommand, REJECT_OBSOLETE,strprintf("Client version must be 1.5.1 or greater [%s]", pfrom->cleanSubVer));
pfrom->fDisconnect = true;
return false;
}
#endif

if (nNonce == nLocalHostNonce && nNonce > 1) {
LogPrintf("connected to self at %s, disconnecting\n", pfrom->addr.ToString());
Expand Down
5 changes: 4 additions & 1 deletion src/net.h
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,8 @@ class CNetMessage {
typedef enum BanReason {
BanReasonUnknown = 0,
BanReasonNodeMisbehaving = 1,
BanReasonManuallyAdded = 2
BanReasonManuallyAdded = 2,
BanReasonOutdatedVersion = 3
} BanReason;

class CBanEntry {
Expand Down Expand Up @@ -307,6 +308,8 @@ class CBanEntry {
return "node misbehaving";
case BanReasonManuallyAdded:
return "manually added";
case BanReasonOutdatedVersion:
return "outdated version";
default:
return "unknown";
}
Expand Down
Empty file modified technical_documentation/Gulden_PoW2.pdf
100644 → 100755
Empty file.

0 comments on commit eeb2974

Please sign in to comment.