SpartanCoin Project - Fossil Code Repository

Check-in [8896da7359]
Login
Overview
Comment:update
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256:8896da7359a6315414d7932ff099c6af44df225abf2e9b08c7ec4e5c6b749e96
User & Date: xjail 2019-01-23 17:36:23
Context
2019-01-23
18:31
test BOOST_ASIO_NO_DEPRECATED check-in: 1785eb478a user: xjail tags: master, trunk
17:36
update check-in: 8896da7359 user: xjail tags: master, trunk
2019-01-20
20:07
merge from openssl-1.1.1, boost-1.66.0 check-in: 4d74619725 user: xjail tags: master, trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to COPYING.

1
2
3
4
5
6
7
8
9
10
Copyright (c) 2009-2013 Bitcoin Developers
Copyright (c) 2014 Spartancoin Developers
Copyright (c) 2017-2018 xjail.tiv.cc 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:


|







1
2
3
4
5
6
7
8
9
10
Copyright (c) 2009-2013 Bitcoin Developers
Copyright (c) 2014 Spartancoin Developers
Copyright (c) 2017-2019 SpartanCoin Xjail 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:

Changes to README.md.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Spartancoin integration/staging tree
================================

http://www.xjail.tiv.cc

Copyright (c) 2009-2013 Bitcoin Developers
Copyright (c) 2011-2013 Litecoin Developers
Copyright (c) 2014 Spartancoin Developers
Copyright (c) 2017-2018 xjail.tiv.cc Developers

What is Spartancoin?
----------------

Spartancoin is a version os Litecoin using scrypt as a proof-of-work algorithm.
 - 2 minute block targets
 - subsidy halves in 400,000 blocks



|




|







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Spartancoin integration/staging tree
================================

https://www.spartancoin.tiv.cc

Copyright (c) 2009-2013 Bitcoin Developers
Copyright (c) 2011-2013 Litecoin Developers
Copyright (c) 2014 Spartancoin Developers
Copyright (c) 2017-2019 SpartanCoin Xjail Developers

What is Spartancoin?
----------------

Spartancoin is a version os Litecoin using scrypt as a proof-of-work algorithm.
 - 2 minute block targets
 - subsidy halves in 400,000 blocks

Changes to src/alert.cpp.

1
2
3
4
5
6
7
8
9
// Copyright (c) 2009-2012 Bitcoin Developers
// Copyright (c) 2017-2018 xjail.tiv.cc developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
//
// Alert system
//

#include <algorithm>

|







1
2
3
4
5
6
7
8
9
// Copyright (c) 2009-2012 Bitcoin Developers
// Copyright (c) 2017-2018 SpartanCoin Xjail developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
//
// Alert system
//

#include <algorithm>

Changes to src/bitcoinrpc.cpp.

1
2
3
4
5
6
7
8
9
10
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2017-2018 xjail.tiv.cc developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "init.h"
#include "util.h"
#include "sync.h"
#include "ui_interface.h"


|







1
2
3
4
5
6
7
8
9
10
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2017-2018 SpartanCoin Xjail developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "init.h"
#include "util.h"
#include "sync.h"
#include "ui_interface.h"

Changes to src/bloom.cpp.

1
2
3
4
5
6
7
8
9
// Copyright (c) 2012 The Bitcoin developers
// Copyright (c) 2017-2018 xjail.tiv.cc developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <math.h>
#include <stdlib.h>

#include "bloom.h"
#include "main.h"

|







1
2
3
4
5
6
7
8
9
// Copyright (c) 2012 The Bitcoin developers
// Copyright (c) 2017-2018 SpartanCoin Xjail developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <math.h>
#include <stdlib.h>

#include "bloom.h"
#include "main.h"

Changes to src/checkqueue.h.

1
2
3
4
5
6
7
8
9
// Copyright (c) 2012 The Bitcoin developers
// Copyright (c) 2017-2018 xjail.tiv.cc developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef CHECKQUEUE_H
#define CHECKQUEUE_H

#include <boost/thread/mutex.hpp>
#include <boost/thread/locks.hpp>

|







1
2
3
4
5
6
7
8
9
// Copyright (c) 2012 The Bitcoin developers
// Copyright (c) 2017-2018 SpartanCoin Xjail developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef CHECKQUEUE_H
#define CHECKQUEUE_H

#include <boost/thread/mutex.hpp>
#include <boost/thread/locks.hpp>

Changes to src/init.cpp.

