@@ -77,7 +77,7 @@ use std::sync::atomic::AtomicBool;
7777use std:: sync:: { Arc , Mutex , RwLock } ;
7878use std:: time:: SystemTime ;
7979#[ cfg( any( vss, vss_test) ) ]
80- use vss_client:: headers:: { LnurlAuthToJwtProvider , VssHeaderProvider } ;
80+ use vss_client:: headers:: { FixedHeaders , LnurlAuthToJwtProvider , VssHeaderProvider } ;
8181
8282#[ derive( Debug , Clone ) ]
8383enum ChainDataSourceConfig {
@@ -401,6 +401,17 @@ impl NodeBuilder {
401401 self . build_with_vss_store_and_header_provider ( vss_url, store_id, header_provider)
402402 }
403403
404+ /// Builds a [`Node`] instance with a [`VssStore`] backend and according to the options
405+ /// previously configured. Uses only FixedHeaders as default method for authentication/authorization.
406+ #[ cfg( any( vss, vss_test) ) ]
407+ pub fn build_with_vss_store_with_fixed_headers (
408+ & self , vss_url : String , store_id : String , fixed_headers : HashMap < String , String > ,
409+ ) -> Result < Node , BuildError > {
410+ let header_provider = Arc :: new ( FixedHeaders :: new ( fixed_headers) ) ;
411+
412+ self . build_with_vss_store_and_header_provider ( vss_url, store_id, header_provider)
413+ }
414+
404415 /// Builds a [`Node`] instance with a [`VssStore`] backend and according to the options
405416 /// previously configured. Give `header_provider` is used to attach headers to every request made
406417 /// to [VSS](https://github.com/lightningdevkit/vss-server/blob/main/README.md) backend.
0 commit comments