Skip to content

Commit 08f57a0

Browse files
committed
Assert that IsComplete() in GetSpendData()
1 parent d8f4b97 commit 08f57a0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/script/standard.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,7 @@ WitnessV1Taproot TaprootBuilder::GetOutput() { return WitnessV1Taproot{m_output_
504504

505505
TaprootSpendData TaprootBuilder::GetSpendData() const
506506
{
507+
assert(IsComplete());
507508
TaprootSpendData spd;
508509
spd.merkle_root = m_branch.size() == 0 ? uint256() : m_branch[0]->hash;
509510
spd.internal_key = m_internal_key;

0 commit comments

Comments
 (0)