Replace remaining "520" magic numbers with MAX_SCRIPT_ELEMENT_SIZE

This commit is contained in:
Jon Atack
2024-05-02 11:21:02 -06:00
parent 3d28725134
commit ffc674595c
4 changed files with 4 additions and 4 deletions

View File

@@ -85,7 +85,7 @@ CTxDestination AddAndGetDestinationForScript(FillableSigningProvider& keystore,
{
// Add script to keystore
keystore.AddCScript(script);
// Note that scripts over 520 bytes are not yet supported.
// Note that scripts over MAX_SCRIPT_ELEMENT_SIZE bytes are not yet supported.
switch (type) {
case OutputType::LEGACY:
return ScriptHash(script);