Skip to content

Repair improvements#95

Merged
raymondjacobson merged 4 commits intomainfrom
rj-repair-improvement
Jan 9, 2026
Merged

Repair improvements#95
raymondjacobson merged 4 commits intomainfrom
rj-repair-improvement

Conversation

@raymondjacobson
Copy link
Copy Markdown
Contributor

@raymondjacobson raymondjacobson commented Jan 8, 2026

  • Mediorum / update should use peers from eth service instead of its own fetching mechanism
  • Remove artificial delay for syncing files
  • Sync files reverse chronologically instead of chronologically
  • Expose EthService to http
  • Try to repair from peers even if we can't find R many

I left it out of this PR, but I think we can probably make repairs happen concurrently. They're very nerfed atm.

Testing:

  • verified logs that peering is working and mediorum sees other nodes
  • curl https://node1.oap.devnet/eth.v1.EthService/GetRegisteredEndpoints | jq
make up

go run ./examples/upload/main.go  

# copy returned cid

curl http://node1.oap.devnet/internal/blobs/info/baeaaaiqseaxzf3hjvuab2d7xyj3qx7whd4w3mpa2xwcprl4okiqc3whqlxjzc
curl http://node2.oap.devnet/internal/blobs/info/baeaaaiqseaxzf3hjvuab2d7xyj3qx7whd4w3mpa2xwcprl4okiqc3whqlxjzc
curl http://node3.oap.devnet/internal/blobs/info/baeaaaiqseaxzf3hjvuab2d7xyj3qx7whd4w3mpa2xwcprl4okiqc3whqlxjzc
curl http://node4.oap.devnet/internal/blobs/info/baeaaaiqseaxzf3hjvuab2d7xyj3qx7whd4w3mpa2xwcprl4okiqc3whqlxjzc

@@ -655,40 +661,54 @@ func (ss *MediorumServer) refreshPeersAndSigners(ctx context.Context) error {
for {
select {
case <-ticker.C:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

mind changing this ticker to be once every 24 hours to cut or RPC usage?

Copy link
Copy Markdown
Contributor Author

@raymondjacobson raymondjacobson Jan 9, 2026

Choose a reason for hiding this comment

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

this just pulls from the eth service actually though, so i dont think it touches RPC at all

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

just reading from the db

select * from eth_registered_endpoints;

@raymondjacobson raymondjacobson merged commit 737bfbb into main Jan 9, 2026
4 checks passed
@raymondjacobson raymondjacobson deleted the rj-repair-improvement branch January 9, 2026 22:22
raymondjacobson added a commit that referenced this pull request Feb 6, 2026
* Improve repair

* Refactor and update uptime

* Expose eth service on httpget

* Fix repair peer count
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