Skip to content

Commit 1bb08f2

Browse files
Make Plan::template pub(crate)
1 parent becea42 commit 1bb08f2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/plan.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ where
247247
#[derive(Debug, Clone)]
248248
pub 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

259259
impl 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()

0 commit comments

Comments
 (0)