polygon-cli icon indicating copy to clipboard operation
polygon-cli copied to clipboard

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

Open minhd-vu opened this issue 3 months ago • 1 comments

Description

Jira / Linear Tickets

  • closes #705
  • closes https://github.com/0xPolygon/polygon-cli/issues/731

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
  • [x] Deployed Amoy
  • [ ] Deployed Mainnet

minhd-vu avatar Oct 09 '25 14:10 minhd-vu

This could be used to respond to latest block RPC calls: https://github.com/0xPolygon/polygon-cli/pull/761

minhd-vu avatar Oct 24 '25 12:10 minhd-vu