Skip to content

Commit

Permalink
Merge pull request #1 from bumbacoin/rebrand
Browse files Browse the repository at this point in the history
Rebrand fully to xgox
  • Loading branch information
bumbacoin authored Nov 5, 2017
2 parents bca832d + 0ebe0f5 commit a760da6
Show file tree
Hide file tree
Showing 143 changed files with 4,368 additions and 4,340 deletions.
10 changes: 5 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
src/*.exe
src/gocoin
src/gocoind
src/test_gocoin
src/xgox
src/xgoxd
src/test_xgox
src/build.h
.*.swp
*.*~*
Expand All @@ -10,11 +10,11 @@ src/build.h
*.orig
*.o
*.patch
.gocoin
.xgox
#compilation and Qt preprocessor part
*.qm
Makefile
gocoin-qt
xgox-qt
#resources cpp
qrc_*.cpp
#qt creator
Expand Down
2 changes: 1 addition & 1 deletion COPYING
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2014 GoCoin Developers
Copyright (c) 2014 xgox Developers
Copyright (c) 2013-2014 NovaCoin Developers
Copyright (c) 2011-2012 PPCoin Developers
Copyright (c) 2009-2014 Bitcoin Developers
Expand Down
10 changes: 5 additions & 5 deletions INSTALL
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Building GoCoin
Building xgox

See doc/readme-qt.rst for instructions on building GoCoin QT,
See doc/readme-qt.rst for instructions on building xgox QT,
the intended-for-end-users, nice-graphical-interface, reference
implementation of GoCoin.
implementation of xgox.

See doc/build-*.txt for instructions on building gocoind,
See doc/build-*.txt for instructions on building xgoxd,
the intended-for-services, no-graphical-interface, reference
implementation of GoCoin.
implementation of xgox.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

GoCoin development tree
xgox development tree

GoCoin is a PoS-based cryptocurrency.
xgox is a PoS-based cryptocurrency.

Development process
===========================
Expand All @@ -16,7 +16,7 @@ or are controversial.

The master branch is regularly built and tested, but is not guaranteed
to be completely stable. Tags are regularly created to indicate new
stable release versions of GoCoin.
stable release versions of xgox.

Feature branches are created when there are major new features being
worked on by several people.
Expand Down
4 changes: 2 additions & 2 deletions doc/README
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
GoCoin 0.4.4 BETA
xgox 0.4.4 BETA

Copyright (c) 2013 NovaCoin Developers
Copyright (c) 2011-2012 PPCoin Developers
Expand All @@ -11,7 +11,7 @@ cryptographic software written by Eric Young (eay@cryptsoft.com).

Intro
-----
GoCoin is a free open source project derived from Bitcoin, with
xgox is a free open source project derived from Bitcoin, with
the goal of providing a long-term energy-efficient scrypt-based crypto-currency.
Built on the foundation of Bitcoin, PPCoin and NovaCoin, innovations such as proof-of-stake
help further advance the field of crypto-currency.
Expand Down
4 changes: 2 additions & 2 deletions doc/README_windows.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
GoCoin 0.4.4 BETA
xgox 0.4.4 BETA

Copyright (c) 2013 NovaCoin Developers
Copyright (c) 2011-2013 PPCoin Developers
Expand All @@ -11,7 +11,7 @@ cryptographic software written by Eric Young (eay@cryptsoft.com).

Intro
-----
GoCoin is a free open source project derived from Bitcoin, with
xgox is a free open source project derived from Bitcoin, with
the goal of providing a long-term energy-efficient scrypt-based crypto-currency.
Built on the foundation of Bitcoin, PPCoin and NovaCoin, innovations such as proof-of-stake and scrypt
help further advance the field of crypto-currency.
Expand Down
2 changes: 1 addition & 1 deletion doc/assets-attribution.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,6 @@ Designer: Crobbo (forum)
Site: https://bitcointalk.org/index.php?topic=32273.0
License: Public domain

GoCoin Logo
xgox Logo
Designer: Evan
License: Creative Commons Attribution 4.0 International License
8 changes: 4 additions & 4 deletions doc/build-msw.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ cryptographic software written by Eric Young (eay@cryptsoft.com) and UPnP
software written by Thomas Bernard.


See readme-qt.rst for instructions on building GoCoin QT, the
See readme-qt.rst for instructions on building xgox QT, the
graphical user interface.

WINDOWS BUILD NOTES
Expand Down Expand Up @@ -76,9 +76,9 @@ make -f Makefile.mingw
mkdir miniupnpc
cp *.h miniupnpc/

GoCoin
xgox
-------
DOS prompt:
cd \gocoin\src
cd \xgox\src
mingw32-make -f makefile.mingw
strip gocoind.exe
strip xgoxd.exe
16 changes: 8 additions & 8 deletions doc/build-osx.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ software written by Eric Young (eay@cryptsoft.com) and UPnP software written by
Thomas Bernard.


Mac OS X gocoind build instructions
Mac OS X xgoxd build instructions
Laszlo Hanyecz <solar@heliacal.net>
Douglas Huff <dhuff@jrbobdobbs.org>


See readme-qt.rst for instructions on building GoCoin QT, the
See readme-qt.rst for instructions on building xgox QT, the
graphical user interface.

Tested on 10.5 and 10.6 intel. PPC is not supported because it's big-endian.
Expand All @@ -27,7 +27,7 @@ but you can get the current version from http://developer.apple.com

1. Clone the github tree to get the source code:

git clone git@github.com:rat4/gocoin.git gocoin
git clone git@github.com:rat4/xgox.git xgox

2. Download and install MacPorts from http://www.macports.org/

Expand All @@ -41,14 +41,14 @@ sudo port install boost db48 openssl miniupnpc
Optionally install qrencode (and set USE_QRCODE=1):
sudo port install qrencode

4. Now you should be able to build gocoind:
4. Now you should be able to build xgoxd:

cd gocoin/src
cd xgox/src
make -f makefile.osx

Run:
./gocoind --help # for a list of command-line options.
./xgoxd --help # for a list of command-line options.
Run
./gocoind -daemon # to start the gocoin daemon.
./xgoxd -daemon # to start the xgox daemon.
Run
./gocoind help # When the daemon is running, to get a list of RPC commands
./xgoxd help # When the daemon is running, to get a list of RPC commands
20 changes: 10 additions & 10 deletions doc/build-unix.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ To Build
--------

cd src/
make -f makefile.unix # Headless gocoin
make -f makefile.unix # Headless xgox

See readme-qt.rst for instructions on building GoCoin QT,
the graphical gocoin.
See readme-qt.rst for instructions on building xgox QT,
the graphical xgox.

Dependencies
------------
Expand Down Expand Up @@ -76,14 +76,14 @@ Dependency Build Instructions: Gentoo
emerge -av1 --noreplace boost openssl sys-libs/db

Take the following steps to build (no UPnP support):
cd ${GOCOIN_DIR}/src
cd ${xgox_DIR}/src
make -f makefile.unix USE_UPNP=
strip gocoind
strip xgoxd


Notes
-----
The release is built with GCC and then "strip gocoind" to strip the debug
The release is built with GCC and then "strip xgoxd" to strip the debug
symbols, which reduces the executable size by about 90%.


Expand Down Expand Up @@ -113,7 +113,7 @@ sudo su

Security
--------
To help make your gocoin installation more secure by making certain attacks impossible to
To help make your xgox installation more secure by making certain attacks impossible to
exploit even if a vulnerability is found, you can take the following measures:

* Position Independent Executable
Expand All @@ -130,21 +130,21 @@ exploit even if a vulnerability is found, you can take the following measures:
make -f makefile.unix ... -e PIE=1

To test that you have built PIE executable, install scanelf, part of paxutils, and use:
scanelf -e ./gocoin
scanelf -e ./xgox

The output should contain:
TYPE
ET_DYN

* Non-executable Stack
If the stack is executable then trivial stack based buffer overflow exploits are possible if
vulnerable buffers are found. By default, gocoin should be built with a non-executable stack
vulnerable buffers are found. By default, xgox should be built with a non-executable stack
but if one of the libraries it uses asks for an executable stack or someone makes a mistake
and uses a compiler extension which requires an executable stack, it will silently build an
executable without the non-executable stack protection.

To verify that the stack is non-executable after compiling use:
scanelf -e ./gocoin
scanelf -e ./xgox

the output should contain:
STK/REL/PTL
Expand Down
14 changes: 7 additions & 7 deletions doc/readme-qt.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
GoCoin-qt: Qt5 GUI for GoCoin
xgox-qt: Qt5 GUI for xgox
===============================

Build instructions
Expand All @@ -24,9 +24,9 @@ then execute the following:
qmake
make

Alternatively, install Qt Creator and open the `gocoin-qt.pro` file.
Alternatively, install Qt Creator and open the `xgox-qt.pro` file.

An executable named `gocoin-qt` will be built.
An executable named `xgox-qt` will be built.


Windows
Expand Down Expand Up @@ -69,7 +69,7 @@ Build configuration options
UPNnP port forwarding
---------------------

To use UPnP for port forwarding behind a NAT router (recommended, as more connections overall allow for a faster and more stable gocoin experience), pass the following argument to qmake:
To use UPnP for port forwarding behind a NAT router (recommended, as more connections overall allow for a faster and more stable xgox experience), pass the following argument to qmake:

::

Expand Down Expand Up @@ -117,9 +117,9 @@ flag to qmake to control this:
Berkely DB version warning
==========================

A warning for people using the *static binary* version of GoCoin on a Linux/UNIX-ish system (tl;dr: **Berkely DB databases are not forward compatible**).
A warning for people using the *static binary* version of xgox on a Linux/UNIX-ish system (tl;dr: **Berkely DB databases are not forward compatible**).

The static binary version of GoCoin is linked against libdb 5.0 (see also `this Debian issue`_).
The static binary version of xgox is linked against libdb 5.0 (see also `this Debian issue`_).

Now the nasty thing is that databases from 5.X are not compatible with 4.X.

Expand All @@ -134,7 +134,7 @@ Ubuntu 11.10 warning
====================

Ubuntu 11.10 has a package called 'qt-at-spi' installed by default. At the time of writing, having that package
installed causes gocoin-qt to crash intermittently. The issue has been reported as `launchpad bug 857790`_, but
installed causes xgox-qt to crash intermittently. The issue has been reported as `launchpad bug 857790`_, but
isn't yet fixed.

Until the bug is fixed, you can remove the qt-at-spi package to work around the problem, though this will presumably
Expand Down
20 changes: 10 additions & 10 deletions src/bitcoinrpc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,10 @@ Value stop(const Array& params, bool fHelp)
if (fHelp || params.size() > 1)
throw runtime_error(
"stop\n"
"Stop GoCoin server.");
"Stop xgox server.");
// Shutdown will take long enough that the response should get back
StartShutdown();
return "GoCoin server stopping";
return "xgox server stopping";
}


Expand Down Expand Up @@ -327,7 +327,7 @@ string HTTPPost(const string& strMsg, const map<string,string>& mapRequestHeader
{
ostringstream s;
s << "POST / HTTP/1.1\r\n"
<< "User-Agent: gocoin-json-rpc/" << FormatFullVersion() << "\r\n"
<< "User-Agent: xgox-json-rpc/" << FormatFullVersion() << "\r\n"
<< "Host: 127.0.0.1\r\n"
<< "Content-Type: application/json\r\n"
<< "Content-Length: " << strMsg.size() << "\r\n"
Expand Down Expand Up @@ -358,7 +358,7 @@ static string HTTPReply(int nStatus, const string& strMsg, bool keepalive)
if (nStatus == HTTP_UNAUTHORIZED)
return strprintf("HTTP/1.0 401 Authorization Required\r\n"
"Date: %s\r\n"
"Server: gocoin-json-rpc/%s\r\n"
"Server: xgox-json-rpc/%s\r\n"
"WWW-Authenticate: Basic realm=\"jsonrpc\"\r\n"
"Content-Type: text/html\r\n"
"Content-Length: 296\r\n"
Expand All @@ -385,7 +385,7 @@ static string HTTPReply(int nStatus, const string& strMsg, bool keepalive)
"Connection: %s\r\n"
"Content-Length: %"PRIszu"\r\n"
"Content-Type: application/json\r\n"
"Server: gocoin-json-rpc/%s\r\n"
"Server: xgox-json-rpc/%s\r\n"
"\r\n"
"%s",
nStatus,
Expand Down Expand Up @@ -656,7 +656,7 @@ class AcceptedConnectionImpl : public AcceptedConnection
void ThreadRPCServer(void* parg)
{
// Make this thread recognisable as the RPC listener
RenameThread("gocoin-rpclist");
RenameThread("xgox-rpclist");

try
{
Expand Down Expand Up @@ -760,21 +760,21 @@ void ThreadRPCServer2(void* parg)
{
unsigned char rand_pwd[32];
RAND_bytes(rand_pwd, 32);
string strWhatAmI = "To use gocoind";
string strWhatAmI = "To use xgoxd";
if (mapArgs.count("-server"))
strWhatAmI = strprintf(_("To use the %s option"), "\"-server\"");
else if (mapArgs.count("-daemon"))
strWhatAmI = strprintf(_("To use the %s option"), "\"-daemon\"");
uiInterface.ThreadSafeMessageBox(strprintf(
_("%s, you must set a rpcpassword in the configuration file:\n %s\n"
"It is recommended you use the following random password:\n"
"rpcuser=gocoinrpc\n"
"rpcuser=xgoxrpc\n"
"rpcpassword=%s\n"
"(you do not need to remember this password)\n"
"The username and password MUST NOT be the same.\n"
"If the file does not exist, create it with owner-readable-only file permissions.\n"
"It is also recommended to set alertnotify so you are notified of problems;\n"
"for example: alertnotify=echo %%s | mail -s \"GoCoin Alert\" admin@foo.com\n"),
"for example: alertnotify=echo %%s | mail -s \"xgox Alert\" admin@foo.com\n"),
strWhatAmI.c_str(),
GetConfigFile().string().c_str(),
EncodeBase58(&rand_pwd[0],&rand_pwd[0]+32).c_str()),
Expand Down Expand Up @@ -960,7 +960,7 @@ static CCriticalSection cs_THREAD_RPCHANDLER;
void ThreadRPCServer3(void* parg)
{
// Make this thread recognisable as the RPC handler
RenameThread("gocoin-rpchand");
RenameThread("xgox-rpchand");

{
LOCK(cs_THREAD_RPCHANDLER);
Expand Down
Loading

0 comments on commit a760da6

Please sign in to comment.