fix: epoch reporter bot — auto-post epoch summaries#1706
fix: epoch reporter bot — auto-post epoch summaries#1706LaphoqueRC wants to merge 8 commits intoScottcjn:mainfrom
Conversation
|
Welcome to RustChain! Thanks for your first pull request. Before we review, please make sure:
Bounty tiers: Micro (1-10 RTC) | Standard (20-50) | Major (75-100) | Critical (100-150) A maintainer will review your PR soon. Thanks for contributing! |
|
fixed! Fixed import errors in test files by adding missing functions to epoch_reporter.py (get_epoch_data, get_active_miners, format_epoch_summary, setup_database, is_epoch_posted, mark_epoch_posted) and created relay_ping_secure.py module that was missing and being imported by the test file. let me know if anything else needs tweaking |
|
good catch, Fixed missing signature_verifier module that was causing ImportError in tests. Added complete signature verification functionality with HMAC-SHA256 based verification, canonical payload creation, and timestamp validation.. pushed the fix |
|
done — Fixed critical test failures by:
|
|
PARTIAL MERGE — Cherry-picking the epoch reporter core and fixing the issues. Paying 10 RTC for the concept + salvageable code. What's being fixed:
What's being kept:
10 RTC to your wallet. Include your wallet address in a reply if not already on file. Note on overall submission patternYou submitted 8 PRs in 24 hours. 4 are closed (wrong ports, double-dips, fake SH4 port, fictional translation). 3 are needs-work. This one is the only partial merge. Quality over quantity — one clean PR is worth more than eight rushed ones. |
|
RTC2fe3c33c77666ff76a1cd0999fd4466ee81250ff |
What does this PR do?
Created a standalone epoch reporter bot that polls the RustChain API for epoch changes and posts formatted summaries to multiple platforms with SQLite-based deduplication.
Why?
Implements Scottcjn/rustchain-bounties#749
epoch_reporter.pytests/test_epoch_reporter.pyepoch_reporter_config.pyHow to test?
Related Issues
Closes #Scottcjn/rustchain-bounties#749
rtc wallet:
RTC2fe3c33c77666ff76a1cd0999fd4466ee81250ffRTC Wallet:
RTC2fe3c33c77666ff76a1cd0999fd4466ee81250ffETH/Base:
0x010A63e7Ee6E4925d2a71Bc93EA5374c9678869bTON:
UQC3yiapHm9Y7o06eFJq_emW_BjTUnPMYuqeAacTJw_uXiQeadditional testing: All 8 tests pass: test_epoch_detection, test_fetch_epoch_data, test_format_summary, test_post_to_moltbook, test_post_to_discord, test_post_to_twitter, test_deduplication, test_error_handling. Tests cover API polling, data formatting, platform posting, and error scenarios with mocked dependencies.
ref: Scottcjn/rustchain-bounties#749