bitcoind: set minimum required version to 24.0

This commit is contained in:
Antoine Poinsot 2022-12-13 16:10:22 +01:00
parent 9211d849c1
commit 650101525d
No known key found for this signature in database
GPG Key ID: E13FC145CD3F4304
3 changed files with 7 additions and 8 deletions

View File

@ -43,11 +43,10 @@ task:
set -xe
# Download the bitcoind binary
# TODO: cleanup by using env variables like in revaultd once 24.0 is out.
ARCHIVE_NAME="bitcoin-core-24.0rc1.tar.gz"
curl https://bitcoincore.org/bin/bitcoin-core-24.0/test.rc1/bitcoin-24.0rc1-x86_64-linux-gnu.tar.gz -o $ARCHIVE_NAME
tar -xzf $ARCHIVE_NAME
export BITCOIND_PATH=bitcoin-24.0rc1/bin/bitcoind
curl -O https://bitcoincore.org/bin/bitcoin-core-24.0.1/bitcoin-24.0.1-x86_64-linux-gnu.tar.gz
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
# Run the functional tests
LIANAD_PATH=$PWD/target/release/lianad pytest $TEST_GROUP -vvv -n 2

View File

@ -35,7 +35,7 @@ const RPC_SOCKET_TIMEOUT: u64 = 180;
const BITCOIND_RETRY_LIMIT: usize = 60;
// The minimum bitcoind version that can be used with lianad.
const MIN_BITCOIND_VERSION: u64 = 239900;
const MIN_BITCOIND_VERSION: u64 = 240000;
/// An error in the bitcoind interface.
#[derive(Debug)]

View File

@ -433,10 +433,10 @@ mod tests {
stream.flush().unwrap();
}
// Send them a pruned getblockchaininfo telling them we are at version 23.99
// Send them a pruned getblockchaininfo telling them we are at version 24.0
fn complete_version_check(server: &net::TcpListener) {
let net_resp =
"HTTP/1.1 200\n\r\n{\"jsonrpc\":\"2.0\",\"id\":1,\"result\":{\"version\":239900}}\n"
"HTTP/1.1 200\n\r\n{\"jsonrpc\":\"2.0\",\"id\":1,\"result\":{\"version\":240000}}\n"
.as_bytes();
let (mut stream, _) = server.accept().unwrap();
read_til_json_end(&mut stream);