1 #!/usr/bin/env python3
2 # Copyright (c) 2016-2019 The Limenka 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 7 Creating a cache of the blockchain speeds up test execution when running
8 multiple functional tests. This helper script is executed by test_runner when multiple
9 tests are being run in parallel.
10 """
11 12 from test_framework.test_framework import LimenkaTestFramework
13 14 class CreateCache(LimenkaTestFramework):
15 # Test network and test nodes are not required:
16 17 def set_test_params(self):
18 self.num_nodes = 0
19 20 def setup_network(self):
21 pass
22 23 def run_test(self):
24 pass
25 26 if __name__ == '__main__':
27 CreateCache(__file__).main()
28