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 की और Skills

convex-lisp
convex-dev
Convex Lisp भाषा संदर्भ — CVM प्रथाएँ, लाइब्रेरी कोड कॉल करना, एक्टर परिभाषाएँ, जूस और त्रुटि कोड। CVM स्रोत लिखने या डीबग करने के समय उपयोग करें…
ecosystem
convex-dev
Convex पारिस्थितिकी तंत्र में अभिविन्यास — कौन सी चीज़ किस रिपॉज़िटरी में है, स्पेक्स और दस्तावेज़ कहाँ हैं, और कौन से क्लाइंट लाइब्रेरी मौजूद हैं। जब आपको संदर्भ की आवश्यकता हो तो उपयोग करें…
local-network
convex-dev
स्थानीय Convex परीक्षण नेटवर्क विकास के लिए चलाएं। लाइव नेटवर्क के विरुद्ध परिवर्तनों का परीक्षण करते समय, किसी सहकर्मी की समस्या को दोहराते समय, या जब कोई दूरस्थ नेटवर्क उपलब्ध न हो तब उपयोग करें।
protocol-versions
convex-dev
प्रोटोकॉल संस्करण, माइग्रेशन और v1 अपग्रेड — किन सेमेंटिक्स के आधार पर लिखना है, और नेटवर्क को फोर्क किए बिना CVM व्यवहार कैसे बदलें। तब उपयोग करें जब…
etch
convex-dev
Etch स्टोर का निरीक्षण और रखरखाव करें — Convex का सामग्री-संबोधित डेटाबेस। पीयर स्टोरेज की जांच, भ्रष्टाचार का निदान, कचरा संग्रहण, या… के समय उपयोग करें।
juice
convex-dev
Juice लेखांकन — CVM पर संगणना और बैंडविड्थ की लागत। लेन-देन निष्पादन लागत पर विचार करते समय, :JUICE विफलता का निदान करते समय, या…
trust
convex-dev
Trust मॉनिटर — Convex का composable on-chain प्राधिकरण मॉडल। एक्सेस कंट्रोल लिखते समय, एक्टर फ़ंक्शन प्रतिबंधित करते समय, यह परिभाषित करते समय कि कौन मिंट कर सकता है या…
memory
convex-dev
मेमोरी लेखांकन और भत्ते — ऑन-चेन भंडारण की लागत, और इसे कैसे कम करें और पुनः प्राप्त करें। राज्य वृद्धि के बारे में तर्क करते समय, निदान करते समय उपयोग करें…