@@ -833,23 +833,30 @@ impl SignRawTransactionResult {
833833#[ derive( Clone , PartialEq , Eq , Debug , Deserialize , Serialize ) ]
834834pub struct TestMempoolAcceptResult {
835835 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 > ,
839840 /// Virtual transaction size as defined in BIP 141 (only present when 'allowed' is true)
840841 /// Added in Bitcoin Core v0.21
841842 pub vsize : Option < u64 > ,
842843 /// Transaction fees (only present if 'allowed' is true)
843844 /// Added in Bitcoin Core v0.21
844845 pub fees : Option < TestMempoolAcceptResultFees > ,
846+ #[ serde( rename = "reject-reason" ) ]
847+ pub reject_reason : Option < String > ,
845848}
846849
847850#[ derive( Clone , PartialEq , Eq , Debug , Deserialize , Serialize ) ]
848851pub struct TestMempoolAcceptResultFees {
849852 /// Transaction fee in BTC
850853 #[ serde( with = "bitcoin::amount::serde::as_btc" ) ]
851854 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 > ,
853860}
854861
855862#[ derive( Copy , Clone , PartialEq , Eq , Debug , Deserialize , Serialize ) ]
0 commit comments