explorer

command
v0.2.4-rc2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2020 License: Apache-2.0 Imports: 28 Imported by: 0

README

Explorer

The explorer is the component that is responsible to host all the public information about the nodes running 0-OS, the farms, the users identity and the capacity reservations.

The explorer exposes both a web UI and a REST API.

  • The web UI allows users to discover all the nodes and farms in the grid.
  • The API is used by nodes and users.

Prerequisites

Following commands can be passed to the explorer:

| Command | Description | --- | --- | --- | | --listen | listen address, default :8080 | --dbConf | connection string to mongo database, default mongodb://localhost:27017 | --name | database name, default explorer | --seed | Seed of a valid Stellar address that has balance to support running the explorer | --network | Stellar network, default testnet. Values can be (production, testnet) | --asset | Stellar asset to make reservations payment with, default TFT. Assets supported for now: (TFT, FreeTFT) | --backupSigners | Repeatable flag, expects a valid Stellar address. If 3 are provided, multisig on the escrow accounts will be enabled. This is needed if one wishes to recover funds on the escrow accounts.

If a seed is passed to the explorer, payments for reservation will be enabled.

The seed passed to the explorer must have balance of the specified asset!

To recover funds for an escrow account, check following docs: tools/stellar/readme.md

managing encrypted seeds for escrow accounts

The seeds of the escrow accounts are encrypted with a key based on the seed used to start the explorer. This means that changing this seed will cause decryption of these seeds, and thus their usage by the explorer, to fail. If for any reason the seed used to start the explorer changes, the operator will need to clear existing escrow accounts and their associated seeds. To this end, the explorer can be restarted with the -flush-escrows flag. When this flag is passed, confirmation will be asked on the command line if a user really wants to remove this data from the db. If the operator changes his/her mind, the explorer will exit, and needs to be restarted without this flag.

disposing of encrypted seeds

It is possible, that the addresses used by an escrow are currently active, i.e. a user has created a reservation and is in the process of paying for it. Although it is technically possible to swap the addresses in the escrow, the user will still try to pay to the old address, so this case can't really be handled. In order to not lose funds however, it is encouraged to back up the accounts before they are removed. If the explorer is started with the multisig feature enabled by providing sufficient backup signers, the funds (if any) on the escrow address can still be recovered, and returned to their rightfull owners, by creating multisigs with the backup signers for the addresses. Note that the public addresses are not encrypted, as such, even if the seed used to start the explorer is lost completely, the escrow funds can still be recovered

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL