Skip to content

Commit

Permalink
updated version and blockheight
Browse files Browse the repository at this point in the history
  • Loading branch information
ajochems committed Jun 10, 2016
1 parent 42a1dc6 commit d1de014
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 9 deletions.
16 changes: 8 additions & 8 deletions src/main.cpp
Expand Up @@ -1109,16 +1109,16 @@ int64 static GetBlockValue(int nHeight, int64 nFees)
}

// Permantently reduce the number of mined coins to 10 after block 575000
// Permantently reduce the number of minded coins to 1 after block 1750000
// coin supply at that height = 40327215
// Blocks until max coin supply -> 63000000 - 40327215 = 22672785
// New height for reduction to 0 coins -> 1750000 + 22672785 = 24422785
// Permantently reduce the number of minded coins to 1 after block 1575000
// coin supply at that height = 38577206
// Blocks until max coin supply -> 63000000 - 38577206 = 24422794
// New height for reduction to 0 coins -> 1575000 + 24422794 = 25997794
if(nHeight > 575000){
if(nHeight < 1750000)
if(nHeight < 1575000)
{
nSubsidy = 10 * COIN;
}
else if(nHeight >= 1750000 && nHeight <= 24422785){
else if(nHeight >= 1575000 && nHeight <= 25997794){
nSubsidy = 1 * COIN;
}
else
Expand Down Expand Up @@ -3502,9 +3502,9 @@ void static ProcessGetData(CNode* pfrom)

bool static CheckValidClientVersion(int clientVersion)
{
// From block 1750000 onwards version must be 80001 (MIN_PEER_PROTO_VERSION)
// From block 1575000 onwards version must be 80001 (MIN_PEER_PROTO_VERSION)
// Before that version was 70004
if(pindexBest->nHeight >= 1750000)
if(pindexBest->nHeight >= 1575000)
{
if(clientVersion < MIN_PEER_PROTO_VERSION)
return false;
Expand Down
2 changes: 1 addition & 1 deletion src/version.cpp
Expand Up @@ -8,7 +8,7 @@
// Name of client reported in the 'version' message. Report the same name
// for both bitcoind and bitcoin-qt, to make it harder for attackers to
// target servers or GUI users specifically.
const std::string CLIENT_NAME("digishield");
const std::string CLIENT_NAME("LTS-V3");

// Client version number
#define CLIENT_VERSION_SUFFIX ""
Expand Down
45 changes: 45 additions & 0 deletions windows-inno-script.iss
@@ -0,0 +1,45 @@
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define MyAppName "Casinocoin"
#define MySetupAppName "casinocoin"
#define MyAppVersion "3.0.0.0"
#define MyAppPublisher "Casinocoin Foundation"
#define MyAppURL "http://www.casinocoin.org"
#define MyAppExeName "casinocoin-qt.exe"

[Setup]
; NOTE: The value of AppId uniquely identifies this application.
; Do not use the same AppId value in installers for other applications.
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
AppId={{1698FEC3-9D7C-43F3-B379-9028E51F8B56}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={pf}\{#MyAppName}
DisableProgramGroupPage=yes
OutputBaseFilename={#MySetupAppName}-{#MyAppVersion}-setup
Compression=lzma
SolidCompression=yes

[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"

[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked

[Files]
Source: "C:\Users\a.jochems\Documents\GitHub\casinocoin-development\release\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
; NOTE: Don't use "Flags: ignoreversion" on any shared system files

[Icons]
Name: "{commonprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon

[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent

0 comments on commit d1de014

Please sign in to comment.