RC-0.9.2
This version brings one new feature and two new endpoints to Pocket Core:
New feature: LeanPocket
LeanPocket is a configuration that enables multiple Pocket instances to run on a single process, allowing node runners to consolidate resources, resulting in better scalability and reduced hardware costs.
-
Create a new
lean_nodes_keys.json
file inside your Pocket configuration directory (typically.pocket
). -
Format the file with a JSON array of your node's private keys:
[
{ "priv_key": "<PRIVATE_KEY_1>" },
{ "priv_key": "<PRIVATE_KEY_2>" }
]
- Set/update your validators:
pocket accounts set-validators <path/to/lean_nodes_keys.json>
-
Edit your node's
config.json
file to addlean_pocket: "true";
in thepocket_config
block. -
If you run a script that starts the Pocket service, add
--keybase=false
to thepocket start
command. -
Edit your proxy settings such that the
/v1
endpoint is publicly accessible for every one of your nodes. -
Restart your Pocket service, making sure to add the
--keybase=false
option.
Learn more: https://docs.pokt.network/node/leanpocket/
New API endpoints
-
/v1/query/unconfirmedtxs: Returns all unconfirmed transactions in the mempool for a given node. Transactions are decoded following the same format as blocktxs (hash + stdTx). Try it out: https://docs.pokt.network/api-docs/pokt/
-
/v1/query/unconfirmedtx: Returns an unconfirmed transaction in the mempool, specified by the transaction hash. Try it out: https://docs.pokt.network/api-docs/pokt/
Update your node
To update your node to the latest version, follow instructions here: https://docs.pokt.network/node/update
Special Thanks to contributors @PoktBlade , @addiaddiaddi & @jorgecuesta !!