diff --git a/src/blockchain/rpc.rs b/src/blockchain/rpc.rs index 5c9ee2dd..74ef8262 100644 --- a/src/blockchain/rpc.rs +++ b/src/blockchain/rpc.rs @@ -271,7 +271,6 @@ impl Blockchain for RpcBlockchain { received, sent, fee: tx_result.fee.map(|f| f.as_sat().abs() as u64), - verified: true, }; debug!( "saving tx: {} tx_result.fee:{:?} td.fees:{:?}", diff --git a/src/blockchain/script_sync.rs b/src/blockchain/script_sync.rs index 4c9b0222..0d450ef1 100644 --- a/src/blockchain/script_sync.rs +++ b/src/blockchain/script_sync.rs @@ -214,7 +214,6 @@ impl<'a, D: BatchDatabase> TxReq<'a, D> { // we're going to fill this in later confirmation_time: None, fee: Some(fee), - verified: false, }) }) .collect::, _>>()?; diff --git a/src/database/memory.rs b/src/database/memory.rs index 916ddcba..afde6fee 100644 --- a/src/database/memory.rs +++ b/src/database/memory.rs @@ -515,7 +515,6 @@ macro_rules! populate_test_db { received: 0, sent: 0, confirmation_time, - verified: current_height.is_some(), }; db.set_tx(&tx_details).unwrap(); diff --git a/src/database/mod.rs b/src/database/mod.rs index b0b9c9ea..2318dcc9 100644 --- a/src/database/mod.rs +++ b/src/database/mod.rs @@ -348,7 +348,6 @@ pub mod test { timestamp: 123456, height: 1000, }), - verified: true, }; tree.set_tx(&tx_details).unwrap(); diff --git a/src/types.rs b/src/types.rs index f9f34427..eadfc57b 100644 --- a/src/types.rs +++ b/src/types.rs @@ -211,15 +211,6 @@ pub struct TransactionDetails { /// If the transaction is confirmed, contains height and timestamp of the block containing the /// transaction, unconfirmed transaction contains `None`. pub confirmation_time: Option, - /// Whether the tx has been verified against the consensus rules - /// - /// Confirmed txs are considered "verified" by default, while unconfirmed txs are checked to - /// ensure an unstrusted [`Blockchain`](crate::blockchain::Blockchain) backend can't trick the - /// wallet into using an invalid tx as an RBF template. - /// - /// The check is only performed when the `verify` feature is enabled. - #[serde(default = "bool::default")] // default to `false` if not specified - pub verified: bool, } /// Block height and timestamp of a block diff --git a/src/wallet/export.rs b/src/wallet/export.rs index e39d178e..85898345 100644 --- a/src/wallet/export.rs +++ b/src/wallet/export.rs @@ -230,7 +230,6 @@ mod test { timestamp: 12345678, height: 5000, }), - verified: true, }) .unwrap(); diff --git a/src/wallet/mod.rs b/src/wallet/mod.rs index 8c3c968b..a24f922d 100644 --- a/src/wallet/mod.rs +++ b/src/wallet/mod.rs @@ -712,7 +712,6 @@ where received, sent, fee: Some(fee_amount), - verified: true, }; Ok((psbt, transaction_details))