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:
Antoine Poinsot 2024-02-27 14:18:04 +01:00
parent 0acdccd3ac
commit bdf8b8f625
No known key found for this signature in database
GPG Key ID: E13FC145CD3F4304
3 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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

View File

@ -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."""