@@ -18,6 +18,7 @@ use bitcoin::secp256k1::PublicKey;
1818use bitcoin:: TxOut ;
1919use rgb_lib:: {
2020 bitcoin:: psbt:: Psbt as RgbLibPsbt ,
21+ keys:: WitnessVersion ,
2122 wallet:: {
2223 rust_only:: { AssetColoringInfo , ColoringInfo } ,
2324 DatabaseType , SinglesigKeys , Wallet , WalletData ,
@@ -63,6 +64,9 @@ pub struct RgbInfo {
6364 pub local_rgb_amount : u64 ,
6465 /// Channel RGB remote amount
6566 pub remote_rgb_amount : u64 ,
67+ /// Batch transfer index from rgb-lib (set after rgb_send_begin)
68+ #[ serde( default , skip_serializing_if = "Option::is_none" ) ]
69+ pub batch_transfer_idx : Option < i32 > ,
6670}
6771
6872/// RGB payment info
@@ -158,6 +162,7 @@ fn _new_rgb_wallet(
158162 vanilla_keychain : None ,
159163 master_fingerprint,
160164 mnemonic : None ,
165+ witness_version : WitnessVersion :: Taproot ,
161166 } ;
162167 Wallet :: new (
163168 WalletData {
@@ -700,6 +705,7 @@ pub(crate) fn handle_funding(
700705 schema : AssetSchema :: from_schema_id ( consignment. schema_id ( ) ) . unwrap ( ) ,
701706 local_rgb_amount : push_amount,
702707 remote_rgb_amount : channel_rgb_amount - push_amount,
708+ batch_transfer_idx : None ,
703709 } ;
704710 let temporary_channel_id_str = temporary_channel_id. 0 . as_hex ( ) . to_string ( ) ;
705711 write_rgb_channel_info (
0 commit comments