Skip to content

Commit c01b934

Browse files
committed
fixup! feat: support chain sourcing via REST interface
1 parent 3ecf44e commit c01b934

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/builder.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -767,8 +767,7 @@ impl ArcedNodeBuilder {
767767
/// Configures the [`Node`] instance to connect to a Bitcoin Core node via RPC.
768768
///
769769
/// This method establishes an RPC connection that enables all essential chain operations including
770-
/// transaction broadcasting and chain data synchronization. RPC is the minimum required configuration
771-
/// for Bitcoin Core chain interactions and must be set up before any other Bitcoin Core connection options.
770+
/// transaction broadcasting and chain data synchronization.
772771
///
773772
/// ## Parameters:
774773
/// * `rpc_host`, `rpc_port`, `rpc_user`, `rpc_password` - Required parameters for the Bitcoin Core RPC
@@ -786,13 +785,13 @@ impl ArcedNodeBuilder {
786785

787786
/// Configures the [`Node`] instance to synchronize chain data from a Bitcoin Core REST endpoint.
788787
///
789-
/// This method enables chain data synchronization via Bitcoin Core's REST interface.
790-
/// It must be called after [`set_chain_source_bitcoind_rpc`] because REST is used only for chain
791-
/// synchronization, while RPC is still required for other essential operations like transaction
792-
/// broadcasting.
788+
/// This method enables chain data synchronization via Bitcoin Core's REST interface. We pass
789+
/// additional RPC configuration to non-REST-supported API calls like transaction broadcasting.
793790
///
794791
/// ## Parameters:
795792
/// * `rest_host`, `rest_port` - Required parameters for the Bitcoin Core REST connection.
793+
/// * `rpc_host`, `rpc_port`, `rpc_user`, `rpc_password` - Required parameters for the Bitcoin Core RPC
794+
/// connection
796795
pub fn set_chain_source_bitcoind_rest(
797796
&self, rest_host: String, rest_port: u16, rpc_host: String, rpc_port: u16,
798797
rpc_user: String, rpc_password: String,

0 commit comments

Comments
 (0)