1
2
3
4
5
6
7
8
9
10
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2017-2018 xjail.tiv.cc developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "txdb.h"
#include "walletdb.h"
#include "bitcoinrpc.h"
#include "net.h"


|







1
2
3
4
5
6
7
8
9
10
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2017-2018 SpartanCoin Xjail developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "txdb.h"
#include "walletdb.h"
#include "bitcoinrpc.h"
#include "net.h"

Changes to src/keystore.cpp.

1
2
3
4
5
6
7
8
9
10
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2017-2018 xjail.tiv.cc developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "keystore.h"
#include "script.h"

bool CKeyStore::GetPubKey(const CKeyID &address, CPubKey &vchPubKeyOut) const


|







1
2
3
4
5
6
7
8
9
10
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2017-2018 SpartanCoin Xjail developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "keystore.h"
#include "script.h"

bool CKeyStore::GetPubKey(const CKeyID &address, CPubKey &vchPubKeyOut) const

Changes to src/leveldb.cpp.

1
2
3
4
5
6
7
8
9
// Copyright (c) 2012 The Bitcoin developers
// Copyright (c) 2017-2018 xjail.tiv.cc developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "leveldb.h"
#include "util.h"

#include <leveldb/env.h>

|







1
2
3
4
5
6
7
8
9
// Copyright (c) 2012 The Bitcoin developers
// Copyright (c) 2017-2018 SpartanCoin Xjail developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "leveldb.h"
#include "util.h"

#include <leveldb/env.h>

Changes to src/leveldb.h.

1
2
3
4
5
6
7
8
9
// Copyright (c) 2012 The Bitcoin developers
// Copyright (c) 2017-2018 xjail.tiv.cc developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_LEVELDB_H
#define BITCOIN_LEVELDB_H

#include "serialize.h"


|







1
2
3
4
5
6
7
8
9
// Copyright (c) 2012 The Bitcoin developers
// Copyright (c) 2017-2018 SpartanCoin Xjail developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_LEVELDB_H
#define BITCOIN_LEVELDB_H

#include "serialize.h"

Changes to src/main.cpp.

1
2
3
4
5
6
7
8
9
10
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2017-2018 xjail.tiv.cc developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "alert.h"
#include "checkpoints.h"
#include "db.h"
#include "txdb.h"


|







1
2
3
4
5
6
7
8
9
10
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2017-2018 SpartanCoin Xjail developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "alert.h"
#include "checkpoints.h"
#include "db.h"
#include "txdb.h"

Changes to src/makefile.freebsd.

1
2
3
4
5
6
7
8
9
# Copyright (c) 2009-2010 Satoshi Nakamoto
# Copyright (c) 2017-2018 xjail.tiv.cc developers
# Distributed under the MIT/X11 software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.

# :=0 --> UPnP support turned off by default at runtime
# :=1 --> UPnP support turned on by default at runtime
# :=- --> No UPnP support - miniupnp not required
USE_UPNP:=0

|







1
2
3
4
5
6
7
8
9
# Copyright (c) 2009-2010 Satoshi Nakamoto
# Copyright (c) 2017-2018 SpartanCoin Xjail developers
# Distributed under the MIT/X11 software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.

# :=0 --> UPnP support turned off by default at runtime
# :=1 --> UPnP support turned on by default at runtime
# :=- --> No UPnP support - miniupnp not required
USE_UPNP:=0

Changes to src/makefile.unix.

1
2
3
4
5
6
7
8
9
# Copyright (c) 2009-2010 Satoshi Nakamoto
# Copyright (c) 2017-2018 xjail.tiv.cc developers
# Distributed under the MIT/X11 software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.

# :=0 --> UPnP support turned off by default at runtime
# :=1 --> UPnP support turned on by default at runtime
# :=- --> No UPnP support - miniupnp not required
USE_UPNP:=0

|







1
2
3
4
5
6
7
8
9
# Copyright (c) 2009-2010 Satoshi Nakamoto
# Copyright (c) 2017-2018 SpartanCoin Xjail developers
# Distributed under the MIT/X11 software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.

# :=0 --> UPnP support turned off by default at runtime
# :=1 --> UPnP support turned on by default at runtime
# :=- --> No UPnP support - miniupnp not required
USE_UPNP:=0

Changes to src/net.cpp.

1
2
3
4
5
6
7
8
9
10
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2017-2018 xjail.tiv.cc developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "db.h"
#include "net.h"
#include "init.h"
#include "addrman.h"


|







