stacks-network / stacks-network/stacks-core

Add extensive test cases for possible "invalid" blocks

Open
#5,136 0 comments 0 reactions 1 assignee View on GitHub

@ASuciuX is already working on this.

Since Sep 18, 2024.

3.0-Testing
Dominant language
Rust
Stars
3.1k
Forks
762
Avg merge
4d 6h
Merged PRs (30d)
76

Description

Not all possible reasons for not being valid are tested currently. e.g. https://github.com/stacks-network/stacks-core/blob/2be69cbf744ac339476362a3fb281257c9e1bebc/testnet/stacks-node/src/tests/signer/v0.rs#L39

Create more tests.

Possible errors for ValidateRejectCode:

All functions that aren't yet tested are part of theimpl NakamotoBlockProposal.


To do: Construct bad block proposal and submit to the signers. See how the signers deal with it.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.