@@ -97,6 +97,7 @@ use super::{BalanceError, BalanceFut, BalanceResult, CoinTransportMetrics, Coins
9797 RpcTransportEventHandler , RpcTransportEventHandlerShared , TradeFee , TradePreimageError , TradePreimageFut ,
9898 TradePreimageResult , Transaction , TransactionDetails , TransactionEnum , TransactionFut , WithdrawError ,
9999 WithdrawRequest } ;
100+ use crate :: utxo:: utxo_block_header_storage:: { BlockHeaderStorage , BlockHeaderStorageError } ;
100101use std:: array:: TryFromSliceError ;
101102
102103#[ cfg( test) ] pub mod utxo_tests;
@@ -553,6 +554,7 @@ pub struct UtxoCoinFields {
553554 pub tx_fee : TxFee ,
554555 /// Minimum transaction value at which the value is not less than fee
555556 pub dust_amount : u64 ,
557+ pub block_header_storage : Option < Box < dyn BlockHeaderStorage < Error = dyn BlockHeaderStorageError > > > ,
556558 /// RPC client
557559 pub rpc_client : UtxoRpcClientEnum ,
558560 /// Either ECDSA key pair or a Hardware Wallet info.
@@ -1475,6 +1477,7 @@ pub trait UtxoCoinBuilder {
14751477 conf,
14761478 decimals,
14771479 dust_amount,
1480+ block_header_storage : None ,
14781481 rpc_client,
14791482 priv_key_policy,
14801483 derivation_method,
@@ -1508,6 +1511,7 @@ pub trait UtxoCoinBuilder {
15081511 conf,
15091512 decimals,
15101513 dust_amount,
1514+ block_header_storage : None ,
15111515 rpc_client,
15121516 priv_key_policy : PrivKeyPolicy :: HardwareWallet ,
15131517 derivation_method : DerivationMethod :: HDWallet ( HDWalletInfo :: new ( addr_format) ) ,
0 commit comments