Skip to content

Commit

Permalink
Added Michael's comment
Browse files Browse the repository at this point in the history
  • Loading branch information
effectfully committed Oct 28, 2020
1 parent 989d278 commit b159058
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plutus-core/src/Language/PlutusCore/Builtins.hs
Expand Up @@ -298,7 +298,9 @@ instance Serialise DefaultFun where
go 24 = pure Trace
go _ = fail "Failed to decode BuiltinName"

-- TODO: should we compute this from the number of builtins (which we can obtain)?
-- It's set deliberately to give us "extra room" in the binary format to add things without running
-- out of space for tags (expanding the space would change the binary format for people who're
-- implementing it manually). So we have to set it manually.
-- | Using 5 bits to encode builtin tags.
builtinTagWidth :: NumBits
builtinTagWidth = 5
Expand Down

0 comments on commit b159058

Please sign in to comment.