aboutsummaryrefslogtreecommitdiff
path: root/src/script/standard.cpp
diff options
context:
space:
mode:
authorPieter Wuille <pieter@wuille.net>2021-06-17 18:14:53 -0700
committerPieter Wuille <pieter@wuille.net>2021-08-20 14:29:23 -0400
commit08f57a0057c58f19cd8ae3de89548d014980478a (patch)
treea82757bec253541152d84c9a2b0fc8b6302f9764 /src/script/standard.cpp
parentd8f4b976d5ae9e6eee741dfdda53b8bc8573221b (diff)
Assert that IsComplete() in GetSpendData()
Diffstat (limited to 'src/script/standard.cpp')
-rw-r--r--src/script/standard.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/script/standard.cpp b/src/script/standard.cpp
index b8349bb9ab..67a79a157c 100644
--- a/src/script/standard.cpp
+++ b/src/script/standard.cpp
@@ -504,6 +504,7 @@ WitnessV1Taproot TaprootBuilder::GetOutput() { return WitnessV1Taproot{m_output_
TaprootSpendData TaprootBuilder::GetSpendData() const
{
+ assert(IsComplete());
TaprootSpendData spd;
spd.merkle_root = m_branch.size() == 0 ? uint256() : m_branch[0]->hash;
spd.internal_key = m_internal_key;