mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
Merge 2aff9a36c3 into merged_master (Bitcoin PR bitcoin/bitcoin#30352)
This commit is contained in:
commit
cd6ec40d0f
24 changed files with 202 additions and 6 deletions
|
|
@ -1315,6 +1315,19 @@ BOOST_AUTO_TEST_CASE(sign_invalid_miniscript)
|
|||
BOOST_CHECK(!SignSignature(keystore, CTransaction(prev), curr, 0, SIGHASH_ALL, sig_data));
|
||||
}
|
||||
|
||||
/* P2A input should be considered signed. */
|
||||
BOOST_AUTO_TEST_CASE(sign_paytoanchor)
|
||||
{
|
||||
FillableSigningProvider keystore;
|
||||
SignatureData sig_data;
|
||||
CMutableTransaction prev, curr;
|
||||
prev.vout.emplace_back(CAsset(), 0, GetScriptForDestination(PayToAnchor{}));
|
||||
|
||||
curr.vin.emplace_back(COutPoint{prev.GetHash(), 0});
|
||||
|
||||
BOOST_CHECK(SignSignature(keystore, CTransaction(prev), curr, 0, SIGHASH_ALL, sig_data));
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE(script_standard_push)
|
||||
{
|
||||
ScriptError err;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue