Bitcoin to NYC3 and update gitian compile code

This commit is contained in:
Akshay
2019-06-09 12:22:49 +03:00
parent d8192b664c
commit 516a7bafec
921 changed files with 1868 additions and 1858 deletions
+6 -6
View File
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
# Copyright (c) 2017-2018 The Bitcoin Core developers
# Copyright (c) 2017-2018 The NYC3 Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""An example functional test
@@ -22,7 +22,7 @@ from test_framework.mininode import (
msg_block,
msg_getdata,
)
from test_framework.test_framework import BitcoinTestFramework
from test_framework.test_framework import NYC3TestFramework
from test_framework.util import (
assert_equal,
connect_nodes,
@@ -64,12 +64,12 @@ def custom_function():
If this function is more generally useful for other tests, consider
moving it to a module in test_framework."""
# self.log.info("running custom_function") # Oops! Can't run self.log outside the BitcoinTestFramework
# self.log.info("running custom_function") # Oops! Can't run self.log outside the NYC3TestFramework
pass
class ExampleTest(BitcoinTestFramework):
# Each functional test is a subclass of the BitcoinTestFramework class.
class ExampleTest(NYC3TestFramework):
# Each functional test is a subclass of the NYC3TestFramework class.
# Override the set_test_params(), skip_test_if_missing_module(), add_options(), setup_chain(), setup_network()
# and setup_nodes() methods to customize the test setup as required.
@@ -129,7 +129,7 @@ class ExampleTest(BitcoinTestFramework):
Define it in a method here because you're going to use it repeatedly.
If you think it's useful in general, consider moving it to the base
BitcoinTestFramework class so other tests can use it."""
NYC3TestFramework class so other tests can use it."""
self.log.info("Running custom_method")