peer

Управление Convex peer — создание, запуск, перечисление, резервное копирование или создание генезиса сети. Используйте при работе с peer в рамках сети или при настройке новой сети.

npx skills add https://github.com/convex-dev/convex --skill peer

Running a Convex Peer

A peer participates in consensus (CPoS), holds state in an Etch store, and optionally serves the REST API.

For local development and testing you almost always want the local-network skill instead — it starts a throwaway network in one command. Use this skill when running a peer against a real network, or setting up a new one.

peer accepts -c / --config for a configuration file.

Joining an Existing Network

java -jar convex.jar peer create --host <existing-peer>

Configures and creates a peer against a running network. Needs an existing peer to bootstrap from and a valid peer controller account; generates a new peer key unless one is supplied.

Then start it:

java -jar convex.jar peer start

Useful start options:

OptionEffect
--peer-port NPort for the peer protocol
--api-port NPort for the REST API
--url / --base-urlExternally visible URL for this peer
-a, --addressPeer controller account
--genesisStart from a genesis state
--resetReset stored state before starting
--recalcRecalculate state from a given block position
--norestDo not start the REST server
--no-trayNo system tray icon
--protocol-version NPin the protocol version

--reset discards local peer state. Confirm before using it on anything that is not disposable.

Creating a New Network

java -jar convex.jar peer genesis

Instantiates a new Convex network — a genesis state with this peer as the first participant. --governance-key sets the governance key; --protocol-version pins the protocol version.

This creates a new network, not a connection to an existing one. Do not run it when the intent was to join Protonet or a testnet.

Managing

java -jar convex.jar peer list                    # peers in the current store
java -jar convex.jar peer backup -o <file>        # back up stored peer data

Back up before any operation that resets or migrates peer state. See the etch skill for working on the underlying store directly.

Keys

Peer keys are separate from account keys: --peer-key and --peer-keypass select the peer's key from the keystore. The peer controller account is set with -a / --address.

Больше skills от convex-dev

account
convex-dev
Создание или проверка аккаунтов Convex. Используйте, когда пользователь хочет настроить новый аккаунт, проверить детали аккаунта или управлять ключами.
account
convex-dev
Создание или просмотр аккаунтов Convex. Используйте, когда пользователь хочет создать новый аккаунт, проверить детали аккаунта или управлять ключами.
token
convex-dev
Создание и управление взаимозаменяемыми токенами на Convex. Используйте, когда пользователь хочет создать новый токен, проверить балансы токенов или управлять эмиссией токенов.
build-convex
convex-dev
Собрать проект Convex из исходного кода. Используйте, когда участник хочет скомпилировать, протестировать или упаковать Convex.
convex-db
convex-dev
Используйте Convex DB — SQL-базу данных на основе решётки. Используйте, когда помогаете пользователям писать запросы, подключаться через JDBC или PostgreSQL-клиенты, создавать таблицы, вставлять/запрашивать данные,…
convex-lisp
convex-dev
Справочник по языку Convex Lisp — соглашения CVM, вызов библиотечного кода, определения акторов, коды juice и ошибок. Используйте при написании или отладке исходного кода CVM для…
deploy
convex-dev
Разверните актор (смарт-контракт) в сети Convex. Используйте, когда пользователь хочет создать новый ончейн-актор с экспортируемыми функциями.
ecosystem
convex-dev
Ориентация в экосистеме Convex — что находится в каком репозитории, где находятся спецификации и документация, и какие клиентские библиотеки существуют. Используйте, когда нужен контекст…