File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -46,12 +46,12 @@ mod utils;
46
46
use crate :: poll:: { ChainTip , Poll , ValidatedBlockHeader } ;
47
47
48
48
use bitcoin:: blockdata:: block:: { Block , BlockHeader } ;
49
+ use bitcoin:: blockdata:: transaction:: Transaction ;
49
50
use bitcoin:: hash_types:: BlockHash ;
50
51
use bitcoin:: util:: uint:: Uint256 ;
51
52
52
53
use lightning:: chain;
53
54
use lightning:: chain:: Listen ;
54
- use lightning:: chain:: transaction:: OwnedTransactionData ;
55
55
56
56
use std:: future:: Future ;
57
57
use std:: ops:: Deref ;
@@ -164,6 +164,11 @@ pub enum BlockData {
164
164
FilteredBlock ( BlockHeader , OwnedTransactionData ) ,
165
165
}
166
166
167
+ /// Similar to [`TransactionData`] only for [`Transaction`] data owned outside of a block.
168
+ ///
169
+ /// [`TransactionData`]: chain::transaction::TransactionData
170
+ pub type OwnedTransactionData = Vec < ( usize , Transaction ) > ;
171
+
167
172
/// A lightweight client for keeping a listener in sync with the chain, allowing for Simplified
168
173
/// Payment Verification (SPV).
169
174
///
Original file line number Diff line number Diff line change @@ -45,9 +45,6 @@ use prelude::Vec;
45
45
/// ```
46
46
pub type TransactionData < ' a > = [ ( usize , & ' a Transaction ) ] ;
47
47
48
- /// Similar to [`TransactionData`] only for [`Transaction`] data owned outside of a block.
49
- pub type OwnedTransactionData = Vec < ( usize , Transaction ) > ;
50
-
51
48
/// A reference to a transaction output.
52
49
///
53
50
/// Differs from bitcoin::blockdata::transaction::OutPoint as the index is a u16 instead of u32
You can’t perform that action at this time.
0 commit comments