files.new_contents: #!/usr/bin/env python3
  # Copyright (c) 2014-2015 The Bitcoin Core developers
  # Copyright (c) 2015-2017 The Bitcoin Unlimited developers
  # Distributed under the MIT software license, see the accompanying
  # file COPYING or http://www.opensource.org/licenses/mit-license.php.
  
  """
  Run Regression Test Suite
  
  This module calls down into individual test cases via subprocess. It will
  forward all unrecognized arguments onto the individual test scripts, other
  than:
  
      - `-h` or '--help': print help about all options
      - `-extended`: run the "extended" test suite in addition to the basic one.
      - `-extended-only`: run ONLY the "extended" test suite
      - `-list`: only list the test scripts, do not run. Works in combination
        with '-extended' and '-extended-only' too, to print subsets.
      - `-win`: signal that this is running in a Windows environment, and we
        should run the tests.
      - `--coverage`: this generates a basic coverage report for the RPC
        interface.
  
  For more detailed help on options, run with '--help'.
  
  For a description of arguments recognized by test scripts, see
  `qa/pull-tester/test_framework/test_framework.py:BitcoinTestFramework.main`.
  
  """
  import pdb
  import os
  import time
  import shutil
  import sys
  import subprocess
  import tempfile
  import re
  
  sys.path.append("qa/pull-tester/")
  from tests_config import *
  from test_classes import RpcTest, Disabled, Skip
  
  BOLD = ("","")
  if os.name == 'posix':
      # primitive formatting on supported
      # terminal via ANSI escape sequences:
      BOLD = ('\033[0m', '\033[1m')
  
  RPC
  
  [... the rest is omitted ...]
files.new_path: qa/pull-tester/rpc-tests.py
files.old_contents: #!/usr/bin/env python3
  # Copyright (c) 2014-2015 The Bitcoin Core developers
  # Copyright (c) 2015-2017 The Bitcoin Unlimited developers
  # Distributed under the MIT software license, see the accompanying
  # file COPYING or http://www.opensource.org/licenses/mit-license.php.
  
  """
  Run Regression Test Suite
  
  This module calls down into individual test cases via subprocess. It will
  forward all unrecognized arguments onto the individual test scripts, other
  than:
  
      - `-h` or '--help': print help about all options
      - `-extended`: run the "extended" test suite in addition to the basic one.
      - `-extended-only`: run ONLY the "extended" test suite
      - `-list`: only list the test scripts, do not run. Works in combination
        with '-extended' and '-extended-only' too, to print subsets.
      - `-win`: signal that this is running in a Windows environment, and we
        should run the tests.
      - `--coverage`: this generates a basic coverage report for the RPC
        interface.
  
  For more detailed help on options, run with '--help'.
  
  For a description of arguments recognized by test scripts, see
  `qa/pull-tester/test_framework/test_framework.py:BitcoinTestFramework.main`.
  
  """
  import pdb
  import os
  import time
  import shutil
  import sys
  import subprocess
  import tempfile
  import re
  
  sys.path.append("qa/pull-tester/")
  from tests_config import *
  from test_classes import RpcTest, Disabled, Skip
  
  BOLD = ("","")
  if os.name == 'posix':
      # primitive formatting on supported
      # terminal via ANSI escape sequences:
      BOLD = ('\033[0m', '\033[1m')
  
  RPC
  
  [... the rest is omitted ...]
