Skip to content

Commit

Permalink
Merge pull request #1310 from Sjors/2024/12/bump-tp
Browse files Browse the repository at this point in the history
Bump TP to 0.1.13 for CI
  • Loading branch information
plebhash authored Dec 19, 2024
2 parents fd1b488 + c4bd2bb commit e8d76d6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 3 additions & 1 deletion roles/tests-integration/tests/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ use tar::Archive;
// prevents get_available_port from ever returning the same port twice
static UNIQUE_PORTS: Lazy<Mutex<HashSet<u16>>> = Lazy::new(|| Mutex::new(HashSet::new()));

const VERSION_TP: &str = "0.1.9";
const VERSION_TP: &str = "0.1.13";

fn download_bitcoind_tarball(download_url: &str) -> Vec<u8> {
let response = minreq::get(download_url)
Expand Down Expand Up @@ -91,10 +91,12 @@ impl TemplateProvider {
"-txindex=1",
"-sv2",
&port,
"-debug=rpc",
"-debug=sv2",
"-sv2interval=20",
"-sv2feedelta=1000",
"-loglevel=sv2:trace",
"-logtimemicros=1",
]);

let os = env::consts::OS;
Expand Down
7 changes: 6 additions & 1 deletion roles/tests-integration/tests/pool_integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ mod common;
use std::convert::TryInto;

use common::{InterceptMessage, MessageDirection};
use const_sv2::MESSAGE_TYPE_SETUP_CONNECTION_ERROR;
use const_sv2::{
MESSAGE_TYPE_NEW_TEMPLATE, MESSAGE_TYPE_SETUP_CONNECTION_ERROR, MESSAGE_TYPE_SET_NEW_PREV_HASH,
};
use roles_logic_sv2::{
common_messages_sv2::{Protocol, SetupConnection, SetupConnectionError},
parsers::{CommonMessages, PoolMessages, TemplateDistribution},
Expand Down Expand Up @@ -55,6 +57,9 @@ async fn success_pool_template_provider_connection() {
&sniffer.next_message_from_downstream(),
CoinbaseOutputDataSize
);
sniffer
.wait_for_message_type(MessageDirection::ToDownstream, MESSAGE_TYPE_NEW_TEMPLATE)
.await;
assert_tp_message!(&sniffer.next_message_from_upstream(), NewTemplate);
assert_tp_message!(sniffer.next_message_from_upstream(), SetNewPrevHash);
}
Expand Down

0 comments on commit e8d76d6

Please sign in to comment.