Closed 2color closed 2 months ago
whats the difference between the result of createTestHost and d.h ? I'm guessing the d.h is the libp2p daemon host, but what exactly is the testHost?
They're both libp2p hosts/peers.
They are configured slightly differently. For example, d.h
is a DHT Client, so it connects to other peers (which helps with things like discovering your own public IPs etc.)
The test host we create is a "fresh clean" peer that is used just for the purpose of the test.
Closing this for now. Need to rethink this (ideally in #53)
Fixes #53