Skip to content

Commit

Permalink
StakeReport
Browse files Browse the repository at this point in the history
  • Loading branch information
Tillkoeln committed Sep 8, 2018
1 parent 988bc71 commit 5998e16
Show file tree
Hide file tree
Showing 31 changed files with 1,696 additions and 21 deletions.
Binary file removed Unb654enan8nt.png
Binary file not shown.
Binary file removed Unb654enannt.png
Binary file not shown.
13 changes: 8 additions & 5 deletions bitcoin-qt.pro
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
TEMPLATE = app
TARGET = X2-S4C-x-Public-Codename-Hydra
VERSION = 3.1.0
TARGET = X2-Public-Codename-Hydra
VERSION = 3.2.0
INCLUDEPATH += src src/json src/qt
QT += core gui network
DEFINES += QT_GUI BOOST_THREAD_USE_LIB BOOST_SPIRIT_THREADSAFE
Expand Down Expand Up @@ -286,7 +286,8 @@ HEADERS += src/qt/bitcoingui.h \
src/qt/blockbrowser.h \
src/qt/serveur.h \
src/qt/chatwindow.h \
src/qt/statisticspage.h
src/qt/statisticspage.h \
src/qt/stakereportdialog.h

SOURCES += src/qt/bitcoin.cpp src/qt/bitcoingui.cpp \
src/qt/transactiontablemodel.cpp \
Expand Down Expand Up @@ -350,6 +351,7 @@ SOURCES += src/qt/bitcoin.cpp src/qt/bitcoingui.cpp \
src/qt/qtipcserver.cpp \
src/qt/rpcconsole.cpp \
src/qt/multisenddialog.cpp \
src/qt/stakereportdialog.cpp \
src/noui.cpp \
src/kernel.cpp \
src/scrypt-arm.S \
Expand Down Expand Up @@ -388,10 +390,11 @@ FORMS += \
src/qt/forms/sendcoinsentry.ui \
src/qt/forms/askpassphrasedialog.ui \
src/qt/forms/rpcconsole.ui \
src/qt/forms/optionsdialog.ui \
src/qt/forms/optionsdialog.ui \
src/qt/forms/blockbrowser.ui \
src/qt/forms/chatwindow.ui \
src/qt/forms/statisticspage.ui
src/qt/forms/statisticspage.ui \
src/qt/forms/stakereportdialog.ui

contains(USE_QRCODE, 1) {
HEADERS += src/qt/qrcodedialog.h
Expand Down
9 changes: 9 additions & 0 deletions doc/Build Windows Compile-Enviroment/1.0-Zz.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@


1.0 Install 7z
--------------
a) http://downloads.sourceforge.net/sevenzip/7z920.msi (32-bit)

OR

http://downloads.sourceforge.net/sevenzip/7z920-x64.msi (64-bit)
7 changes: 7 additions & 0 deletions doc/Build Windows Compile-Enviroment/1.0.1-Notepad++.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@



1.0.1 Install Notepad ++
--------------
a) http://download.tuxfamily.org/notepadplus/6.5.3/npp.6.5.3.Installer.exe

11 changes: 11 additions & 0 deletions doc/Build Windows Compile-Enviroment/1.0.2-Git.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@



1.0.2 Install Git
--------------
a) http://git-scm.com/downloads

b) Select the following options during installation:
* Run Git From Windows Command Prompt
* Check out Windows-style, commit Unix-style

11 changes: 11 additions & 0 deletions doc/Build Windows Compile-Enviroment/1.1-msys.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@



1.1 Install msys:
--------------
a) http://sourceforge.net/projects/mingw/files/Installer/mingw-get-setup.exe/download

b) When the installer loads, click "Install" and/or "Continue" until you're presented with a list on the left hand side of the screen that starts with "Basic Setup". Click Basic Setup and on the list to the right scroll all the way down and click the checkbox for ONLY the "msys-base" package. Select "Mark for installation", then click "Installation" from the top menu and "Apply Changes".

