Skip to content

Instantly share code, notes, and snippets.

@adamkrellenstein
Created August 2, 2024 12:54
Show Gist options
  • Save adamkrellenstein/fe4b64ffd02d17db51c7ab2dda30d093 to your computer and use it in GitHub Desktop.
Save adamkrellenstein/fe4b64ffd02d17db51c7ab2dda30d093 to your computer and use it in GitHub Desktop.
Subassets on Numeric Assets

Subassets on Numeric Assets

Motivation

There is no particular reason to disallow subassets on numeric assets and there is a strong community demand to be able to do so (see for example https://github.com/mikeinspace/Glyphs/blob/main/README.md)

Design

Currently the validate_subasset_parent_name function checks that the parent asset is not numeric: https://github.com/CounterpartyXCP/counterparty-core/blob/master/counterparty-core/counterpartycore/lib/util.py#L238 This is the only place where this check is performed.

A protocol change allow_subasset_on_numerics will be added in the protocol_changes.json file. From this block on, the verification will be removed from the function validate_subasset_parent_name.

API Changes

No API changes.

Database Changes

No database changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment