File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1- use std:: collections:: HashMap ;
1+ use std:: collections:: BTreeMap ;
22
33use bitcoin:: PublicKey ;
44
@@ -41,7 +41,7 @@ pub struct TapTweaks {
4141 /// Number of blocks in the response, up to 2,000.
4242 pub num_blocks : u32 ,
4343 /// The tweaks for each block.
44- pub blocks : Vec < Option < HashMap < u32 , String > > > ,
44+ pub blocks : Vec < Option < BTreeMap < u32 , String > > > ,
4545}
4646
4747impl TapTweaks {
@@ -51,13 +51,13 @@ impl TapTweaks {
5151 /// # Panics
5252 ///
5353 /// If the partial secret is not a valid hex encoding of a public key.
54- pub fn fallible_into_iterator ( self ) -> impl Iterator < Item = Option < HashMap < u32 , PublicKey > > > {
54+ pub fn fallible_into_iterator ( self ) -> impl Iterator < Item = Option < BTreeMap < u32 , PublicKey > > > {
5555 self . blocks . into_iter ( ) . map ( |tweaks| {
5656 tweaks. map ( |tweaks| {
5757 tweaks
5858 . into_iter ( )
5959 . map ( |( tx_index, pk_str) | ( tx_index, pk_str. parse :: < PublicKey > ( ) . unwrap ( ) ) )
60- . collect :: < HashMap < u32 , PublicKey > > ( )
60+ . collect :: < BTreeMap < u32 , PublicKey > > ( )
6161 } )
6262 } )
6363 }
You can’t perform that action at this time.
0 commit comments