mirror of
https://github.com/AskDavis/Casinotest.git
synced 2026-01-03 04:19:47 -08:00
Compare commits
13 Commits
casinocoin
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d7cfdfc0d9 | ||
|
|
bf69de0c94 | ||
|
|
5f7d4fba37 | ||
|
|
106f4b72a1 | ||
|
|
9f47402b63 | ||
|
|
20725f9897 | ||
|
|
c3b802d64b | ||
|
|
e7458b9b09 | ||
|
|
1e625e6b50 | ||
|
|
2b5d7a5f7f | ||
|
|
1ba6eb79a3 | ||
|
|
aec0a42158 | ||
|
|
ca31d8e720 |
69
.travis.yml
Normal file
69
.travis.yml
Normal file
@@ -0,0 +1,69 @@
|
|||||||
|
# errata:
|
||||||
|
# - A travis bug causes caches to trample eachother when using the same
|
||||||
|
# compiler key (which we don't use anyway). This is worked around for now by
|
||||||
|
# replacing the "compilers" with a build name prefixed by the no-op ":"
|
||||||
|
# command. See: https://github.com/travis-ci/casher/issues/6
|
||||||
|
|
||||||
|
os: linux
|
||||||
|
language: cpp
|
||||||
|
compiler: gcc
|
||||||
|
env:
|
||||||
|
global:
|
||||||
|
- MAKEJOBS=-j3
|
||||||
|
- RUN_TESTS=false
|
||||||
|
- CCACHE_SIZE=100M
|
||||||
|
- CCACHE_TEMPDIR=/tmp/.ccache-temp
|
||||||
|
- CCACHE_COMPRESS=1
|
||||||
|
- BASE_OUTDIR=$TRAVIS_BUILD_DIR/out
|
||||||
|
- SDK_URL=https://bitcoincore.org/depends-sources/sdks
|
||||||
|
cache:
|
||||||
|
apt: true
|
||||||
|
directories:
|
||||||
|
- depends/built
|
||||||
|
- depends/sdk-sources
|
||||||
|
- $HOME/.ccache
|
||||||
|
matrix:
|
||||||
|
fast_finish: true
|
||||||
|
include:
|
||||||
|
- compiler: ": ARM"
|
||||||
|
env: HOST=arm-linux-gnueabihf PACKAGES="g++-arm-linux-gnueabihf" DEP_OPTS="NO_QT=1" GOAL="install" BITCOIN_CONFIG="--enable-glibc-back-compat"
|
||||||
|
- compiler: ": bitcoind"
|
||||||
|
env: HOST=x86_64-unknown-linux-gnu PACKAGES="bc" DEP_OPTS="NO_QT=1 NO_UPNP=1 DEBUG=1" RUN_TESTS=true GOAL="install" BITCOIN_CONFIG="--enable-glibc-back-compat CPPFLAGS=-DDEBUG_LOCKORDER"
|
||||||
|
- compiler: ": No wallet"
|
||||||
|
env: HOST=x86_64-unknown-linux-gnu DEP_OPTS="NO_WALLET=1" RUN_TESTS=true GOAL="install" BITCOIN_CONFIG="--enable-glibc-back-compat"
|
||||||
|
- compiler: ": 32-bit + dash"
|
||||||
|
env: HOST=i686-pc-linux-gnu PACKAGES="g++-multilib bc" RUN_TESTS=true GOAL="install" BITCOIN_CONFIG="--enable-glibc-back-compat" USE_SHELL="/bin/dash"
|
||||||
|
- compiler: ": Cross-Mac"
|
||||||
|
env: HOST=x86_64-apple-darwin11 PACKAGES="cmake libcap-dev libz-dev libbz2-dev" OSX_SDK=10.9 GOAL="deploy"
|
||||||
|
- compiler: ": Win64"
|
||||||
|
env: HOST=x86_64-w64-mingw32 PACKAGES="nsis gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64 binutils-mingw-w64-x86-64 mingw-w64-dev wine bc" RUN_TESTS=true GOAL="deploy" BITCOIN_CONFIG="--enable-gui" MAKEJOBS="-j2"
|
||||||
|
- compiler: ": Win32"
|
||||||
|
env: HOST=i686-w64-mingw32 PACKAGES="nsis gcc-mingw-w64-i686 g++-mingw-w64-i686 binutils-mingw-w64-i686 mingw-w64-dev wine bc" RUN_TESTS=true GOAL="deploy" BITCOIN_CONFIG="--enable-gui" MAKEJOBS="-j2"
|
||||||
|
exclude:
|
||||||
|
- compiler: gcc
|
||||||
|
install:
|
||||||
|
- if [ -n "$PACKAGES" ]; then travis_retry sudo apt-get update; fi
|
||||||
|
- if [ -n "$PACKAGES" ]; then travis_retry sudo apt-get install --no-install-recommends --no-upgrade -qq $PACKAGES; fi
|
||||||
|
before_script:
|
||||||
|
- unset CC; unset CXX
|
||||||
|
- mkdir -p depends/SDKs depends/sdk-sources
|
||||||
|
- if [ -n "$OSX_SDK" -a ! -f depends/sdk-sources/MacOSX${OSX_SDK}.sdk.tar.gz ]; then wget $SDK_URL/MacOSX${OSX_SDK}.sdk.tar.gz -O depends/sdk-sources/MacOSX${OSX_SDK}.sdk.tar.gz; fi
|
||||||
|
- if [ -n "$OSX_SDK" -a -f depends/sdk-sources/MacOSX${OSX_SDK}.sdk.tar.gz ]; then tar -C depends/SDKs -xf depends/sdk-sources/MacOSX${OSX_SDK}.sdk.tar.gz; fi
|
||||||
|
- make $MAKEJOBS -C depends HOST=$HOST $DEP_OPTS
|
||||||
|
script:
|
||||||
|
- if [ -n "$USE_SHELL" ]; then export CONFIG_SHELL="$USE_SHELL"; fi
|
||||||
|
- OUTDIR=$BASE_OUTDIR/$TRAVIS_PULL_REQUEST/$TRAVIS_JOB_NUMBER-$HOST
|
||||||
|
- BITCOIN_CONFIG_ALL="--disable-dependency-tracking --prefix=$TRAVIS_BUILD_DIR/depends/$HOST --bindir=$OUTDIR/bin --libdir=$OUTDIR/lib"
|
||||||
|
- depends/$HOST/native/bin/ccache --max-size=$CCACHE_SIZE
|
||||||
|
- if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then export CCACHE_READONLY=1; fi
|
||||||
|
- test -n "$USE_SHELL" && eval '"$USE_SHELL" -c "./autogen.sh"' || ./autogen.sh
|
||||||
|
- ./configure --cache-file=config.cache $BITCOIN_CONFIG_ALL $BITCOIN_CONFIG || ( cat config.log && false)
|
||||||
|
- make distdir PACKAGE=bitcoin VERSION=$HOST
|
||||||
|
- cd bitcoin-$HOST
|
||||||
|
- ./configure --cache-file=../config.cache $BITCOIN_CONFIG_ALL $BITCOIN_CONFIG || ( cat config.log && false)
|
||||||
|
- make $MAKEJOBS $GOAL || ( echo "Build failure. Verbose build follows." && make $GOAL V=1 ; false )
|
||||||
|
- export LD_LIBRARY_PATH=$TRAVIS_BUILD_DIR/depends/$HOST/lib
|
||||||
|
- if [ "$RUN_TESTS" = "true" ]; then make check; fi
|
||||||
|
- if [ "$RUN_TESTS" = "true" ]; then qa/pull-tester/rpc-tests.sh; fi
|
||||||
|
after_script:
|
||||||
|
- if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then (echo "Upload goes here. Something like: scp -r $BASE_OUTDIR server" || echo "upload failed"); fi
|
||||||
3
INSTALL
3
INSTALL
@@ -1,5 +1,8 @@
|
|||||||
Building CasinoCoin
|
Building CasinoCoin
|
||||||
|
|
||||||
|
Please visit the Wiki for details on building CasinoCoin-qt and Casinocoind
|
||||||
|
https://github.com/casinocoin/casinocoin/wiki
|
||||||
|
|
||||||
See doc/readme-qt.rst for instructions on building CasinoCoin-Qt,
|
See doc/readme-qt.rst for instructions on building CasinoCoin-Qt,
|
||||||
the intended-for-end-users, nice-graphical-interface, reference
|
the intended-for-end-users, nice-graphical-interface, reference
|
||||||
implementation of CasinoCoin.
|
implementation of CasinoCoin.
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<h2>Wallet 2.0.1.0 Release available</h2>
|
<h2>Wallet 3.0.0.0 Release available</h2>
|
||||||
[Click here to download the most recent wallet version -> 2.0.1.0 (Updated on December, 11 2015)](https://github.com/casinocoin/casinocoin/releases/tag/2.0.1.0 "Click to go to releases page")
|
[Click here to download the most recent wallet version -> 3.0.0.0 (Updated on June, 17 2016)](https://github.com/casinocoin/casinocoin/releases/tag/3.0.0.0 "Click to go to releases page")
|
||||||
|
|
||||||
<p align="center"><img src="https://raw.github.com/transcoder/CasinoCoin/master/src/qt/res/images/logo.png" /></p>
|
<p align="center"><img src="https://raw.github.com/transcoder/CasinoCoin/master/src/qt/res/images/logo.png" /></p>
|
||||||
|
|
||||||
@@ -35,7 +35,7 @@ Technical Specifications
|
|||||||
- 30 second block time targets
|
- 30 second block time targets
|
||||||
- ~63 million total coins
|
- ~63 million total coins
|
||||||
- new digishield difficulty retargetting system (from block 445000)
|
- new digishield difficulty retargetting system (from block 445000)
|
||||||
- 50 coins per block, permanent reduction to 10 coins per block after block 575000
|
- 50 coins per block, permanent reduction to 1 coins per block after block 1750000
|
||||||
- fair launch, absolutely no premine
|
- fair launch, absolutely no premine
|
||||||
|
|
||||||
Casinocoin Mailing Lists
|
Casinocoin Mailing Lists
|
||||||
|
|||||||
3
contrib/systemd/casinocoind.env
Normal file
3
contrib/systemd/casinocoind.env
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
CASINOCOIND_CONFIGFILE=/opt/CSC/.casinocoin/casinocoin.conf
|
||||||
|
CASINOCOIND_DATADIR=/opt/CSC/data
|
||||||
|
CASINOCOIND_CACHESIZE=512
|
||||||
16
contrib/systemd/casinocoind.service
Normal file
16
contrib/systemd/casinocoind.service
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Casinocoin Daemon Service
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
Restart=always
|
||||||
|
User=ubuntu
|
||||||
|
Group=ubuntu
|
||||||
|
PIDFile=/opt/CSC/data/casinocoind.pid
|
||||||
|
EnvironmentFile=/etc/systemd/casinocoind.env
|
||||||
|
ExecStart=/usr/bin/casinocoind -daemon -datadir=${CASINOCOIND_DATADIR} -conf=${CASINOCOIND_CONFIGFILE} -dbcache=${CASINOCOIND_CACHESIZE}
|
||||||
|
ExecStop=/usr/bin/casinocoind -conf=${CASINOCOIND_CONFIGFILE} stop
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
@@ -2,8 +2,8 @@
|
|||||||
// Use of this source code is governed by a BSD-style license that can be
|
// Use of this source code is governed by a BSD-style license that can be
|
||||||
// found in the LICENSE file. See the AUTHORS file for names of contributors.
|
// found in the LICENSE file. See the AUTHORS file for names of contributors.
|
||||||
|
|
||||||
#ifndef STORAGE_LEVELDB_HELPERS_MEMENV_MEMENV_H_
|
#ifndef STORAGE_LEVELDB_HELPERS_MEMENV_MEMENV_H__STDC_LIMIT_MACROS
|
||||||
#define STORAGE_LEVELDB_HELPERS_MEMENV_MEMENV_H_
|
#define STORAGE_LEVELDB_HELPERS_MEMENV_MEMENV_H__STDC_LIMIT_MACROS
|
||||||
|
|
||||||
namespace leveldb {
|
namespace leveldb {
|
||||||
|
|
||||||
|
|||||||
@@ -16,16 +16,18 @@ USE_IPV6:=1
|
|||||||
USE_QRCODE=1
|
USE_QRCODE=1
|
||||||
|
|
||||||
# define libraries
|
# define libraries
|
||||||
BOOST_LIB_PATH=$HOME/deps/boost_1_60_0/stage/lib
|
BOOST_LIB_PATH=$(HOME)/deps/boost_1_60_0/stage/lib
|
||||||
BDB_LIB_PATH=$HOME/deps/db-5.1.29.NC/build_unix
|
BDB_LIB_PATH=$(HOME)/deps/db-5.1.29.NC/build_unix
|
||||||
OPENSSL_LIB_PATH=$HOME/deps/openssl-1.0.2g
|
OPENSSL_LIB_PATH=$(HOME)/deps/openssl-1.0.2g
|
||||||
MINIUPNPC_LIB_PATH=$HOME/deps/miniupnpc-1.9
|
MINIUPNPC_LIB_PATH=$(HOME)/deps/miniupnpc-1.9
|
||||||
|
|
||||||
# define includes
|
# define includes
|
||||||
BOOST_INCLUDE_PATH=$HOME/deps/boost_1_60_0
|
BOOST_INCLUDE_PATH=$(HOME)/deps/boost_1_60_0
|
||||||
BDB_INCLUDE_PATH=$HOME/deps/db-5.1.29.NC/build_unix
|
BDB_INCLUDE_PATH=$(HOME)/deps/db-5.1.29.NC/build_unix
|
||||||
OPENSSL_INCLUDE_PATH=$HOME/deps/openssl-1.0.2g
|
OPENSSL_INCLUDE_PATH=$(HOME)/deps/openssl-1.0.2g/include
|
||||||
MINIUPNPC_INCLUDE_PATH=$HOME/deps/miniupnpc-1.9
|
MINIUPNPC_INCLUDE_PATH=$(HOME)/deps/miniupnpc-1.9
|
||||||
|
|
||||||
|
BOOST_LIB_SUFFIX=-mt
|
||||||
|
|
||||||
LINK:=$(CXX)
|
LINK:=$(CXX)
|
||||||
|
|
||||||
@@ -119,7 +121,7 @@ DEBUGFLAGS=-g
|
|||||||
|
|
||||||
# CXXFLAGS can be specified on the make command line, so we use xCXXFLAGS that only
|
# CXXFLAGS can be specified on the make command line, so we use xCXXFLAGS that only
|
||||||
# adds some defaults in front. Unfortunately, CXXFLAGS=... $(CXXFLAGS) does not work.
|
# adds some defaults in front. Unfortunately, CXXFLAGS=... $(CXXFLAGS) does not work.
|
||||||
xCXXFLAGS=-O2 -std=c++14 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter \
|
xCXXFLAGS=-O2 -std=c++14 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -Wno-unused-variable \
|
||||||
$(DEBUGFLAGS) $(DEFS) $(HARDENING) $(CXXFLAGS)
|
$(DEBUGFLAGS) $(DEFS) $(HARDENING) $(CXXFLAGS)
|
||||||
|
|
||||||
# LDFLAGS can be specified on the make command line, so we use xLDFLAGS that only
|
# LDFLAGS can be specified on the make command line, so we use xLDFLAGS that only
|
||||||
|
|||||||
@@ -239,7 +239,7 @@ Value listunspent(const Array& params, bool fHelp)
|
|||||||
CTxDestination address;
|
CTxDestination address;
|
||||||
if (ExtractDestination(pk, address))
|
if (ExtractDestination(pk, address))
|
||||||
{
|
{
|
||||||
const CScriptID& hash = boost::get<const CScriptID&>(address);
|
const CScriptID& hash = boost::get<CScriptID>(address);
|
||||||
CScript redeemScript;
|
CScript redeemScript;
|
||||||
if (pwalletMain->GetCScript(hash, redeemScript))
|
if (pwalletMain->GetCScript(hash, redeemScript))
|
||||||
entry.push_back(Pair("redeemScript", HexStr(redeemScript.begin(), redeemScript.end())));
|
entry.push_back(Pair("redeemScript", HexStr(redeemScript.begin(), redeemScript.end())));
|
||||||
|
|||||||
Reference in New Issue
Block a user