Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ It consists of both C and Rust code, but everything can be built and tested usin

### Build Instructions

First, make sure you have the [solana tool suite](https://docs.solana.com/cli/install-solana-cli-tools#use-solanas-install-tool)
First, make sure you have the [solana tool suite](https://solana.com/ru/docs/intro/installation#use-solanas-install-tool)
installed on your machine. (The build depends on some C makefiles that are in the tool suite.)
Make sure you have installed the same solana version that is being used in [CI](.github/workflows/docker.yaml)

Expand Down Expand Up @@ -156,7 +156,7 @@ Finally, in docker extension inside VS Code click right and choose "Attach VS Co
Oracle program upgrades are managed by the Pythian Council multisig. The steps to deploy a new version are:

1. Create a release branch from `main`. This should include the binary for the Pythnet oracle program (`pyth_oracle_pythnet.so`).
2. [Install Solana CLI](https://docs.solana.com/cli/install-solana-cli-tools#use-solanas-install-tool) if not already installed.
2. [Install Solana CLI](https://solana.com/ru/docs/intro/installation#use-solanas-install-tool) if not already installed.
3. Set Solana config for the target network, e.g., devnet: `solana config set --url https://api.devnet.solana.com`.
4. Execute `solana program write-buffer pyth_oracle_pythnet.so` to obtain the buffer address.
5. Run `solana program show <ORACLE_PROGRAM_PUBKEY>` to obtain the authority of the current program.
Expand Down
2 changes: 1 addition & 1 deletion doc/cpp-batching-upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ If you are using the [websocket JRPC API](websocket_api.md) to send updates to `
## C++ Bindings
If you are linking against the C++ bindings, you will need to make some changes to your code to support sending batched updates.

Instead of sending individual price updates in response to `price_sched` callbacks, you will now need to call `pc::price::send` with a vector of `pc::price` objects that you wish to publish, in response to `on_slot_publish` callbacks. These will then be batched into transactions. The [`test_publish.cpp`](../pctest/test_publish.cpp) example has been updated to use this new approach.
Instead of sending individual price updates in response to `price_sched` callbacks, you will now need to call `pc::price::send` with a vector of `pc::price` objects that you wish to publish, in response to `on_slot_publish` callbacks. These will then be batched into transactions. The [`test_publish.cpp`](../pctest/test_publish_websocket.cpp) example has been updated to use this new approach.

**Important**: this is a breaking change for C++ publishers, so you will need to update your code as described above for `2.10.1` to work.