Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set size limit to 1024 on signet and testnet #896

Merged
merged 2 commits into from
Dec 6, 2022

Conversation

casey
Copy link
Collaborator

@casey casey commented Dec 6, 2022

Signet and testnet are both low-volume networks without a functioning fee market. Because of the potential for spam, we don't want to allow large inscriptions on those networks. Set the size limit to 1024 bytes for both signet and testnet, which is large enough that we'll exercise the content data chunking, but small enough that spam shouldn't be an issue. Regtest is a private test network, so spam is not an issue, and mainnet has a robust fee market, so large inscriptions will have to pay correspondingly high fees.

@casey casey changed the title Increase allowed inscription size to 1024 bytes Set size limit to 1024 on signet and testnet Dec 6, 2022
@casey casey linked an issue Dec 6, 2022 that may be closed by this pull request
@casey casey enabled auto-merge (squash) December 6, 2022 22:17
@casey casey merged commit 90c90c3 into master Dec 6, 2022
@casey casey deleted the increase-inscription-size branch December 6, 2022 22:18
pub(crate) fn inscription_content_size_limit(self) -> Option<usize> {
match self {
Self::Mainnet | Self::Regtest => None,
Self::Testnet | Self::Signet => Some(1024),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

annoying

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Raise signet limit to 750 bytes
2 participants