Skip to content

Commit

Permalink
Add geyser blockV2 (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
fanatid committed Jan 31, 2023
1 parent 3828153 commit f370f0e
Show file tree
Hide file tree
Showing 5 changed files with 239 additions and 112 deletions.
179 changes: 136 additions & 43 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "solana-geyser-grpc"
version = "0.4.1+solana.1.14.13"
version = "0.5.0+solana.1.14.13"
authors = ["Triton One"]
edition = "2021"

Expand Down Expand Up @@ -35,6 +35,12 @@ protobuf-src = "1.1.0"
tonic-build = "0.8.2"
vergen = "=7.2.1"

[patch.crates-io]
solana-geyser-plugin-interface = { git = "https://github.com/fanatid/solana.git", tag = "v1.14.13-geyser-block-v2" }
solana-logger = { git = "https://github.com/fanatid/solana.git", tag = "v1.14.13-geyser-block-v2" }
solana-sdk = { git = "https://github.com/fanatid/solana.git", tag = "v1.14.13-geyser-block-v2" }
solana-transaction-status = { git = "https://github.com/fanatid/solana.git", tag = "v1.14.13-geyser-block-v2" }

[profile.release]
debug = true
lto = true
Expand Down
5 changes: 5 additions & 0 deletions proto/geyser.proto
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ message SubscribeUpdateBlock {
solana.storage.ConfirmedBlock.UnixTimestamp block_time = 4;
solana.storage.ConfirmedBlock.BlockHeight block_height = 5;
repeated SubscribeUpdateTransactionInfo transactions = 6;
uint64 parent_slot = 7;
string parent_blockhash = 8;
}

message SubscribeUpdateBlockMeta {
Expand All @@ -104,6 +106,9 @@ message SubscribeUpdateBlockMeta {
solana.storage.ConfirmedBlock.Rewards rewards = 3;
solana.storage.ConfirmedBlock.UnixTimestamp block_time = 4;
solana.storage.ConfirmedBlock.BlockHeight block_height = 5;
uint64 parent_slot = 6;
string parent_blockhash = 7;
uint64 executed_transaction_count = 8;
}

message SubscribeUpdatePing {}
Loading

0 comments on commit f370f0e

Please sign in to comment.