c) Then click "Install" or "Continue" or "Close" until you're back to the lists again and then exit the Installation Manager by clicking "Installation" and "Quit".

10 changes: 10 additions & 0 deletions doc/Build Windows Compile-Enviroment/1.2-Perl.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@



1.2 Install Perl:
--------------
a) http://downloads.activestate.com/ActivePerl/releases/5.18.1.1800/ActivePerl-5.18.1.1800-MSWin32-x64-297570.msi

b) Run the installer ("Next", "Next", "Next", "Install", blah blah blah). If it asks to make changes to your computer, say "Yes".
You can exclude Perl Script, PPM, documentation and examples if you don't need them for other purposes.

8 changes: 8 additions & 0 deletions doc/Build Windows Compile-Enviroment/1.3-Python.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@


1.3 Install Python:
--------------
a) http://www.python.org/ftp/python/3.3.3/python-3.3.3.amd64.msi

b) Same deal, install the software. However, make sure the "Add Python to Path" option is selected.

16 changes: 16 additions & 0 deletions doc/Build Windows Compile-Enviroment/1.4-GCC.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@



1.4 Install GCC from MinGW-builds project:
--------------
a) Download and unpack i686-4.8.2-release-posix-dwarf-rt_v3-rev2.7z
http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/4.8.2/threads-posix/dwarf/i686-4.8.2-release-posix-dwarf-rt_v3-rev2.7z/download

b) Open Explorer and go to the download location, right click on the file and select "7-Zip" -> "Extract to i686-4.8.2-release-posix-dwarf-rt_v3-rev2/"

c) Double click on the i686-4.8.2-release-posix-dwarf-rt_v3-rev2 directory and copy the folder "mingw32" to Local Disk (C:)

d) Click on Local Disk (C:)

e) Copy the "mingw32" folder into the "MinGW" folder

25 changes: 25 additions & 0 deletions doc/Build Windows Compile-Enviroment/1.5-check.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@



1.5 Verify your paths are correct:
--------------
a) In Explorer, right click on "Computer" and select "Properties".

b) Select "Advanced System Settings"

c) Click "Environment Variables"

d) In the box labeled "System Variables", locate "Path" and double click it.

e) In the box that comes up, scroll through the "Variable Value" and make sure you see the words "Perl" and "Python" and "MinGW"
* IF YOU DON'T SEE "PERL":
* * Go to the beginning of the text and ADD TO THE BEGINNING "C:\Perl64\site\bin;C:\Perl64\bin;"
* IF YOU DON'T SEE "PYTHON":
* * Go to the beginning of the text and ADD TO THE BEGINNING "C:\Python33;"
* IF YOU DON'T SEE "MINGW":
* * Go to the beginning of the text and ADD TO THE BEGINNING "C:\MinGW\mingw32\bin;"

Click "Ok", "Ok", "Ok", etc to close the Control Panel.

Having fun yet? We haven't even gotten started.

9 changes: 9 additions & 0 deletions doc/Build Windows Compile-Enviroment/2.0-depencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@



2. Download, unpack and build required dependencies.
--------------
a) Create a folder called "deps" on Local Disk (C:) [C:\deps]
b) In Explorer, navigate to C:\MinGW\msys\1.0\ and find "msys.bat". Double click it to run it. A window will open that looks like a command prompt.
c) In this section, download all of the files to the C:\deps folder.

22 changes: 22 additions & 0 deletions doc/Build Windows Compile-Enviroment/2.1-OpenSSL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@



2.1 Download OpenSSL: http://www.openssl.org/source/openssl-1.0.1e.tar.gz

a) From a MinGw shell (that window we opened), unpack the source archive with tar (this will avoid symlink issues) then configure and make (one command per line):
cd /c/deps/

tar xvfz openssl-1.0.1e.tar.gz

cd openssl-1.0.1e

Configure mingw

make

Ta da! You just compiled OpenSSL!

