Skip to content

Commit

Permalink
Update to 0.3.0 (New upstream + new RPC calls)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex authored and alex committed Feb 19, 2013
1 parent 4c67b56 commit 3176e0f
Show file tree
Hide file tree
Showing 77 changed files with 3,461 additions and 62,894 deletions.
1 change: 1 addition & 0 deletions COPYING
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
Copyright (c) 2013 NovaCoin Developers
Copyright (c) 2011-2012 PPCoin Developers
Copyright (c) 2009-2012 Bitcoin Developers

Expand Down
Empty file modified contrib/debian/bin/bitcoin-qt
100644 → 100755
Empty file.
Empty file modified contrib/debian/bin/bitcoind
100644 → 100755
Empty file.
Empty file modified contrib/debian/rules
100644 → 100755
Empty file.
20 changes: 10 additions & 10 deletions contrib/gitian-descriptors/gitian-win32.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ remotes:
- "url": "https://github.com/ppcoin/ppcoin.git"
"dir": "ppcoin"
files:
#- "qt-win32-4.7.4-gitian.zip"
- "qt-win32-4.7.4-gitian.zip"
- "boost-win32-1.47.0-gitian.zip"
- "ppcoin-deps-0.0.1.zip"
script: |
#
#mkdir $HOME/qt
#cd $HOME/qt
#unzip ../build/qt-win32-4.7.4-gitian.zip
cd $HOME/build
#export PATH=$PATH:$HOME/qt/bin/
mkdir $HOME/qt
cd $HOME/qt
unzip ../build/qt-win32-4.7.4-gitian.zip
cd $HOME/build/
export PATH=$PATH:$HOME/qt/bin/
#
mkdir boost_1_47_0
cd boost_1_47_0
Expand All @@ -51,9 +51,9 @@ script: |
export LD_PRELOAD=/usr/lib/faketime/libfaketime.so.1
export FAKETIME=$REFERENCE_DATETIME
export TZ=UTC
#$HOME/qt/src/bin/qmake -spec unsupported/win32-g++-cross MINIUPNPC_LIB_PATH=$HOME/build/miniupnpc MINIUPNPC_INCLUDE_PATH=$HOME/build/ BDB_LIB_PATH=$HOME/build/db-4.8.30.NC/build_unix BDB_INCLUDE_PATH=$HOME/build/db-4.8.30.NC/build_unix BOOST_LIB_PATH=$HOME/build/boost_1_47_0/stage/lib BOOST_INCLUDE_PATH=$HOME/build/boost_1_47_0 BOOST_LIB_SUFFIX=-mt-s BOOST_THREAD_LIB_SUFFIX=_win32-mt-s OPENSSL_LIB_PATH=$HOME/build/openssl-1.0.1b OPENSSL_INCLUDE_PATH=$HOME/build/openssl-1.0.1b/include QRENCODE_LIB_PATH=$HOME/build/qrencode-3.2.0/.libs QRENCODE_INCLUDE_PATH=$HOME/build/qrencode-3.2.0 USE_QRCODE=1 INCLUDEPATH=$HOME/build DEFINES=BOOST_THREAD_USE_LIB BITCOIN_NEED_QT_PLUGINS=1 QMAKE_LRELEASE=lrelease QMAKE_CXXFLAGS=-frandom-seed=ppcoin QMAKE_LFLAGS=-frandom-seed=ppcoin USE_BUILD_INFO=1
#make $MAKEOPTS
#cp release/bitcoin-qt.exe $OUTDIR/
$HOME/qt/src/bin/qmake -spec unsupported/win32-g++-cross MINIUPNPC_LIB_PATH=$HOME/build/miniupnpc MINIUPNPC_INCLUDE_PATH=$HOME/build/ BDB_LIB_PATH=$HOME/build/db-4.8.30.NC/build_unix BDB_INCLUDE_PATH=$HOME/build/db-4.8.30.NC/build_unix BOOST_LIB_PATH=$HOME/build/boost_1_47_0/stage/lib BOOST_INCLUDE_PATH=$HOME/build/boost_1_47_0 BOOST_LIB_SUFFIX=-mt-s BOOST_THREAD_LIB_SUFFIX=_win32-mt-s OPENSSL_LIB_PATH=$HOME/build/openssl-1.0.1b OPENSSL_INCLUDE_PATH=$HOME/build/openssl-1.0.1b/include QRENCODE_LIB_PATH=$HOME/build/qrencode-3.2.0/.libs QRENCODE_INCLUDE_PATH=$HOME/build/qrencode-3.2.0 USE_QRCODE=1 INCLUDEPATH=$HOME/build DEFINES=BOOST_THREAD_USE_LIB BITCOIN_NEED_QT_PLUGINS=1 QMAKE_LRELEASE=lrelease QMAKE_CXXFLAGS=-frandom-seed=ppcoin QMAKE_LFLAGS=-frandom-seed=ppcoin USE_BUILD_INFO=1
make $MAKEOPTS
cp release/ppcoin-qt.exe $OUTDIR/
#
cd src
export LD_PRELOAD=/usr/lib/faketime/libfaketime.so.1
Expand All @@ -68,7 +68,7 @@ script: |
git archive HEAD | tar -x -C nsis
cd nsis/src
mkdir ../release
#cp ../../release/* ../release/
cp ../../release/* ../release/
cp ../../src/*.exe .
makensis ../share/setup.nsi
cp ../share/ppcoin-*-win32-setup.exe $OUTDIR/
10 changes: 5 additions & 5 deletions contrib/gitian-descriptors/gitian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ script: |
make -f makefile.unix STATIC=1 OPENSSL_INCLUDE_PATH="$INSTDIR/include" OPENSSL_LIB_PATH="$INSTDIR/lib" $MAKEOPTS ppcoind USE_UPNP=1 DEBUGFLAGS=
mkdir -p $OUTDIR/bin/$GBUILD_BITS
install -s ppcoind $OUTDIR/bin/$GBUILD_BITS
#Do not build qt gui client for now
# cd ..
# qmake INCLUDEPATH="$INSTDIR/include" LIBS="-L$INSTDIR/lib" RELEASE=1 USE_QRCODE=1
# make $MAKEOPTS
# install bitcoin-qt $OUTDIR/bin/$GBUILD_BITS
#
cd ..
qmake INCLUDEPATH="$INSTDIR/include" LIBS="-L$INSTDIR/lib" RELEASE=1 USE_QRCODE=1
make $MAKEOPTS
install ppcoin-qt $OUTDIR/bin/$GBUILD_BITS
Empty file modified contrib/macdeploy/macdeployqtplus
100644 → 100755
Empty file.
Empty file modified contrib/pyminer/pyminer.py
100644 → 100755
Empty file.
Empty file modified contrib/qt_translations.py
100644 → 100755
Empty file.
30 changes: 13 additions & 17 deletions doc/README_windows.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
PPCoin 0.2.2 BETA
NovaCoin 0.3.0 BETA

Copyright (c) 2011-2012 PPCoin Developers
Copyright (c) 2013 NovaCoin Developers
Copyright (c) 2011-2013 PPCoin Developers
Distributed under the MIT/X11 software license, see the accompanying
file license.txt or http://www.opensource.org/licenses/mit-license.php.
This product includes software developed by the OpenSSL Project for use in
Expand All @@ -10,19 +11,19 @@ cryptographic software written by Eric Young ([email protected]).

Intro
-----
PPCoin is a free open source project derived from Bitcoin, with
the goal of providing a long-term energy-efficient crypto-currency.
Built on the foundation of Bitcoin, innovations such as proof-of-stake
NovaCoin is a free open source project derived from PPCoin, with
the goal of providing a long-term energy-efficient scrypt-based crypto-currency.
Built on the foundation of Bitcoin, innovations such as proof-of-stake and scrypt
help further advance the field of crypto-currency.


Setup
-----
After completing windows setup then run windows command line (cmd)
cd daemon
ppcoind
You would need to create a configuration file ppcoin.conf in the default
wallet directory. Grant access to ppcoind.exe in anti-virus and firewall
novacoind
You would need to create a configuration file novacoin.conf in the default
wallet directory. Grant access to novacoind.exe in anti-virus and firewall
applications if necessary.

The software automatically finds other nodes to connect to. You can
Expand All @@ -35,16 +36,11 @@ but allowing incoming connections helps the PPCoin network.
Upgrade
-------
All you existing coins/transactions should be intact with the upgrade.
To upgrade from 0.2, first backup wallet
ppcoind backupwallet <destination_backup_file>
To upgrade from 0.2.x, first backup wallet
novacoind backupwallet <destination_backup_file>
Then shutdown ppcoind by
ppcoind stop
Start up the new ppcoind (0.2.2).


See the documentation/wiki at the ppcoin website:
http://www.ppcoin.org/
for help and more information.
novacoind stop
Start up the new novacoind (0.3.0).


------------------
Expand Down
Empty file modified share/genbuild.sh
100644 → 100755
Empty file.
Empty file modified share/qt/extract_strings_qt.py
100644 → 100755
Empty file.
Empty file modified share/qt/make_spinner.py
100644 → 100755
Empty file.
8 changes: 0 additions & 8 deletions share/qt/make_windows_icon.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
#!/bin/bash
# create multiresolution windows icon

#ICON_SRC=../../src/qt/res/icons/novacoin.png

ICON_DST=../../src/qt/res/icons/novacoin.ico

#convert ${ICON_SRC} -resize 16x16 novacoin-16.png
#convert ${ICON_SRC} -resize 32x32 novacoin-32.png
#convert ${ICON_SRC} -resize 48x48 novacoin-48.png

convert ../../src/qt/res/icons/novacoin-16.png ../../src/qt/res/icons/novacoin-32.png ../../src/qt/res/icons/novacoin-48.png ${ICON_DST}

41 changes: 21 additions & 20 deletions share/setup.nsi
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
Name NovaCoin
Name PPCoin

RequestExecutionLevel highest
SetCompressor /SOLID lzma

# General Symbol Definitions
!define REGKEY "SOFTWARE\$(^Name)"
!define VERSION 0.2.2
!define COMPANY "NovaCoin project"
!define URL http://www.novacoin.ru/
!define VERSION 0.3.0
!define COMPANY "PPCoin project"
!define URL http://www.ppcoin.org/

# MUI Symbol Definitions
!define MUI_ICON "../share/pixmaps/novacoin.ico"
!define MUI_ICON "../share/pixmaps/bitcoin.ico"
!define MUI_WELCOMEFINISHPAGE_BITMAP "../share/pixmaps/nsis-wizard.bmp"
!define MUI_HEADERIMAGE
!define MUI_HEADERIMAGE_RIGHT
Expand All @@ -19,8 +19,8 @@ SetCompressor /SOLID lzma
!define MUI_STARTMENUPAGE_REGISTRY_ROOT HKLM
!define MUI_STARTMENUPAGE_REGISTRY_KEY ${REGKEY}
!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME StartMenuGroup
!define MUI_STARTMENUPAGE_DEFAULTFOLDER NovaCoin
#!define MUI_FINISHPAGE_RUN $INSTDIR\novacoin-qt.exe
!define MUI_STARTMENUPAGE_DEFAULTFOLDER PPCoin
!define MUI_FINISHPAGE_RUN $INSTDIR\ppcoin-qt.exe
!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\modern-uninstall.ico"
!define MUI_UNWELCOMEFINISHPAGE_BITMAP "../share/pixmaps/nsis-wizard.bmp"
!define MUI_UNFINISHPAGE_NOAUTOCLOSE
Expand All @@ -45,14 +45,14 @@ Var StartMenuGroup
!insertmacro MUI_LANGUAGE English

# Installer attributes
OutFile novacoin-0.2.2-win32-setup.exe
InstallDir $PROGRAMFILES\NovaCoin
OutFile ppcoin-0.3.0-win32-setup.exe
InstallDir $PROGRAMFILES\PPCoin
CRCCheck on
XPStyle on
BrandingText " "
ShowInstDetails show
VIProductVersion 0.2.2.0
VIAddVersionKey ProductName NovaCoin
VIProductVersion 0.3.0.0
VIAddVersionKey ProductName PPCoin
VIAddVersionKey ProductVersion "${VERSION}"
VIAddVersionKey CompanyName "${COMPANY}"
VIAddVersionKey CompanyWebsite "${URL}"
Expand All @@ -66,18 +66,18 @@ ShowUninstDetails show
Section -Main SEC0000
SetOutPath $INSTDIR
SetOverwrite on
#File ../release/novacoin-qt.exe
File ../release/ppcoin-qt.exe
File /oname=license.txt ../COPYING
File /oname=readme.txt ../doc/README_windows.txt
SetOutPath $INSTDIR\daemon
File ../src/novacoind.exe
File ../src/ppcoind.exe
SetOutPath $INSTDIR\src
File /r /x *.exe /x *.o ../src\*.*
SetOutPath $INSTDIR
WriteRegStr HKCU "${REGKEY}\Components" Main 1

# Remove old wxwidgets-based-bitcoin executable and locales:
#Delete /REBOOTOK $INSTDIR\novacoin.exe
#Delete /REBOOTOK $INSTDIR\bitcoin.exe
#RMDir /r /REBOOTOK $INSTDIR\locale
SectionEnd

Expand All @@ -87,7 +87,8 @@ Section -post SEC0001
WriteUninstaller $INSTDIR\uninstall.exe
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
CreateDirectory $SMPROGRAMS\$StartMenuGroup
CreateShortcut "$SMPROGRAMS\$StartMenuGroup\Uninstall NovaCoin.lnk" $INSTDIR\uninstall.exe
CreateShortcut "$SMPROGRAMS\$StartMenuGroup\PPCoin.lnk" $INSTDIR\ppcoin-qt.exe
CreateShortcut "$SMPROGRAMS\$StartMenuGroup\Uninstall PPCoin.lnk" $INSTDIR\uninstall.exe
!insertmacro MUI_STARTMENU_WRITE_END
WriteRegStr HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" DisplayName "$(^Name)"
WriteRegStr HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" DisplayVersion "${VERSION}"
Expand Down Expand Up @@ -120,7 +121,7 @@ done${UNSECTION_ID}:

# Uninstaller sections
Section /o -un.Main UNSEC0000
#Delete /REBOOTOK $INSTDIR\novacoin-qt.exe
Delete /REBOOTOK $INSTDIR\ppcoin-qt.exe
Delete /REBOOTOK $INSTDIR\license.txt
Delete /REBOOTOK $INSTDIR\readme.txt
RMDir /r /REBOOTOK $INSTDIR\daemon
Expand All @@ -130,17 +131,17 @@ SectionEnd

Section -un.post UNSEC0001
DeleteRegKey HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)"
Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\Uninstall NovaCoin.lnk"
#Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\Bitcoin.lnk"
#Delete /REBOOTOK "$SMSTARTUP\Bitcoin.lnk"
Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\Uninstall PPCoin.lnk"
Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\PPCoin.lnk"
Delete /REBOOTOK "$SMSTARTUP\PPCoin.lnk"
Delete /REBOOTOK $INSTDIR\uninstall.exe
Delete /REBOOTOK $INSTDIR\debug.log
Delete /REBOOTOK $INSTDIR\db.log
DeleteRegValue HKCU "${REGKEY}" StartMenuGroup
DeleteRegValue HKCU "${REGKEY}" Path
DeleteRegKey /IfEmpty HKCU "${REGKEY}\Components"
DeleteRegKey /IfEmpty HKCU "${REGKEY}"
DeleteRegKey HKCR "novacoin"
DeleteRegKey HKCR "ppcoin"
RmDir /REBOOTOK $SMPROGRAMS\$StartMenuGroup
RmDir /REBOOTOK $INSTDIR
Push $R0
Expand Down
2 changes: 1 addition & 1 deletion share/ui.rc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
bitcoin ICON "pixmaps/novacoin.ico"
bitcoin ICON "pixmaps/bitcoin.ico"

#include "wx/msw/wx.rc"

Expand Down
8 changes: 4 additions & 4 deletions src/base58.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin Developers
// Copyright (c) 2011-2012 The PPCoin developers
// Copyright (c) 2012-2013 The NovaCoin developers
// Copyright (c) 2013 NovaCoin Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

Expand Down Expand Up @@ -366,7 +366,7 @@ class CBitcoinSecret : public CBase58Data
void SetSecret(const CSecret& vchSecret, bool fCompressed)
{
assert(vchSecret.size() == 32);
SetData(fTestNet ? 239 : 128, &vchSecret[0], vchSecret.size());
SetData(128 + (fTestNet ? CBitcoinAddress::PUBKEY_ADDRESS_TEST : CBitcoinAddress::PUBKEY_ADDRESS), &vchSecret[0], vchSecret.size());
if (fCompressed)
vchData.push_back(1);
}
Expand All @@ -385,10 +385,10 @@ class CBitcoinSecret : public CBase58Data
bool fExpectTestNet = false;
switch(nVersion)
{
case 128:
case (128 + CBitcoinAddress::PUBKEY_ADDRESS):
break;

case 239:
case (128 + CBitcoinAddress::PUBKEY_ADDRESS_TEST):
fExpectTestNet = true;
break;

Expand Down
Loading

0 comments on commit 3176e0f

Please sign in to comment.