@@ -9,9 +9,9 @@ use miniscript::bitcoin;
99use miniscript:: bitcoin:: { OutPoint , Transaction , TxOut } ;
1010use miniscript:: plan:: Plan ;
1111
12- /// Confirmation status of a tx input .
12+ /// Confirmation status of a tx data .
1313#[ derive( Debug , Clone , Copy ) ]
14- pub struct InputStatus {
14+ pub struct TxStatus {
1515 /// Confirmation block height.
1616 pub height : absolute:: Height ,
1717 /// Confirmation block median time past.
@@ -21,7 +21,7 @@ pub struct InputStatus {
2121 pub time : absolute:: Time ,
2222}
2323
24- impl InputStatus {
24+ impl TxStatus {
2525 /// From consensus `height` and `time`.
2626 pub fn new ( height : u32 , time : u64 ) -> Result < Self , absolute:: ConversionError > {
2727 Ok ( Self {
@@ -190,7 +190,7 @@ pub struct Input {
190190 prev_txout : TxOut ,
191191 prev_tx : Option < Arc < Transaction > > ,
192192 plan : PlanOrPsbtInput ,
193- status : Option < InputStatus > ,
193+ status : Option < TxStatus > ,
194194 is_coinbase : bool ,
195195}
196196
@@ -205,7 +205,7 @@ impl Input {
205205 plan : Plan ,
206206 prev_tx : T ,
207207 output_index : usize ,
208- status : Option < InputStatus > ,
208+ status : Option < TxStatus > ,
209209 ) -> Result < Self , OutputsIndexError >
210210 where
211211 T : Into < Arc < Transaction > > ,
@@ -227,7 +227,7 @@ impl Input {
227227 plan : Plan ,
228228 prev_outpoint : OutPoint ,
229229 prev_txout : TxOut ,
230- status : Option < InputStatus > ,
230+ status : Option < TxStatus > ,
231231 is_coinbase : bool ,
232232 ) -> Self {
233233 Self {
@@ -253,7 +253,7 @@ impl Input {
253253 sequence : Sequence ,
254254 psbt_input : psbt:: Input ,
255255 satisfaction_weight : usize ,
256- status : Option < InputStatus > ,
256+ status : Option < TxStatus > ,
257257 is_coinbase : bool ,
258258 ) -> Result < Self , FromPsbtInputError > {
259259 let outpoint = prev_outpoint;
@@ -331,7 +331,7 @@ impl Input {
331331 }
332332
333333 /// Confirmation status.
334- pub fn status ( & self ) -> Option < InputStatus > {
334+ pub fn status ( & self ) -> Option < TxStatus > {
335335 self . status
336336 }
337337
0 commit comments