Provide better comments

This commit is contained in:
Arnaud 2025-09-23 14:23:23 +02:00
parent 82fea5ee4c
commit 11bbc255cb
No known key found for this signature in database
GPG Key ID: B8FBC178F10CA7AE
3 changed files with 14 additions and 3 deletions

View File

@ -1,4 +1,8 @@
## This file contains the lifecycle request type that will be handled.
{.push raises: [].}
## This file contains the debug info available with Codex.
## The DEBUG type will return info about the P2P node.
## The PEER type will return info about a specific peer if available.
import std/[options]
import chronos

View File

@ -1,7 +1,9 @@
## This file contains the lifecycle request type that will be handled.
## CREATE_NODE: create a new Codex node with the provided config.json.
## START_NODE: start the provided Codex node.
## STOP_NODE: stop the provided Codex node.
import std/[options, json, strutils, net, os]
import confutils/defs
import codexdht/discv5/spr
import stew/shims/parseutils
import contractabi/address
@ -10,6 +12,7 @@ import chronicles
import results
import confutils
import confutils/std/net
import confutils/defs
import libp2p
import json_serialization
import json_serialization/std/[options, net]
@ -17,6 +20,7 @@ import ../../alloc
import ../../../codex/conf
import ../../../codex/utils
import ../../../codex/utils/[keyutils, fileutils]
import ../../../codex/units
from ../../../codex/codex import CodexServer, new, start, stop

View File

@ -1,4 +1,7 @@
## This file contains the lifecycle request type that will be handled.
{.push raises: [].}
## This file contains the P2p request type that will be handled.
## CONNECT: connect to a peer with the provided peer ID and optional addresses.
import std/[options]
import chronos