@@ -833,23 +833,30 @@ impl SignRawTransactionResult {
833
833
#[ derive( Clone , PartialEq , Eq , Debug , Deserialize , Serialize ) ]
834
834
pub struct TestMempoolAcceptResult {
835
835
pub txid : bitcoin:: Txid ,
836
- pub allowed : bool ,
837
- #[ serde( rename = "reject-reason" ) ]
838
- pub reject_reason : Option < String > ,
836
+ pub wtxid : bitcoin:: Txid ,
837
+ #[ serde( rename = "package-error" ) ]
838
+ pub package_error : Option < String > ,
839
+ pub allowed : Option < bool > ,
839
840
/// Virtual transaction size as defined in BIP 141 (only present when 'allowed' is true)
840
841
/// Added in Bitcoin Core v0.21
841
842
pub vsize : Option < u64 > ,
842
843
/// Transaction fees (only present if 'allowed' is true)
843
844
/// Added in Bitcoin Core v0.21
844
845
pub fees : Option < TestMempoolAcceptResultFees > ,
846
+ #[ serde( rename = "reject-reason" ) ]
847
+ pub reject_reason : Option < String > ,
845
848
}
846
849
847
850
#[ derive( Clone , PartialEq , Eq , Debug , Deserialize , Serialize ) ]
848
851
pub struct TestMempoolAcceptResultFees {
849
852
/// Transaction fee in BTC
850
853
#[ serde( with = "bitcoin::amount::serde::as_btc" ) ]
851
854
pub base : Amount ,
852
- // unlike GetMempoolEntryResultFees, this only has the `base` fee
855
+ /// The effective feerate per KvB
856
+ #[ serde( rename = "effective-feerate" , with = "bitcoin::amount::serde::as_btc" ) ]
857
+ pub effective_feerate : Amount ,
858
+ #[ serde( rename = "effective-includes" ) ]
859
+ pub effective_includes : Vec < String > ,
853
860
}
854
861
855
862
#[ derive( Copy , Clone , PartialEq , Eq , Debug , Deserialize , Serialize ) ]
0 commit comments