On P2P, headers and reorgs

P2P

Direct connections

Relaying services

Client-server centralisation

To SPV or not to SPV

Headers

Reliable connectivity

A web-based headers API

  1. The application connects to the web socket and receives the tip for the server.
  2. The application requests the missing headers up to the tip.
  3. The application adds new tips from the web socket to it’s local blockchain headers.

Reorgs

  1. The application connects to the web socket and receives the tip for the server.
  2. The application requests the single header above their current height. If it does not connect there was a reorg to some part of their existing state. The application then requests headers (probably with a binary search) to locate the fork height and it then uses this as their starting point
  3. The application synchronises headers using the REST API from their starting point to fill in the missing headers.
  4. The application adds new tips from the web socket to it’s local blockchain headers.

Header service provisioning

Final thoughts

--

--

--

ElectrumSV developer

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Github; fork, edit, push, pull

Reduce Cost and Increase Productivity with Value Added IT Services from buzinessware — {link} -

How to set-up Ansible on Redhat servers

Reduce Cost and Increase Productivity with Value Added IT Services from buzinessware — {link} -

UK wasting 37 billion a year on failed agile IT projects

Let’s Develop an Online Code Editor & Compiler like HackerRank

Sticky tape and string: Learning faster from TripAdvisor reviews

Real world alerts for application monitors with Android Things

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Roger Taylor

Roger Taylor

ElectrumSV developer

More from Medium

DFINITY FUNGIBLE TOKEN STANDARD V0.2.1 released

Building for the future, part 1

Web 3.0: The World’s Computer, The Cloud Trinity or Blockchain Epiphany

Decentralization is a Red Herring