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
247247#[ derive( Debug , Clone ) ]
248248pub struct Plan {
249249 /// This plan's witness template
250- pub template : Vec < Placeholder < DefiniteDescriptorKey > > ,
250+ pub ( crate ) template : Vec < Placeholder < DefiniteDescriptorKey > > ,
251251 /// The absolute timelock this plan uses
252252 pub absolute_timelock : Option < LockTime > ,
253253 /// The relative timelock this plan uses
@@ -257,6 +257,11 @@ pub struct Plan {
257257}
258258
259259impl Plan {
260+ /// Returns the witness template
261+ pub fn witness_template ( & self ) -> & Vec < Placeholder < DefiniteDescriptorKey > > {
262+ & self . template
263+ }
264+
260265 /// Returns the witness version
261266 pub fn witness_version ( & self ) -> Option < WitnessVersion > {
262267 self . descriptor . desc_type ( ) . segwit_version ( )
You can’t perform that action at this time.
0 commit comments