@@ -21,8 +21,9 @@ pub use bitcoin::consensus::{deserialize, serialize};
2121use bitcoin:: hash_types:: TxMerkleNode ;
2222pub use bitcoin:: hex:: FromHex ;
2323pub use bitcoin:: {
24- absolute, block, transaction, Amount , BlockHash , CompactTarget , FeeRate , OutPoint , ScriptBuf ,
25- Transaction , TxIn , TxOut , Txid , Weight , Witness , Wtxid ,
24+ absolute, block, transaction, Address , Amount , Block , BlockHash , CompactTarget , FeeRate ,
25+ OutPoint , Script , ScriptBuf , ScriptHash , Transaction , TxIn , TxOut , Txid , Weight , Witness ,
26+ Wtxid ,
2627} ;
2728
2829/// Information about a previous output.
@@ -312,6 +313,7 @@ pub struct MempoolRecentTx {
312313 pub value : u64 ,
313314}
314315
316+ /// The result for a broadcasted package of [`Transaction`]s.
315317#[ derive( Deserialize , Debug ) ]
316318pub struct SubmitPackageResult {
317319 /// The transaction package result message. "success" indicates all transactions were accepted
@@ -325,6 +327,7 @@ pub struct SubmitPackageResult {
325327 pub replaced_transactions : Option < Vec < Txid > > ,
326328}
327329
330+ /// The result [`Transaction`] for a broadcasted package of [`Transaction`]s.
328331#[ derive( Deserialize , Debug ) ]
329332pub struct TxResult {
330333 /// The transaction id.
@@ -343,6 +346,7 @@ pub struct TxResult {
343346 pub error : Option < String > ,
344347}
345348
349+ /// The mempool fees for a resulting [`Transaction`] broadcasted by a package of [`Transaction`]s.
346350#[ derive( Deserialize , Debug ) ]
347351pub struct MempoolFeesSubmitPackage {
348352 /// Transaction fee.
@@ -358,7 +362,7 @@ pub struct MempoolFeesSubmitPackage {
358362 deserialize_with = "deserialize_feerate"
359363 ) ]
360364 pub effective_feerate : Option < FeeRate > ,
361- /// If [`Self::effective_fee_rate `] is provided, this holds the [`Wtxid`]s of the transactions
365+ /// If [`Self::effective_feerate `] is provided, this holds the [`Wtxid`]s of the transactions
362366 /// whose fees and vsizes are included in effective-feerate.
363367 #[ serde( rename = "effective-includes" ) ]
364368 pub effective_includes : Option < Vec < Wtxid > > ,
0 commit comments