Skip to content

Commit a37833e

Browse files
committed
chore: run just pre-push
Run `just pre-push`, which: - Generates `Cargo-minimal.lock` and `Cargo-recent.lock` - Formats code Also renames `tests/test_rpc_client.rs` to `tests/rpc_client.rs`.
1 parent 19a8a22 commit a37833e

File tree

8 files changed

+1013
-152
lines changed

8 files changed

+1013
-152
lines changed

Cargo-minimal.lock

Lines changed: 918 additions & 0 deletions
Large diffs are not rendered by default.

Cargo.lock renamed to Cargo-recent.lock

Lines changed: 79 additions & 147 deletions
Large diffs are not rendered by default.

src/client.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
use std::{
24
fs::File,
35
io::{BufRead, BufReader},
@@ -8,15 +10,14 @@ use crate::error::Error;
810
use crate::jsonrpc::bitreq_http::Builder;
911
use corepc_types::{
1012
bitcoin::{
11-
block::Header, consensus::encode::deserialize_hex, Block, BlockHash, Transaction, Txid,
13+
Block, BlockHash, Transaction, Txid, block::Header, consensus::encode::deserialize_hex,
1214
},
1315
model::{GetBlockCount, GetBlockFilter, GetRawMempool},
1416
v30,
1517
};
1618
use jsonrpc::{
17-
serde,
19+
Transport, serde,
1820
serde_json::{self, json},
19-
Transport,
2021
};
2122

2223
#[cfg(feature = "28_0")]

src/client/v28.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
use bitcoin::BlockHash;
24
use corepc_types::{
35
bitcoin,

src/error.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
//! Error types for the Bitcoin RPC client.
24
35
use bitcoin::{consensus::encode::FromHexError, hex::HexToArrayError};

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
//! Bitcoin Core RPC client library.
24
//!
35
//! This crate provides a Rust client for interacting with Bitcoin Core's JSON-RPC interface.
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
//! Integration tests for the `bdk_bitcoind_client` [`Client`].
24
//!
3-
//! These tests require a running Bitcoin Core node in regtest mode. To setup refer to [`corepc_node`].
5+
//! These tests require a running Bitcoin Core node in regtest mode. To setup, refer to [`corepc_node`].
46
57
use bdk_bitcoind_client::{Auth, Client, Error};
68
use corepc_types::bitcoin::{Amount, BlockHash, Txid};

tests/testenv.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
// SPDX-License-Identifier: MIT OR Apache-2.0
2+
13
use bdk_bitcoind_client::{Auth, Client};
24
use bitcoin::{Address, BlockHash};
3-
use corepc_node::{exe_path, Conf, Node};
5+
use corepc_node::{Conf, Node, exe_path};
46
use corepc_types::bitcoin;
57

68
/// Test environment for running integration tests.

0 commit comments

Comments
 (0)