Skip to content

Conversation

@qlrd
Copy link
Contributor

@qlrd qlrd commented Mar 5, 2025

Add a test for #252

What is the purpose of this pull request?

  • Bug fix
  • Documentation update
  • New feature
  • Test
  • Other:

Which crates are being modified?

  • floresta-chain
  • floresta-cli
  • floresta-common
  • floresta-compact-filters
  • floresta-electrum
  • floresta-watch-only
  • floresta-wire
  • floresta
  • florestad
  • Other:

Description

This PR add a structure to test calls of getblockheader in tests/test_framework/floresta_rpc.py, a simple test in tests/floresta_cli_getblockheader.py and a helper in pyproject.toml as florestacli-getblockheader-test.

This simple test just call the getblockheader with the hash of regtest's genesis block and expect, among some data, a prev_blockhash full of zeros.

Notes to the reviewers

It's important to note that this PR can be closely related to PR #391.

Checklist

  • I've signed all my commits
  • I ran just lint
  • I ran cargo test
  • I've checked the integration tests
  • I've followed the contribution guidelines
  • I'm linking the issue being fixed by this PR (if any)

This commit add a structure to test calls of `getblockheader` in
tests/test_framework/floresta_rpc.py, a simple test in
tests/floresta_cli_getblockheader.py and a helper in pyproject.toml
as `florestacli-getblockheader-test`.

This simple test just call the `getblockheader` with the hash of
regtest's genesis block and expect, among some data, a prev_blockhash
full of zeros.
@Davidson-Souza
Copy link
Member

ACK 9a457dc

@Davidson-Souza Davidson-Souza merged commit 63c2d63 into vinteumorg:master Mar 6, 2025
8 checks passed
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.

2 participants