diff options
author | Pieter Wuille <pieter@wuille.net> | 2021-06-17 18:14:53 -0700 |
---|---|---|
committer | Pieter Wuille <pieter@wuille.net> | 2021-08-20 14:29:23 -0400 |
commit | 08f57a0057c58f19cd8ae3de89548d014980478a (patch) | |
tree | a82757bec253541152d84c9a2b0fc8b6302f9764 /src/script/standard.cpp | |
parent | d8f4b976d5ae9e6eee741dfdda53b8bc8573221b (diff) |
Assert that IsComplete() in GetSpendData()
Diffstat (limited to 'src/script/standard.cpp')
-rw-r--r-- | src/script/standard.cpp | 1 |
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; |