File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -247,7 +247,7 @@ where
247
247
#[ derive( Debug , Clone ) ]
248
248
pub struct Plan {
249
249
/// This plan's witness template
250
- pub template : Vec < Placeholder < DefiniteDescriptorKey > > ,
250
+ pub ( crate ) template : Vec < Placeholder < DefiniteDescriptorKey > > ,
251
251
/// The absolute timelock this plan uses
252
252
pub absolute_timelock : Option < LockTime > ,
253
253
/// The relative timelock this plan uses
@@ -257,6 +257,11 @@ pub struct Plan {
257
257
}
258
258
259
259
impl Plan {
260
+ /// Returns the witness template
261
+ pub fn witness_template ( & self ) -> & Vec < Placeholder < DefiniteDescriptorKey > > {
262
+ & self . template
263
+ }
264
+
260
265
/// Returns the witness version
261
266
pub fn witness_version ( & self ) -> Option < WitnessVersion > {
262
267
self . descriptor . desc_type ( ) . segwit_version ( )
You can’t perform that action at this time.
0 commit comments