Skip to content

feat(sensor): broadcast blocks, txs, and hashes#727

Merged
minhd-vu merged 1 commit intomainfrom
minhd-vu/sensor-broadcast
Mar 4, 2026
Merged

feat(sensor): broadcast blocks, txs, and hashes#727
minhd-vu merged 1 commit intomainfrom
minhd-vu/sensor-broadcast

Conversation

@minhd-vu
Copy link
Contributor

@minhd-vu minhd-vu commented Oct 9, 2025

Description

Jira / Linear Tickets

Testing

go run . p2p sensor amoy-nodes.json \
  --bootnodes "enode://0ef8758cafc0063405f3f31fe22f2a3b566aa871bd7cd405e35954ec8aa7237c21e1ccc1f65f1b6099ab36db029362bc2fecf001a771b3d9803bbf1968508cef@35.197.249.21:30303,enode://c9c8c18cde48b41d46ced0c564496aef721a9b58f8724025a0b1f3f26f1b826f31786f890f8f8781e18b16dbb3c7bff805c7304d1273ac11630ed25a3f0dc41c@34.89.39.114:30303" \
  --network-id 80002 \
  --sensor-id mvu \
  --write-blocks=true \
  --write-block-events=true \
  --write-txs=true \
  --write-tx-events=true \
  --broadcast-block-hashes=true \
  --broadcast-tx-hashes=true \
  --key-file "mvu.key" \
  --genesis-hash "0x7202b2b53c5a0836e773e319d18922cc756dd67432f9a1f65352b61f4406c697" \
  --fork-id "8b7e4175" \
  --rpc "https://rpc-amoy.polygon.technology" \
  --max-peers 2048 \
  --discovery-dns "enrtree://AKUEZKN7PSKVNR65FZDHECMKOJQSGPARGTPPBI7WS2VUL4EGR6XPC@amoy.polygon-peers.io" \
  --pprof \
  --verbosity 700 \
  --pretty-logs=true
  • Deployed Amoy
  • Deployed Mainnet

@minhd-vu minhd-vu force-pushed the minhd-vu/sensor-broadcast branch 6 times, most recently from 4f0b4c7 to 2bd5510 Compare October 14, 2025 16:30
@minhd-vu
Copy link
Contributor Author

minhd-vu commented Oct 24, 2025

This could be used to respond to latest block RPC calls: #761

@minhd-vu minhd-vu force-pushed the minhd-vu/sensor-broadcast branch 2 times, most recently from b7dc78b to 9b73909 Compare February 19, 2026 21:45
@minhd-vu minhd-vu marked this pull request as ready for review March 2, 2026 15:56
jhkimqd
jhkimqd previously approved these changes Mar 3, 2026
Copy link
Contributor

@jhkimqd jhkimqd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 lgtm

- Add transaction and block broadcasting to connected peers
- Implement LRU cache and BloomSet data structures for efficient tracking
- Add per-peer known tx/block tracking to avoid duplicate sends
- Support async transaction hash announcements
- Add protocol version negotiation
- Fix goroutine leak in broadcast handlers
- Add pprof lock profiling support

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@minhd-vu minhd-vu force-pushed the minhd-vu/sensor-broadcast branch from 00de538 to 77b474b Compare March 4, 2026 02:47
@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 4, 2026

@minhd-vu minhd-vu enabled auto-merge (squash) March 4, 2026 02:49
@minhd-vu minhd-vu merged commit 1a9ca49 into main Mar 4, 2026
16 checks passed
@minhd-vu minhd-vu deleted the minhd-vu/sensor-broadcast branch March 4, 2026 02:51
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.

bug: Amoy DNS empty branch error feat(sensor): rebroadcast block and tx hashes to peers

2 participants