Skip to content

Solution to easy exercises: 00, 01, and 02 - #5

Open
0xlaga wants to merge 2 commits into
danielabrozzoni:masterfrom
0xlaga:master
Open

Solution to easy exercises: 00, 01, and 02#5
0xlaga wants to merge 2 commits into
danielabrozzoni:masterfrom
0xlaga:master

Conversation

@0xlaga

@0xlaga 0xlaga commented Feb 24, 2026

Copy link
Copy Markdown

Summary

This pull request adds solutions for the first three functional test exercises from the workshop materials, including the initial sanity check (Exercise 00). Each script is implemented according to Bitcoin Core functional test conventions and workshop guidelines.

Details

0. Exercise 00: Hello World

File: test/functional/feature_hello_world.py
Runs a basic test tthat prints "Hello Brazil!!!"

1. Exercise 01: Basic Wallet RPC Flow

File: test/functional/wallet_rpc_basics.py
Uses two nodes and two wallets.
Mines blocks to fund one wallet, performs a transaction, checks mempool status, and verifies balances before and after confirmation.
Demonstrates correct use of wallet RPCs and balance assertions.

2. Exercise 02: Node Arguments + Debug Log with Prune Mode

File: feature_prune_debug_log.py
Tests node restart with and without prune mode.
Uses assert_debug_log() to verify presence/absence of prune-related log messages.
Confirms prune mode status via RPC before and after enabling.

Additional Changes

All new test scripts are added to the test runner for harness integration.
Code follows workshop hints and Bitcoin Core functional test conventions.

Testing

All scripts were executed via the functional test runner and verified for correctness.
Tests pass and provide clear log output for each step.Summary
This pull request adds solutions for the first three functional test exercises from the workshop materials, including the initial sanity check (Exercise 00). Each script is implemented according to Bitcoin Core functional test conventions and workshop guidelines.

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