1
2
3
4
5
6
7
8
9
10
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2017-2018 SpartanCoin Xjail developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "db.h"
#include "net.h"
#include "init.h"
#include "addrman.h"

Changes to src/net.h.

1
2
3
4
5
6
7
8
9
10
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2017-2018 xjail.tiv.cc developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_NET_H
#define BITCOIN_NET_H

#include <deque>
#include <boost/array.hpp>


|







1
2
3
4
5
6
7
8
9
10
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2017-2018 SpartanCoin Xjail developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_NET_H
#define BITCOIN_NET_H

#include <deque>
#include <boost/array.hpp>

Changes to src/notes.log.

1
2
3
4
5
6
7
8
Found Bugs (Unsolved):
	Switch mutex, lock and condition_variable from boost to std causes deadlock, as non-interruptible

	Switch from boot::this_thread::sleep_for to std::this_thread::sleep_for causes deadlock, as non-interruptible.

	Upgrade to latest boost causes context asio.ssl error: When spartancoin-qt window or spartancoin daemon is running, "spartancoind stop" will cause that error.

	openssl and libressl build chaos.




<
<
<
<
1
2
3
4




Found Bugs (Unsolved):
	Switch mutex, lock and condition_variable from boost to std causes deadlock, as non-interruptible

	Switch from boot::this_thread::sleep_for to std::this_thread::sleep_for causes deadlock, as non-interruptible.




Changes to src/rpcblockchain.cpp.

1
2
3
4
5
6
7
8
9
10
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2017-2018 xjail.tiv.cc developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "main.h"
#include "bitcoinrpc.h"

using namespace json_spirit;


|







1
2
3
4
5
6
7
8
9
10
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2017-2018 SpartanCoin Xjail developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "main.h"
#include "bitcoinrpc.h"

using namespace json_spirit;

Changes to src/rpcmining.cpp.

1
2
3
4
5
6
7
8
9
10
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2017-2018 xjail.tiv.cc developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "main.h"
#include "db.h"
#include "init.h"
#include "bitcoinrpc.h"


|







1
2
3
4
5
6
7
8
9
10
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2017-2018 SpartanCoin Xjail developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "main.h"
#include "db.h"
#include "init.h"
#include "bitcoinrpc.h"

Changes to src/rpcnet.cpp.

1
2
3
4
5
6
7
8
9
// Copyright (c) 2009-2012 Bitcoin Developers
// Copyright (c) 2017-2018 xjail.tiv.cc developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "net.h"
#include "bitcoinrpc.h"

using namespace json_spirit;

|







1
2
3
4
5
6
7
8
9
// Copyright (c) 2009-2012 Bitcoin Developers
// Copyright (c) 2017-2018 SpartanCoin Xjail developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "net.h"
#include "bitcoinrpc.h"

using namespace json_spirit;

Changes to src/rpcrawtransaction.cpp.

1
2
3
4
5
6
7
8
9
10
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2017-2018 xjail.tiv.cc developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include <boost/assign/list_of.hpp>

#include "base58.h"
#include "bitcoinrpc.h"


|







1
2
3
4
5
6
7
8
9
10
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2017-2018 SpartanCoin Xjail developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include <boost/assign/list_of.hpp>

#include "base58.h"
#include "bitcoinrpc.h"

Changes to src/rpcwallet.cpp.

1
2
3
4
5
6
7
8
9
10
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2017-2018 xjail.tiv.cc developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include <boost/assign/list_of.hpp>

#include "wallet.h"
#include "walletdb.h"


|







1
2
3
4
5
6
7
8
9
10
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2017-2018 SpartanCoin Xjail developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include <boost/assign/list_of.hpp>

#include "wallet.h"
#include "walletdb.h"

Changes to src/sync.cpp.

1
2
3
4
5
6
7
8
9
// Copyright (c) 2011-2012 The Bitcoin developers
// Copyright (c) 2017-2018 xjail.tiv.cc developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "sync.h"
#include "util.h"

#ifdef DEBUG_LOCKCONTENTION

|







1
2
3
4
5
6
7
8
9
// Copyright (c) 2011-2012 The Bitcoin developers
// Copyright (c) 2017-2018 SpartanCoin Xjail developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "sync.h"
#include "util.h"

#ifdef DEBUG_LOCKCONTENTION

Changes to src/util.cpp.

1
2
3
4
5
6
7
8
9
10
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2017-2018 xjail.tiv.cc developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#ifndef WIN32
// for posix_fallocate
#ifdef __linux__
#define _POSIX_C_SOURCE 200112L


|







1
2
3
4
5
6
7
8
9
10
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2017-2018 SpartanCoin Xjail developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#ifndef WIN32
// for posix_fallocate
#ifdef __linux__
#define _POSIX_C_SOURCE 200112L

Changes to src/util.h.

1
2
3
4
5
6
7
8
9
10
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2017-2018 xjail.tiv.cc developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_UTIL_H
#define BITCOIN_UTIL_H

#include "uint256.h"



|







1
2
3
4
5
6
7
8
9
10
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2017-2018 SpartanCoin Xjail developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_UTIL_H
#define BITCOIN_UTIL_H

#include "uint256.h"

Changes to src/wallet.cpp.

1
2
3
4
5
6
7
8
9
10
....
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2017-2018 xjail.tiv.cc developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "wallet.h"
#include "walletdb.h"
#include "crypter.h"
#include "ui_interface.h"
#include "base58.h"
................................................................................
// ====> Temporary Code <====
// Custom Random Shuffle. The std::random_shuffle was removed
// in c++17. This random_shuffle is a modification of 
// std::random_shuffle in LLVM c++/v1/algorithm from 
// FreeBSD System Headers.
// The best solution is using std::shuffle, which will be 
// implemented in the future to write a custom URBG class.
// Copyright (c) xjail.tiv.cc developers.
namespace xjail {
	template <typename RandomIter, typename RandomFunc>
	void random_shuffle(RandomIter first, RandomIter last, 
					RandomFunc && rand_fn) {
		using DiffType = typename std::iterator_traits<RandomIter>
						::difference_type;
		DiffType max_setting = last - first;


|







 







|







1
2
3
4
5
6
7
8
9
10
....
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2017-2018 SpartanCoin Xjail developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "wallet.h"
#include "walletdb.h"
#include "crypter.h"
#include "ui_interface.h"
#include "base58.h"
................................................................................
// ====> Temporary Code <====
// Custom Random Shuffle. The std::random_shuffle was removed
// in c++17. This random_shuffle is a modification of 
// std::random_shuffle in LLVM c++/v1/algorithm from 
// FreeBSD System Headers.
// The best solution is using std::shuffle, which will be 
// implemented in the future to write a custom URBG class.
// Copyright (c) SpartanCoin Xjail developers.
namespace xjail {
	template <typename RandomIter, typename RandomFunc>
	void random_shuffle(RandomIter first, RandomIter last, 
					RandomFunc && rand_fn) {
		using DiffType = typename std::iterator_traits<RandomIter>
						::difference_type;
		DiffType max_setting = last - first;

Changes to src/wallet.h.

1
2
3
4
5
6
7
8
9
10
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2017-2018 xjail.tiv.cc developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_WALLET_H
#define BITCOIN_WALLET_H

#include <string>
#include <vector>


|







1
2
3
4
5
6
7
8
9
10
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2017-2018 SpartanCoin Xjail developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_WALLET_H
#define BITCOIN_WALLET_H

#include <string>
#include <vector>

Changes to src/walletdb.cpp.

1
2
3
4
5
6
7
8
9
10
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2017-2018 xjail.tiv.cc developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "walletdb.h"
#include "wallet.h"
#include <boost/version.hpp>
#include <boost/filesystem.hpp>


|







1
2
3
4
5
6
7
8
9
10
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2017-2018 SpartanCoin Xjail developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "walletdb.h"
#include "wallet.h"
#include <boost/version.hpp>
#include <boost/filesystem.hpp>

Changes to src/xjail_spn_util.cpp.

1
2
3
4
5
6
7
8
// Copyright (c) 2017-2018 xjail.tiv.cc developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "xjail_spn_util.h"
#include <map>
#include <vector>
#include <string>
|







1
2
3
4
5
6
7
8
// Copyright (c) 2017-2018 SpartanCoin Xjail developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "xjail_spn_util.h"
#include <map>
#include <vector>
#include <string>

Changes to src/xjail_spn_util.h.

1
2
3
4
5
6
7
8
// Copyright (c) 2017-2018 xjail.tiv.cc developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#ifndef __xjail_spn_util_h__
#define __xjail_spn_util_h__

#include <map>
|







1
2
3
4
5
6
7
8
// Copyright (c) 2017-2018 SpartanCoin Xjail developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#ifndef __xjail_spn_util_h__
#define __xjail_spn_util_h__

#include <map>