peer

作成者: convex-dev

Convexピアを操作する — 作成、起動、一覧表示、バックアップ、またはネットワークのジェネシスのインスタンス化を行う。ネットワークに対してピアを実行する場合や、新しいネットワークをセットアップする場合に使用する。

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.

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の規約、ライブラリコードの呼び出し、アクター定義、ジュースとエラーコード。CVMソースの作成やデバッグ時に使用。
deploy
convex-dev
アクター(スマートコントラクト)をConvexネットワークにデプロイします。エクスポートされた関数を持つ新しいオンチェーンアクターを作成したい場合に使用します。
ecosystem
convex-dev
Convexエコシステムにおけるオリエンテーション — どのリポジトリに何が含まれているか、仕様書とドキュメントがどこにあるか、どのクライアントライブラリが存在するか。コンテキストが必要なときに使用します…