peer

โดย convex-dev

ดำเนินการ Convex peer — สร้าง เริ่มต้น แสดงรายการ สำรองข้อมูล หรือสร้างอินสแตนซ์ network genesis ใช้เมื่อรัน 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
Build โปรเจกต์ Convex จากซอร์ส ใช้เมื่อผู้มีส่วนร่วมต้องการ compile, test หรือ package Convex
convex-db
convex-dev
ใช้ Convex DB — ฐานข้อมูล SQL ที่มี lattice เป็นโครงสร้างพื้นฐาน ใช้เมื่อช่วยผู้ใช้เขียนคิวรี เชื่อมต่อผ่านไคลเอนต์ JDBC หรือ PostgreSQL สร้างตาราง แทรก/คิวรีข้อมูล,…
convex-lisp
convex-dev
เอกสารอ้างอิงภาษา Convex Lisp — ข้อกำหนด CVM, การเรียกใช้โค้ดไลบรารี, นิยามแอ็กเตอร์, juice และรหัสข้อผิดพลาด ใช้เมื่อเขียนหรือดีบักซอร์ส CVM สำหรับ…
deploy
convex-dev
ปรับใช้ actor (สมาร์ทคอนแทรกต์) ไปยังเครือข่าย Convex ใช้เมื่อผู้ใช้ต้องการสร้าง actor บนเชนใหม่ที่มีฟังก์ชันที่ส่งออก
ecosystem
convex-dev
การปฐมนิเทศในระบบนิเวศ Convex — อะไรอยู่ใน repository ใด, เอกสาร spec และ docs อยู่ที่ไหน, และมี client libraries ใดบ้าง ใช้เมื่อคุณต้องการบริบท...