Skip to content

Commit

Permalink
TrueGalaxyCash 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
galaxycash committed Aug 18, 2018
0 parents commit 4b9b0bf
Show file tree
Hide file tree
Showing 653 changed files with 392,623 additions and 0 deletions.
20 changes: 20 additions & 0 deletions COPYING
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Copyright (c) 2015-2016 Bitcoin Developers
Copyright (c) 2017 GalaxyCash Developers

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
3 changes: 3 additions & 0 deletions INSTALL
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Building GalaxyCash

See doc/
80 changes: 80 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
GalaxyCash
======
Copyright (C) 2017-2018 The GalaxyCash developers


Website: https://galaxycash.info

Pool: https://galaxypool.info

Explorer: http://explorer.galaxypool.info

Discord: https://discord.gg/NseejAk

Telegram: http://t.me/galaxycash

Reddit: https://www.reddit.com/user/galaxycash

Twitter: https://twitter.com/cash_galaxy

Specifications
--------------
Type: PoW/PoS Hybrid with Masternodes

Ticker: GCH

Algorithm: X12, X11, X13, Sha256d, Blake2s

Difficulty retarget: Every block

Block time: 120 seconds

Block reward: 10 GCH (Halving every 210k blocks)

PoW Last Block: 130000

PoS First Block: 61300

Masternode Price: 5000 GCH

Masternode Reward: 75%


Max supply: 30,000,000

Fee: 0.00000100

Coinbase maturity: 11 blocks

Minimum confirmations: 10 blocks

Stake minimum confirmations: 50 blocks

Minimum POS Age: 6 Hours

Maximum POS Age: No Max

Network info:

P2P port: 7604
RPC port: 4604

Testnet P2P port: 17604
Testnet RPC port: 14604


Donate for development
--------------

GCH: GL83ZiVZ26z3stMtrF91WJ5f77q6EnKXnC

BTC: 12AVNXAP72cXez9JN7F4FQZy6Vtf5DzVJR

BCH: qqxv8rtf8l6wr7upz9apmtq7zk3yl732wqwyc9sje0

DASH: XqnsZkSFcdmjXwcokPyWGq1wZaoVkGxkBL

LTC: LRWxNrvfKJVTABW9c9v8xJjMjPy9EB35SP



55 changes: 55 additions & 0 deletions doc/assets-attribution.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
Icon: src/qt/res/icons/clock*.png, src/qt/res/icons/tx*.png,
src/qt/res/src/*.svg
Designer: Wladimir van der Laan
License: MIT

Icon: src/qt/res/icons/address-book.png, src/qt/res/icons/export.png,
src/qt/res/icons/history.png, src/qt/res/icons/key.png,
src/qt/res/icons/lock_*.png, src/qt/res/icons/overview.png,
src/qt/res/icons/receive.png, src/qt/res/icons/send.png,
src/qt/res/icons/synced.png, src/qt/res/icons/filesave.png
Icon Pack: NUVOLA ICON THEME for KDE 3.x
Designer: David Vignoni ([email protected])
ICON KING - www.icon-king.com
License: LGPL
Site: http://www.icon-king.com/projects/nuvola/

Icon: src/qt/res/icons/connect*.png
Icon Pack: Human-O2
Designer: schollidesign
License: GNU/GPL
Site: http://findicons.com/icon/93743/blocks_gnome_netstatus_0

Icon: src/qt/res/icons/transaction*.png
Designer: md2k7
Site: https://forum.truegalaxycash.org/index.php?topic=15276.0
License: You are free to do with these icons as you wish, including selling,
copying, modifying etc.

Icon: src/qt/res/icons/configure.png, src/qt/res/icons/quit.png,
src/qt/res/icons/editcopy.png, src/qt/res/icons/editpaste.png,
src/qt/res/icons/add.png, src/qt/res/icons/edit.png,
src/qt/res/icons/remove.png (edited)
Designer: http://www.everaldo.com
Icon Pack: Crystal SVG
License: LGPL

Icon: src/qt/res/icons/truegalaxycash.png, src/qt/res/icons/toolbar.png
Designer: Bitboy (optimized for 16x16 by Wladimir van der Laan)
License: Public Domain
Site: http://forum.truegalaxycash.org/?topic=1756.0

Icon: scripts/img/reload.xcf (modified),src/qt/res/movies/update_spinner.mng
Icon Pack: Kids
Designer: Everaldo (Everaldo Coelho)
License: GNU/GPL
Site: http://findicons.com/icon/17102/reload?id=17102

Image: src/qt/res/images/splash2.jpg (Wallet image)
Designer: Crobbo (forum)
Site: https://truegalaxycashtalk.org/index.php?topic=32273.0
License: Public domain

TrueGalaxyCash Logo
Designer: Evan Zenker
License: Creative Commons Attribution 4.0 International License
86 changes: 86 additions & 0 deletions doc/build-msw.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
Copyright (c) 2009-2012 Bitcoin Developers
Copyright (c) 2017-2018 TrueGalaxyCash 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
the OpenSSL Toolkit (http://www.openssl.org/). This product includes
cryptographic software written by Eric Young ([email protected]) and UPnP
software written by Thomas Bernard.


UNIX BUILD NOTES
================

To Build
--------

Qt GUI wallet:
/mingw32/qt5-static/bin/qmake -makefile truegalaxycash.pro
make release

Daemon:
/mingw32/qt5-static/bin/qmake -makefile truegalaxycashd.pro
make release

CommandLine Interface:
/mingw32/qt5-static/bin/qmake -makefile truegalaxycash-cli.pro
make release

Dependencies
------------

Library Purpose Description
------- ------- -----------
libssl SSL Support Secure communications
libdb Berkeley DB Blockchain & wallet storage
libboost Boost C++ Library
miniupnpc UPnP Support Optional firewall-jumping support
libqrencode QRCode generation Optional QRCode generation
Qt5 GUI for Wallet Cross-platform GUI framework

Note that libexecinfo should be installed, if you building under *BSD systems.
This library provides backtrace facility.

miniupnpc may be used for UPnP port mapping. It can be downloaded from
http://miniupnp.tuxfamily.org/files/. UPnP support is compiled in and
turned off by default. Set USE_UPNP to a different value to control this:
USE_UPNP=- No UPnP support - miniupnp not required
USE_UPNP=0 (the default) UPnP support turned off by default at runtime
USE_UPNP=1 UPnP support turned on by default at runtime

libqrencode may be used for QRCode image generation. It can be downloaded
from http://fukuchi.org/works/qrencode/index.html.en, or installed via
your package manager. Set USE_QRCODE to control this:
USE_QRCODE=0 (the default) No QRCode support - libqrcode not required
USE_QRCODE=1 QRCode support enabled

Licenses of statically linked libraries:
Berkeley DB New BSD license with additional requirement that linked
software must be free open source
Boost MIT-like license
miniupnpc New (3-clause) BSD license

Versions used in this release:
GCC 7.2.0
OpenSSL 1.0.2m
Berkeley DB 4.8NC
Boost 1.64.0
miniupnpc 1.9.20140401
qrencode 3.4.4
Qt5 5.6.0+

Dependency: MSYS2 mingw32
----------------------------------------------
pacman -S install mingw-w64-i686-qt5-static
pacman -S install mingw-w64-i686-openssl
pacman -S install mingw-w64-i686-boost
pacman -S install mingw-w64-i686-qrencode
pacman -S install mingw-w64-i686-miniupnpc

Berkley DB 4.8 build from source

wget 'http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz'
tar -xzvf db-4.8.30.NC.tar.gz
cd db-4.8.30.NC/build_unix/
../dist/configure --enable-mingw --enable-cxx --disable-shared --disable-replication --prefix=/mingw32/
make install
51 changes: 51 additions & 0 deletions doc/build-unix.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
Copyright (c) 2009-2012 Bitcoin Developers
Copyright (c) 2017-2018 TrueGalaxyCash 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
the OpenSSL Toolkit (http://www.openssl.org/). This product includes
cryptographic software written by Eric Young ([email protected]) and UPnP
software written by Thomas Bernard.


UNIX BUILD NOTES
================

Dependencies
----------------------------------------------
sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update

sudo apt-get install build-essential
sudo apt-get install libssl-dev
sudo apt-get install libdb4.8++-dev
sudo apt-get install libboost-all-dev
sudo apt-get install libqrencode-dev
sudo apt-get install libminiupnpc-dev

To Build
--------

Qt GUI Wallet
qmake -makefile truegalaxycash.pro
make

Deamon
cd src
make -f makefile.unix

or with qmake

qmake -makefile truegalaxycashd.pro
make


Versions used in this release:
GCC 7.2.0
OpenSSL 1.0.2g
Berkeley DB 4.8 NC
Boost 1.58.0
miniupnpc 1.9+
qrencode 3.4.4 (optional)

For build qt wallet need Qt5.6+ libraries.
93 changes: 93 additions & 0 deletions doc/coding.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
Please be consistent with the existing coding style.

Block style:

bool Function(char* psz, int n)
{
// Comment summarising what this section of code does
for (int i = 0; i < n; i++)
{
// When something fails, return early
if (!Something())
return false;
...
}

// Success return is usually at the end
return true;
}

- ANSI/Allman block style
- 4 space indenting, no tabs
- No extra spaces inside parenthesis; please don't do ( this )
- No space after function names, one space after if, for and while

Variable names begin with the type in lowercase, like nSomeVariable.
Please don't put the first word of the variable name in lowercase like
someVariable.

Common types:
n integer number: short, unsigned short, int, unsigned int,
int64_t, uint64_t, sometimes char if used as a number
d double, float
f flag
hash uint256
p pointer or array, one p for each level of indirection
psz pointer to null terminated string
str string object
v vector or similar list objects
map map or multimap
set set or multiset
bn CBigNum

-------------------------
Locking/mutex usage notes

The code is multi-threaded, and uses mutexes and the
CRITICAL_BLOCK/TRY_CRITICAL_BLOCK macros to protect data structures.

Deadlocks due to inconsistent lock ordering (thread 1 locks cs_main
and then cs_wallet, while thread 2 locks them in the opposite order:
result, deadlock as each waits for the other to release its lock) are
a problem. Compile with -DDEBUG_LOCKORDER to get lock order
inconsistencies reported in the debug.log file.

Re-architecting the core code so there are better-defined interfaces
between the various components is a goal, with any necessary locking
done by the components (e.g. see the self-contained CKeyStore class
and its cs_KeyStore lock for example).

-------
Threads

StartNode : Starts other threads.

ThreadSocketHandler : Sends/Receives data from peers on port 8333.

ThreadMessageHandler : Higher-level message handling (sending and
receiving).

ThreadOpenConnections : Initiates new connections to peers.

ThreadTopUpKeyPool : replenishes the keystore's keypool.

ThreadCleanWalletPassphrase : re-locks an encrypted wallet after user
has unlocked it for a period of time.

SendingDialogStartTransfer : used by pay-via-ip-address code (obsolete)

ThreadDelayedRepaint : repaint the gui

ThreadFlushWalletDB : Close the wallet.dat file if it hasn't been used
in 500ms.

ThreadRPCServer : Remote procedure call handler, listens on port 8332
for connections and services them.

ThreadTrueGalaxyCashMiner : Generates truegalaxycashs

ThreadMapPort : Universal plug-and-play startup/shutdown

Shutdown : Does an orderly shutdown of everything

ExitTimeout : Windows-only, sleeps 5 seconds then exits application
Binary file added doc/masternode/genkey.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/masternode/gennewaddress.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/masternode/mn.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/masternode/outputs0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/masternode/outputs1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/masternode/sendto0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/masternode/sendto1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/masternode/start0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/masternode/status0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 4b9b0bf

Please sign in to comment.