Skip to content

[DISCUSSION] Metamorph => Teranode via Libp2p #771

@sirdeggen

Description

@sirdeggen

UPDATE

Teranode will not accept transactions via libp2p but rather a propagator will accept transactions via HTTP. This means ARC should switch to using these Teranode endpoints to push transactions to the network. The api is simple: EF only, binary octet stream.

SO the new pattern is:

  1. Submit txs via http
  2. listen on libp2p for subtree announcement (then update status to "in-subtree")
  3. listen on libp2p for block announcement (update to MINED and send a callback merklepath)

Summary

Adapt Metamorph to broadcast to and listen on libp2p network of Teranodes rather than via wire protocol to SV Nodes.

Motivation

SV Nodes will be replaced with Teranodes eventually. For now there is a bridge but long term we need to be able to use the Libp2p network, assuming this continues in the period prior to IPv6 multicast adoption which still has some ISP related support hurdles.

Description

This will require coordination with Teranode team because my understanding is that there is a private DHT between instances today, although long term this will be public. Worth noting that ARC is somewhat of a testing ground for this, it's possible that some applicationsmay choose to use the libp2p code to broadcast transactions to Teranodes directly. The benefit of starting here is we can likely test things out within the private DHT prior to publication.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions