mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-15 04:30:42 +02:00
test: resort imports
This commit is contained in:
parent
85165d4332
commit
5e8df3312e
@ -18,9 +18,9 @@ from test_framework.blocktools import (create_block, create_coinbase)
|
|||||||
from test_framework.messages import CInv, MSG_BLOCK
|
from test_framework.messages import CInv, MSG_BLOCK
|
||||||
from test_framework.p2p import (
|
from test_framework.p2p import (
|
||||||
P2PInterface,
|
P2PInterface,
|
||||||
p2p_lock,
|
|
||||||
msg_block,
|
msg_block,
|
||||||
msg_getdata,
|
msg_getdata,
|
||||||
|
p2p_lock,
|
||||||
)
|
)
|
||||||
from test_framework.test_framework import BitcoinTestFramework
|
from test_framework.test_framework import BitcoinTestFramework
|
||||||
from test_framework.util import (
|
from test_framework.util import (
|
||||||
|
@ -12,7 +12,7 @@ import re
|
|||||||
|
|
||||||
from test_framework.blocktools import create_block, create_coinbase
|
from test_framework.blocktools import create_block, create_coinbase
|
||||||
from test_framework.messages import msg_block
|
from test_framework.messages import msg_block
|
||||||
from test_framework.p2p import P2PInterface, p2p_lock
|
from test_framework.p2p import p2p_lock, P2PInterface
|
||||||
from test_framework.test_framework import BitcoinTestFramework
|
from test_framework.test_framework import BitcoinTestFramework
|
||||||
from test_framework.util import wait_until
|
from test_framework.util import wait_until
|
||||||
|
|
||||||
|
@ -39,8 +39,8 @@ from decimal import Decimal
|
|||||||
import os
|
import os
|
||||||
import time
|
import time
|
||||||
|
|
||||||
from test_framework.test_framework import BitcoinTestFramework
|
|
||||||
from test_framework.p2p import P2PTxInvStore
|
from test_framework.p2p import P2PTxInvStore
|
||||||
|
from test_framework.test_framework import BitcoinTestFramework
|
||||||
from test_framework.util import (
|
from test_framework.util import (
|
||||||
assert_equal,
|
assert_equal,
|
||||||
assert_greater_than_or_equal,
|
assert_greater_than_or_equal,
|
||||||
|
@ -12,9 +12,7 @@ from test_framework.messages import (
|
|||||||
NODE_WITNESS,
|
NODE_WITNESS,
|
||||||
msg_addr,
|
msg_addr,
|
||||||
)
|
)
|
||||||
from test_framework.p2p import (
|
from test_framework.p2p import P2PInterface
|
||||||
P2PInterface,
|
|
||||||
)
|
|
||||||
from test_framework.test_framework import BitcoinTestFramework
|
from test_framework.test_framework import BitcoinTestFramework
|
||||||
from test_framework.util import (
|
from test_framework.util import (
|
||||||
assert_equal,
|
assert_equal,
|
||||||
|
@ -15,11 +15,11 @@ Therefore, this test is limited to the remaining protection criteria.
|
|||||||
|
|
||||||
import time
|
import time
|
||||||
|
|
||||||
from test_framework.test_framework import BitcoinTestFramework
|
|
||||||
from test_framework.p2p import P2PInterface, P2PDataStore
|
|
||||||
from test_framework.util import assert_equal, wait_until
|
|
||||||
from test_framework.blocktools import create_block, create_coinbase
|
from test_framework.blocktools import create_block, create_coinbase
|
||||||
from test_framework.messages import CTransaction, FromHex, msg_pong, msg_tx
|
from test_framework.messages import CTransaction, FromHex, msg_pong, msg_tx
|
||||||
|
from test_framework.p2p import P2PDataStore, P2PInterface
|
||||||
|
from test_framework.test_framework import BitcoinTestFramework
|
||||||
|
from test_framework.util import assert_equal, wait_until
|
||||||
|
|
||||||
|
|
||||||
class SlowP2PDataStore(P2PDataStore):
|
class SlowP2PDataStore(P2PDataStore):
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
from decimal import Decimal
|
from decimal import Decimal
|
||||||
|
|
||||||
from test_framework.messages import MSG_TX, MSG_WTX, msg_feefilter
|
from test_framework.messages import MSG_TX, MSG_WTX, msg_feefilter
|
||||||
from test_framework.p2p import p2p_lock, P2PInterface
|
from test_framework.p2p import P2PInterface, p2p_lock
|
||||||
from test_framework.test_framework import BitcoinTestFramework
|
from test_framework.test_framework import BitcoinTestFramework
|
||||||
from test_framework.util import assert_equal
|
from test_framework.util import assert_equal
|
||||||
|
|
||||||
|
@ -22,16 +22,6 @@ from decimal import Decimal
|
|||||||
import http.client
|
import http.client
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
from test_framework.test_framework import BitcoinTestFramework
|
|
||||||
from test_framework.util import (
|
|
||||||
assert_equal,
|
|
||||||
assert_greater_than,
|
|
||||||
assert_greater_than_or_equal,
|
|
||||||
assert_raises,
|
|
||||||
assert_raises_rpc_error,
|
|
||||||
assert_is_hex_string,
|
|
||||||
assert_is_hash_string,
|
|
||||||
)
|
|
||||||
from test_framework.blocktools import (
|
from test_framework.blocktools import (
|
||||||
create_block,
|
create_block,
|
||||||
create_coinbase,
|
create_coinbase,
|
||||||
@ -42,8 +32,16 @@ from test_framework.messages import (
|
|||||||
FromHex,
|
FromHex,
|
||||||
msg_block,
|
msg_block,
|
||||||
)
|
)
|
||||||
from test_framework.p2p import (
|
from test_framework.p2p import P2PInterface
|
||||||
P2PInterface,
|
from test_framework.test_framework import BitcoinTestFramework
|
||||||
|
from test_framework.util import (
|
||||||
|
assert_equal,
|
||||||
|
assert_greater_than,
|
||||||
|
assert_greater_than_or_equal,
|
||||||
|
assert_raises,
|
||||||
|
assert_raises_rpc_error,
|
||||||
|
assert_is_hex_string,
|
||||||
|
assert_is_hash_string,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -9,6 +9,12 @@ Tests correspond to code in rpc/net.cpp.
|
|||||||
|
|
||||||
from decimal import Decimal
|
from decimal import Decimal
|
||||||
|
|
||||||
|
from test_framework.p2p import P2PInterface
|
||||||
|
import test_framework.messages
|
||||||
|
from test_framework.messages import (
|
||||||
|
NODE_NETWORK,
|
||||||
|
NODE_WITNESS,
|
||||||
|
)
|
||||||
from test_framework.test_framework import BitcoinTestFramework
|
from test_framework.test_framework import BitcoinTestFramework
|
||||||
from test_framework.util import (
|
from test_framework.util import (
|
||||||
assert_equal,
|
assert_equal,
|
||||||
@ -19,12 +25,6 @@ from test_framework.util import (
|
|||||||
p2p_port,
|
p2p_port,
|
||||||
wait_until,
|
wait_until,
|
||||||
)
|
)
|
||||||
from test_framework.p2p import P2PInterface
|
|
||||||
import test_framework.messages
|
|
||||||
from test_framework.messages import (
|
|
||||||
NODE_NETWORK,
|
|
||||||
NODE_WITNESS,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
def assert_net_servicesnames(servicesflag, servicenames):
|
def assert_net_servicesnames(servicesflag, servicenames):
|
||||||
|
@ -20,8 +20,8 @@ import time
|
|||||||
|
|
||||||
from .authproxy import JSONRPCException
|
from .authproxy import JSONRPCException
|
||||||
from . import coverage
|
from . import coverage
|
||||||
from .test_node import TestNode
|
|
||||||
from .p2p import NetworkThread
|
from .p2p import NetworkThread
|
||||||
|
from .test_node import TestNode
|
||||||
from .util import (
|
from .util import (
|
||||||
MAX_NODES,
|
MAX_NODES,
|
||||||
PortSeed,
|
PortSeed,
|
||||||
|
Loading…
Reference in New Issue
Block a user