update file structure

This commit is contained in:
Elyan 2024-02-22 13:43:23 -08:00
parent 038afb6203
commit 485186933b

13
miner
View File

@ -4,25 +4,26 @@
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
# Modified for quick blocks and run in leaner docker container
# Modify the Python path
PATH_BASE_CONTRIB_SIGNET = os.path.abspath(os.path.dirname(os.path.realpath(__file__)))
PATH_BASE_TEST_FUNCTIONAL = os.path.abspath(os.path.join(PATH_BASE_CONTRIB_SIGNET, "miner_imports"))
sys.path.insert(0, PATH_BASE_TEST_FUNCTIONAL)
# Standard library imports for path setup
import argparse
import base64
import json
import logging
import math
import os
import sys
import re
import struct
import sys
import time
import subprocess
from io import BytesIO
# Modify the Python path
PATH_BASE_CONTRIB_SIGNET = os.path.abspath(os.path.dirname(os.path.realpath(__file__)))
PATH_BASE_TEST_FUNCTIONAL = os.path.abspath(os.path.join(PATH_BASE_CONTRIB_SIGNET, "miner_imports"))
sys.path.insert(0, PATH_BASE_TEST_FUNCTIONAL)
# Custom module imports from test_framework
from test_framework.blocktools import WITNESS_COMMITMENT_HEADER, script_BIP34_coinbase_height # noqa: E402
from test_framework.messages import CBlock, CBlockHeader, COutPoint, CTransaction, CTxIn, CTxInWitness, CTxOut, from_hex, deser_string, hash256, ser_compact_size, ser_string, ser_uint256, tx_from_hex, uint256_from_str # noqa: E402