IF THIS FAILS... IF YOU SEE THE WORD "ERROR" OR "WHATEVER OF THE SORT... GO BACK TO STEP 1.5 AND TRY AGAIN.

If it works it doesn't pat you on the back. It just stops without saying "ERROR". Welcome to software development.

19 changes: 19 additions & 0 deletions doc/Build Windows Compile-Enviroment/2.2-BerkleyDB.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@



2.2 Berkeley DB: http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz

I used Berkeley DB 4.8.30 because it worked. No other reason.

a)From the MinGW shell, unpack the source archive, configure and make:

cd /c/deps/

tar xvfz db-4.8.30.NC.tar.gz

cd db-4.8.30.NC/build_unix

../dist/configure --disable-replication --enable-mingw --enable-cxx

make

18 changes: 18 additions & 0 deletions doc/Build Windows Compile-Enviroment/2.3-Boost.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@



2.3 Boost: http://sourceforge.net/projects/boost/files/boost/1.55.0/
--------------
Some of the coddling stops here. If you've made it this far successfully, you don't need me to hold your hand.

a) Unpack boost inside your C:\deps folder.
b) Then open a command prompt (CMD.EXE), and:

cd C:\deps\boost_1_55_0\

bootstrap.bat mingw

b2 --build-type=complete --with-chrono --with-filesystem --with-program_options --with-system --with-thread toolset=gcc stage

This will compile the required boost libraries and put them into the stage folder (C:\deps\boost_1_55_0\stage).

21 changes: 21 additions & 0 deletions doc/Build Windows Compile-Enviroment/2.4-Miniupnc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@



2.4 Miniupnpc: http://miniupnp.free.fr/files/download.php?file=miniupnpc-1.8.tar.gz
--------------
a) From the MSYS window (remember that?), type:

tar xvfz miniupnpc-1.8.tar.gz

b) Using Explorer, rename containing folder from "miniupnpc-1.8" to "miniupnpc"
c) Change to the "miniupnpc" directory and find the file named "Makefile.mingw" and open in it Notepad ++
d) Go to line 61 and change "-enable-stdcall-fixup" to "--enable-stdcall-fixup"
e) Save the file
f) then from a Windows command prompt:

cd C:\deps\miniupnpc

mingw32-make -f Makefile.mingw init upnpc-static

IF THIS STEP FAILS, REPEAT STEP 1.5!

66 changes: 66 additions & 0 deletions doc/Build Windows Compile-Enviroment/QT.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@

3.0 Download the Spacecash source code
--------------
a) From a MSYS type:

cd /c/

git clone https://github.com/Tillkoeln/Spacecash

cd /c/Spacecash/src/leveldb

TARGET_OS=NATIVE_WINDOWS make libleveldb.a libmemenv.a



Now... for the graphical wallet... and we're going to go really fast because you're a f'in pro now.

4. Compiling Qt 5.2.0 libraries and Spacecash-Qt
--------------
4.1 Download and unpack Qt base and tools sources:

a) http://download.qt-project.org/official_releases/qt/5.2/5.2.0/submodules/qtbase-opensource-src-5.2.0.7z
* Make a directory called C:\Qt
* Unpack the contents of the file into C:\Qt
* Rename the directory from qtbase-opensource-src-5.2.0 to 5.2.0

b) http://download.qt-project.org/official_releases/qt/5.2/5.2.0/submodules/qttools-opensource-src-5.2.0.7z
* Unpack the contents of the file into C:\Qt

c) Open a command prompt and type:

cd\Qt\5.2.0

configure.bat -release -opensource -confirm-license -static -make libs -no-sql-sqlite -no-opengl -qt-zlib -qt-pcre -no-icu -no-gif -qt-libpng -qt-libjpeg -no-angle -no-vcproj -no-openssl -no-dbus -no-audio-backend -no-wmf-backend -no-qml-debug

mingw32-make

e) Remember when we had to check the Path variable before? We need to do that again. Reference the instructions above on how to access it. Add the following path to the beginning:

