feat: auto relay network query for new relays

This commit is contained in:
Vasco Santos
2020-09-11 19:02:56 +02:00
committed by Vasco Santos
parent 55020056ee
commit 0bf0b7cf89
9 changed files with 458 additions and 184 deletions

12
src/circuit/constants.js Normal file
View File

@ -0,0 +1,12 @@
'use strict'
const minute = 60 * 1000
module.exports = {
ADVERTISE_BOOT_DELAY: 15 * minute,
ADVERTISE_TTL: 30 * minute,
CIRCUIT_PROTO_CODE: 290,
HOP_METADATA_KEY: 'hop_relay',
HOP_METADATA_VALUE: 'true',
RELAY_RENDEZVOUS_NS: '/libp2p/relay'
}