files.old_path: qa/pull-tester/rpc-tests.py
files.new_contents: #!/usr/bin/env python3
  # Copyright (c) 2014-2015 The Bitcoin Core developers
  # Copyright (c) 2015-2016 The Bitcoin Unlimited developers
  # Distributed under the MIT software license, see the accompanying
  # file COPYING or http://www.opensource.org/licenses/mit-license.php.
  
  
  from test_framework.test_framework import BitcoinTestFramework
  from test_framework.util import *
  
  class ParallelTest (BitcoinTestFramework):
      def __init__(self):
        self.rep = False
        #self.extensive = False
        BitcoinTestFramework.__init__(self)
  
      def setup_chain(self):
          print ("Initializing test directory "+self.options.tmpdir)
          initialize_chain_clean(self.options.tmpdir, 6)
  
      def setup_network(self, split=False):
          self.nodes = []
          self.nodes.append(start_node(0, self.options.tmpdir, ["-parallel=0", "-rpcservertimeout=0", "-debug", "-use-thinblocks=0", "-excessiveblocksize=6000000", "-blockprioritysize=6000000", "-blockmaxsize=6000000"]))
          self.nodes.append(start_node(1, self.options.tmpdir, ["-parallel=0", "-rpcservertimeout=0", "-debug", "-use-thinblocks=0", "-excessiveblocksize=6000000", "-blockprioritysize=6000000", "-blockmaxsize=6000000"]))
          self.nodes.append(start_node(2, self.options.tmpdir, ["-parallel=0", "-rpcservertimeout=0", "-debug", "-use-thinblocks=0", "-excessiveblocksize=6000000", "-blockprioritysize=6000000", "-blockmaxsize=6000000"]))
          self.nodes.append(start_node
  
  [... the rest is omitted ...]
files.new_path: qa/rpc-tests/parallel.py
files.old_contents: #!/usr/bin/env python3
  # Copyright (c) 2014-2015 The Bitcoin Core developers
  # Copyright (c) 2015-2016 The Bitcoin Unlimited developers
  # Distributed under the MIT software license, see the accompanying
  # file COPYING or http://www.opensource.org/licenses/mit-license.php.
  
  
  from test_framework.test_framework import BitcoinTestFramework
  from test_framework.util import *
  
  class ParallelTest (BitcoinTestFramework):
      def __init__(self):
        self.rep = False
        BitcoinTestFramework.__init__(self)
  
      def setup_chain(self):
          print ("Initializing test directory "+self.options.tmpdir)
          initialize_chain_clean(self.options.tmpdir, 6)
  
      def setup_network(self, split=False):
          self.nodes = []
          self.nodes.append(start_node(0, self.options.tmpdir, ["-parallel=0", "-rpcservertimeout=0", "-debug", "-use-thinblocks=0", "-excessiveblocksize=6000000", "-blockprioritysize=6000000", "-blockmaxsize=6000000"]))
          self.nodes.append(start_node(1, self.options.tmpdir, ["-parallel=0", "-rpcservertimeout=0", "-debug", "-use-thinblocks=0", "-excessiveblocksize=6000000", "-blockprioritysize=6000000", "-blockmaxsize=6000000"]))
          self.nodes.append(start_node(2, self.options.tmpdir, ["-parallel=0", "-rpcservertimeout=0", "-debug", "-use-thinblocks=0", "-excessiveblocksize=6000000", "-blockprioritysize=6000000", "-blockmaxsize=6000000"]))
          self.nodes.append(start_node(3, self.options.tmpdir
  
  [... the rest is omitted ...]
files.old_path: qa/rpc-tests/parallel.py
files.new_contents: // Copyright (c) 2017 Stephen McCarthy
  // Copyright (c) 2017 The Bitcoin Unlimited developers
  // Distributed under the MIT software license, see the accompanying
  // file COPYING or http://www.opensource.org/licenses/mit-license.php.
  
  #include <set>
  
  #include "allowed_args.h"
  #include "chainparams.h"
  #include "dosman.h"
  #include "httpserver.h"
  #include "init.h"
  #include "main.h"
  #include "miner.h"
  #include "netbase.h"
  #include "policy/policy.h"
  #include "qt/guiconstants.h"
  #include "requestManager.h"
  #include "script/sigcache.h"
  #include "tinyformat.h"
  #include "torcontrol.h"
  #include "tweak.h"
  #include "txdb.h"
  #include "util.h"
  #include "utilmoneystr.h"
  #include "utilstrencodings.h"
  
  #ifdef ENABLE_WALLET
  #include "wallet/wallet.h"
  #endif
  
  // These globals are needed here so bitcoin-cli can link
  const std::string CURRENCY_UNIT = "BTC";
  const std::string DEFAULT_TOR_CONTROL = "127.0.0.1:9051";
  const char DEFAULT_RPCCONNECT[] = "127.0.0.1";
  
  // Variables for traffic shaping.  Needed here so bitcoin-cli can link
  /** Default value for the maximum amount of data that can be received in a burst */
  const int64_t DEFAULT_MAX_RECV_BURST = std::numeric_limits<int64_t>::max();
  /** Default value for the maximum amount of data that can be sent in a burst */
  const int64_t DEFAULT_MAX_SEND_BURST = std::numeric_limits<int64_t>::max();
  /** Default value for the average amount of data received per second */
  const int64_t DEFAULT_AVE_RECV = std::numeric_limits<int64_t>::
  
  [... the rest is omitted ...]
files.new_path: src/allowed_args.cpp
files.old_contents: // Copyright (c) 2017 Stephen McCarthy
  // Copyright (c) 2017 The Bitcoin Unlimited developers
  // Distributed under the MIT software license, see the accompanying
  // file COPYING or http://www.opensource.org/licenses/mit-license.php.
  
  #include <set>
  
  #include "allowed_args.h"
  #include "chainparams.h"
  #include "dosman.h"
  #include "httpserver.h"
  #include "init.h"
  #include "main.h"
  #include "miner.h"
  #include "netbase.h"
  #include "policy/policy.h"
  #include "qt/guiconstants.h"
  #include "requestManager.h"
  #include "script/sigcache.h"
  #include "tinyformat.h"
  #include "torcontrol.h"
  #include "tweak.h"
  #include "txdb.h"
  #include "util.h"
  #include "utilmoneystr.h"
  #include "utilstrencodings.h"
  
  #ifdef ENABLE_WALLET
  #include "wallet/wallet.h"
  #endif
  
  // These globals are needed here so bitcoin-cli can link
  const std::string CURRENCY_UNIT = "BTC";
  const std::string DEFAULT_TOR_CONTROL = "127.0.0.1:9051";
  const char DEFAULT_RPCCONNECT[] = "127.0.0.1";
  
  // Variables for traffic shaping.  Needed here so bitcoin-cli can link
  /** Default value for the maximum amount of data that can be received in a burst */
  const int64_t DEFAULT_MAX_RECV_BURST = std::numeric_limits<int64_t>::max();
  /** Default value for the maximum amount of data that can be sent in a burst */
  const int64_t DEFAULT_MAX_SEND_BURST = std::numeric_limits<int64_t>::max();
  /** Default value for the average amount of data received per second */
  const int64_t DEFAULT_AVE_RECV = std::numeric_limits<int64_t>::
  
  [... the rest is omitted ...]
files.old_path: src/allowed_args.cpp
files.new_contents: // Copyright (c) 2009-2010 Satoshi Nakamoto
  // Copyright (c) 2009-2015 The Bitcoin Core developers
  // Copyright (c) 2015-2017 The Bitcoin Unlimited developers
  // Distributed under the MIT software license, see the accompanying
  // file COPYING or http://www.opensource.org/licenses/mit-license.php.
  
  #ifndef BITCOIN_INIT_H
  #define BITCOIN_INIT_H
  
  #include <string>
  
  class CScheduler;
  class CWallet;
  
  namespace boost
  {
  class thread_group;
  } // namespace boost
  
  void StartShutdown();
  bool ShutdownRequested();
  /** Interrupt threads */
  void Interrupt(boost::thread_group& threadGroup);
  void Shutdown();
  //!Initialize the logging infrastructure
  void InitLogging();
  //!Parameter interaction: change current parameters depending on various rules
  void InitParameterInteraction();
  bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler);
  
  void MainCleanup();
  void NetCleanup();
  
  static const bool DEFAULT_PROXYRANDOMIZE = true;
  static const bool DEFAULT_REST_ENABLE = false;
  static const bool DEFAULT_DISABLE_SAFEMODE = false;
  static const bool DEFAULT_STOPAFTERBLOCKIMPORT = false;
  static const bool DEFAULT_PV_TESTMODE = false;
  
  /** Returns licensing information (for -version) */
  std::string LicenseInfo();
  
  #endif // BITCOIN_INIT_H
  
  
  [... the rest is omitted ...]
files.new_path: src/init.h
files.old_contents: // Copyright (c) 2009-2010 Satoshi Nakamoto
  // Copyright (c) 2009-2015 The Bitcoin Core developers
  // Copyright (c) 2015-2017 The Bitcoin Unlimited developers
  // Distributed under the MIT software license, see the accompanying
  // file COPYING or http://www.opensource.org/licenses/mit-license.php.
  
  #ifndef BITCOIN_INIT_H
  #define BITCOIN_INIT_H
  
  #include <string>
  
  class CScheduler;
  class CWallet;
  
  namespace boost
  {
  class thread_group;
  } // namespace boost
  
  void StartShutdown();
  bool ShutdownRequested();
  /** Interrupt threads */
  void Interrupt(boost::thread_group& threadGroup);
  void Shutdown();
  //!Initialize the logging infrastructure
  void InitLogging();
  //!Parameter interaction: change current parameters depending on various rules
  void InitParameterInteraction();
  bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler);
  
  void MainCleanup();
  void NetCleanup();
  
  static const bool DEFAULT_PROXYRANDOMIZE = true;
  static const bool DEFAULT_REST_ENABLE = false;
  static const bool DEFAULT_DISABLE_SAFEMODE = false;
  static const bool DEFAULT_STOPAFTERBLOCKIMPORT = false;
  
  /** Returns licensing information (for -version) */
  std::string LicenseInfo();
  
  #endif // BITCOIN_INIT_H
  
  
  [... the rest is omitted ...]
files.old_path: src/init.h
files.new_contents: // Copyright (c) 2009-2010 Satoshi Nakamoto
  // Copyright (c) 2009-2015 The Bitcoin Core developers
  // Copyright (c) 2015-2017 The Bitcoin Unlimited developers
  // Copyright (c) 2016 Bitcoin Unlimited developers
  // Distributed under the MIT software license, see the accompanying
  // file COPYING or http://www.opensource.org/licenses/mit-license.php.
  
  #include "main.h"
  
  #include "addrman.h"
  #include "arith_uint256.h"
  #include "chainparams.h"
  #include "checkpoints.h"
  #include "checkqueue.h"
  #include "connmgr.h"
  #include "consensus/consensus.h"
  #include "consensus/merkle.h"
  #include "consensus/validation.h"
  #include "dosman.h"
  #include "expedited.h"
  #include "hash.h"
  #include "init.h"
  #include "merkleblock.h"
  #include "net.h"
  #include "nodestate.h"
  #include "parallel.h"
  #include "policy/policy.h"
  #include "pow.h"
  #include "primitives/block.h"
  #include "primitives/transaction.h"
  #include "requestManager.h"
  #include "script/script.h"
  #include "script/sigcache.h"
  #include "script/standard.h"
  #include "thinblock.h"
  #include "tinyformat.h"
  #include "txdb.h"
  #include "txmempool.h"
  #include "ui_interface.h"
  #include "undo.h"
  #include "util.h"
  #include "utilmoneystr.h"
  #include "utilstrencodings.h"
  #include "validationinterface.h"
  #include "versionbits.h"
  
  #include <algorithm>
  #include <boost/algorithm/hex.hpp>
  #include <boost/algorithm/string/replace.hpp>
  #include <boost/filesystem.hpp>
  #include <boost/filesystem/fstream.hpp>
  #include <boost/math/distributions/poisson.hpp>
  #include <boost/scope_exit
  
  [... the rest is omitted ...]
files.new_path: src/main.cpp
files.old_contents: // Copyright (c) 2009-2010 Satoshi Nakamoto
  // Copyright (c) 2009-2015 The Bitcoin Core developers
  // Copyright (c) 2015-2017 The Bitcoin Unlimited developers
  // Copyright (c) 2016 Bitcoin Unlimited developers
  // Distributed under the MIT software license, see the accompanying
  // file COPYING or http://www.opensource.org/licenses/mit-license.php.
  
  #include "main.h"
  
  #include "addrman.h"
  #include "arith_uint256.h"
  #include "chainparams.h"
  #include "checkpoints.h"
  #include "checkqueue.h"
  #include "connmgr.h"
  #include "consensus/consensus.h"
  #include "consensus/merkle.h"
  #include "consensus/validation.h"
  #include "dosman.h"
  #include "expedited.h"
  #include "hash.h"
  #include "init.h"
  #include "merkleblock.h"
  #include "net.h"
  #include "nodestate.h"
  #include "parallel.h"
  #include "policy/policy.h"
  #include "pow.h"
  #include "primitives/block.h"
  #include "primitives/transaction.h"
  #include "requestManager.h"
  #include "script/script.h"
  #include "script/sigcache.h"
  #include "script/standard.h"
  #include "thinblock.h"
  #include "tinyformat.h"
  #include "txdb.h"
  #include "txmempool.h"
  #include "ui_interface.h"
  #include "undo.h"
  #include "util.h"
  #include "utilmoneystr.h"
  #include "utilstrencodings.h"
  #include "validationinterface.h"
  #include "versionbits.h"
  
  #include <algorithm>
  #include <boost/algorithm/hex.hpp>
  #include <boost/algorithm/string/replace.hpp>
  #include <boost/filesystem.hpp>
  #include <boost/filesystem/fstream.hpp>
  #include <boost/math/distributions/poisson.hpp>
  #include <boost/scope_exit
  
  [... the rest is omitted ...]
files.old_path: src/main.cpp