C:\Qt\5.2.0\bin;

f) close and reopen the command prompt window so the new path will take effect.

g) Type:

cd C:\Qt\qttools-opensource-src-5.2.0

qmake qttools.pro

mingw32-make

5. Compiling the Spacecash-Qt client
--------------


5.1 In the command prompt type:

cd\Spacecash

qmake Spacecash-qt.pro

mingw32-make -f Makefile.Release

YOU DID IT!

Don't forget to create your .conf files!
5 changes: 4 additions & 1 deletion src/bitcoinrpc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

// September 2018 StakeReport added, any Questions ? feel free to ask
// Twitter/Tillkoeln .. Youtube/Tillkoeln ... Bitcointalk/Tillkoeln
// https://yobit.net/en/pm/create/Tillkoeln
#include "init.h"
#include "util.h"
#include "sync.h"
Expand Down Expand Up @@ -307,6 +309,7 @@ static const CRPCCommand vRPCCommands[] =
{ "makekeypair", &makekeypair, false, true},
{ "sendalert", &sendalert, false, false},
{ "multisend", &multisend, false, false },
{ "getstakereport", &getstakereport, false, false},
};

CRPCTable::CRPCTable()
Expand Down
5 changes: 5 additions & 0 deletions src/bitcoinrpc.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
//
// September 2018 StakeReport added, any Questions ? feel free to ask
// Twitter/Tillkoeln .. Youtube/Tillkoeln ... Bitcointalk/Tillkoeln
// https://yobit.net/en/pm/create/Tillkoeln

#ifndef _BITCOINRPC_H_
#define _BITCOINRPC_H_ 1
Expand Down Expand Up @@ -218,5 +222,6 @@ extern json_spirit::Value getblockhash(const json_spirit::Array& params, bool fH
extern json_spirit::Value getblock(const json_spirit::Array& params, bool fHelp);
extern json_spirit::Value getblockbynumber(const json_spirit::Array& params, bool fHelp);
extern json_spirit::Value getcheckpoint(const json_spirit::Array& params, bool fHelp);
extern json_spirit::Value getstakereport(const json_spirit::Array& params, bool fHelp);

#endif
15 changes: 3 additions & 12 deletions src/net.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1132,12 +1132,10 @@ void MapPort()
// The first name is used as information source for addrman.
// The second name should resolve to a list of seed addresses.
static const char *strDNSSeed[][2] = {
{"Node-0", "5.146.140.4"},
{"Node-1", "x2team2017.ddns.net"},
{"Node-2", "185.61.151.109"},
{"Node-3", "185.61.151.132"},
{"Node-1", "stratumtest.ddns.net"},

{"Node-1", "185.82.203.178"},
{"Node-1", "185.106.121.130"},
};

void ThreadDNSAddressSeed(void* parg)
Expand Down Expand Up @@ -1208,14 +1206,7 @@ void ThreadDNSAddressSeed2(void* parg)

unsigned int pnSeed[] =
{
0xdf4bd379, 0x7934d29b, 0x26bc02ad, 0x7ab743ad, 0x0ab3a7bc,
0x375ab5bc, 0xc90b1617, 0x5352fd17, 0x5efc6c18, 0xccdc7d18,
0x443d9118, 0x84031b18, 0x347c1e18, 0x86512418, 0xfcfe9031,
0xdb5eb936, 0xef8d2e3a, 0xcf51f23c, 0x18ab663e, 0x36e0df40,
0xde48b641, 0xad3e4e41, 0xd0f32b44, 0x09733b44, 0x6a51f545,
0xe593ef48, 0xc5f5ef48, 0x96f4f148, 0xd354d34a, 0x36206f4c,
0xceefe953, 0x50468c55, 0x89d38d55, 0x65e61a5a, 0x16b1b95d,
0x702b135e, 0x0f57245e, 0xdaab5f5f, 0xba15ef63,

};

void DumpAddresses()
Expand Down

0 comments on commit 5998e16

Please sign in to comment.