You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

create_cache.py 835B

123456789101112131415161718192021222324252627282930
  1. #!/usr/bin/env python3
  2. # Copyright (c) 2016 The Bitcoin Core developers
  3. # Distributed under the MIT software license, see the accompanying
  4. # file COPYING or http://www.opensource.org/licenses/mit-license.php.
  5. """Create a blockchain cache.
  6. Creating a cache of the blockchain speeds up test execution when running
  7. multiple functional tests. This helper script is executed by rpc-tests when multiple
  8. tests are being run in parallel.
  9. """
  10. from test_framework.test_framework import BitcoinTestFramework
  11. class CreateCache(BitcoinTestFramework):
  12. def __init__(self):
  13. super().__init__()
  14. # Test network and test nodes are not required:
  15. self.num_nodes = 0
  16. self.nodes = []
  17. def setup_network(self):
  18. pass
  19. def run_test(self):
  20. pass
  21. if __name__ == '__main__':
  22. CreateCache().main()