Rename IS_BITCOIND_25 to IS_NOT_BITCOIND_26
for f in ; do sed -i 's/IS_BITCOIND_25/IS_NOT_BITCOIND_24/g' tests/test_misc.py; done
This commit is contained in:
parent
0acdccd3ac
commit
bdf8b8f625
@ -51,7 +51,7 @@ task:
|
||||
echo "49df6e444515d457ea0b885d66f521f2a26ca92ccf73d5296082e633544253bf bitcoin-24.0.1-x86_64-linux-gnu.tar.gz" | sha256sum -c
|
||||
tar -xzf bitcoin-24.0.1-x86_64-linux-gnu.tar.gz
|
||||
export BITCOIND_PATH=bitcoin-24.0.1/bin/bitcoind
|
||||
export IS_BITCOIND_25=0
|
||||
export IS_NOT_BITCOIND_24=0
|
||||
else
|
||||
# Download the bitcoind binary
|
||||
curl -O https://bitcoincore.org/bin/bitcoin-core-26.0/bitcoin-26.0-x86_64-linux-gnu.tar.gz
|
||||
|
||||
@ -23,7 +23,7 @@ LIANAD_PATH = os.getenv("LIANAD_PATH", DEFAULT_MS_PATH)
|
||||
DEFAULT_BITCOIND_PATH = "bitcoind"
|
||||
BITCOIND_PATH = os.getenv("BITCOIND_PATH", DEFAULT_BITCOIND_PATH)
|
||||
OLD_LIANAD_PATH = os.getenv("OLD_LIANAD_PATH", None)
|
||||
IS_BITCOIND_25 = bool(int(os.getenv("IS_BITCOIND_25", True)))
|
||||
IS_NOT_BITCOIND_24 = bool(int(os.getenv("IS_NOT_BITCOIND_24", True)))
|
||||
|
||||
|
||||
COIN = 10**8
|
||||
|
||||
@ -13,7 +13,7 @@ from test_framework.utils import (
|
||||
LIANAD_PATH,
|
||||
COIN,
|
||||
TIMEOUT,
|
||||
IS_BITCOIND_25,
|
||||
IS_NOT_BITCOIND_24,
|
||||
)
|
||||
|
||||
from threading import Thread
|
||||
@ -275,7 +275,7 @@ def test_migration(lianad_multisig, bitcoind):
|
||||
|
||||
|
||||
@pytest.mark.skipif(
|
||||
not IS_BITCOIND_25, reason="Need 'generateblock' with 'submit=False'"
|
||||
not IS_NOT_BITCOIND_24, reason="Need 'generateblock' with 'submit=False'"
|
||||
)
|
||||
def test_bitcoind_submit_block(bitcoind):
|
||||
block_count = bitcoind.rpc.getblockcount()
|
||||
@ -297,7 +297,7 @@ def bitcoind_wait_new_block(bitcoind):
|
||||
|
||||
|
||||
@pytest.mark.skipif(
|
||||
not IS_BITCOIND_25, reason="Need 'generateblock' with 'submit=False'"
|
||||
not IS_NOT_BITCOIND_24, reason="Need 'generateblock' with 'submit=False'"
|
||||
)
|
||||
def test_retry_on_workqueue_exceeded(lianad, bitcoind, executor):
|
||||
"""Make sure we retry requests to bitcoind if it is temporarily overloaded."""
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user