ergoplatform / ergoplatform/sigma-rust

Add max box size(4k) check in box builder and box constructors

Open
#596 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
78
Forks
63
Avg merge
22h 5m
Merged PRs (30d)
3

Description

Discovered while working on #591

The box size check is a part of tx validation on the node - https://github.com/ergoplatform/ergo/blob/a4d1e62fb8f888a33db3fc5881c2090ec3dd0ebb/src/main/scala/org/ergoplatform/modifiers/mempool/ErgoTransaction.scala#L168

Thus, we should not allow constructing boxes larger than this limit.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.