Merge branch 'grpc_v1.16.17'

This commit is contained in:
Godmode Galactus 2023-10-26 13:48:57 +02:00
commit 127f6ae364
No known key found for this signature in database
GPG Key ID: A04142C71ABB0DEA
6 changed files with 267 additions and 144 deletions

336
Cargo.lock generated
View File

@ -76,14 +76,15 @@ dependencies = [
[[package]]
name = "ahash"
version = "0.8.3"
version = "0.8.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2c99f64d1e06488f620f932677e24bc6e2897582980441ae90a671415bd7ec2f"
checksum = "72832d73be48bac96a5d7944568f305d829ed55b0ce3b483647089dfaf6cf704"
dependencies = [
"cfg-if",
"getrandom 0.2.10",
"once_cell",
"version_check",
"zerocopy",
]
[[package]]
@ -202,7 +203,7 @@ dependencies = [
"ark-std",
"derivative",
"hashbrown 0.13.2",
"itertools",
"itertools 0.10.5",
"num-traits",
"zeroize",
]
@ -219,7 +220,7 @@ dependencies = [
"ark-std",
"derivative",
"digest 0.10.7",
"itertools",
"itertools 0.10.5",
"num-bigint 0.4.4",
"num-traits",
"paste",
@ -467,9 +468,9 @@ checksum = "3441f0f7b02788e948e47f457ca01f1d7e6d92c693bc132c22b087d3141c03ff"
[[package]]
name = "base64"
version = "0.21.4"
version = "0.21.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9ba43ea6f343b788c8764558649e08df62f86c6ef251fdaeb1ffd010a9ae50a2"
checksum = "35636a1494ede3b646cc98f74f8e62c773a38a659ebc777a2cf26b9b74171df9"
[[package]]
name = "bincode"
@ -881,9 +882,9 @@ checksum = "e496a50fda8aacccc86d7529e2c1e0892dbd0f898a6b5645b5561b89c3210efa"
[[package]]
name = "cpufeatures"
version = "0.2.9"
version = "0.2.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a17b76ff3a4162b0b27f354a0c87015ddad39d35f9c0c36607a3bdd175dde1f1"
checksum = "3fbc60abd742b35f2492f808e1abbb83d45f72db402e14c55057edc9c7b1e9e4"
dependencies = [
"libc",
]
@ -1413,7 +1414,7 @@ name = "grpc_banking_transactions_notifications"
version = "0.1.0"
dependencies = [
"anyhow",
"base64 0.21.4",
"base64 0.21.5",
"bincode",
"bs58",
"bytes",
@ -1422,7 +1423,7 @@ dependencies = [
"const_env",
"dashmap",
"futures",
"itertools",
"itertools 0.10.5",
"lazy_static",
"log",
"native-tls",
@ -1491,7 +1492,7 @@ version = "0.13.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "43a3c133739dddd0d2990f9a4bdf8eb4b21ef50e4851ca85ab661199821d510e"
dependencies = [
"ahash 0.8.3",
"ahash 0.8.4",
]
[[package]]
@ -1617,7 +1618,7 @@ dependencies = [
"httpdate",
"itoa",
"pin-project-lite",
"socket2 0.4.9",
"socket2 0.4.10",
"tokio",
"tower-service",
"tracing",
@ -1749,9 +1750,9 @@ dependencies = [
[[package]]
name = "ipnet"
version = "2.8.0"
version = "2.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "28b29a3cd74f0f4598934efe3aeba42bae0eb4680554128851ebbecb02af14e6"
checksum = "8f518f335dce6725a761382244631d86cf0ccb2863413590b31338feb467f9c3"
[[package]]
name = "itertools"
@ -1762,6 +1763,15 @@ dependencies = [
"either",
]
[[package]]
name = "itertools"
version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b1c173a5686ce8bfa551b3563d0c2170bf24ca44da99c7ca4bfdab5418c3fe57"
dependencies = [
"either",
]
[[package]]
name = "itoa"
version = "1.0.9"
@ -1961,9 +1971,9 @@ dependencies = [
[[package]]
name = "mio"
version = "0.8.8"
version = "0.8.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "927a765cd3fc26206e66b296465fa9d3e5ab003e651c1b3c060e7956d96b19d2"
checksum = "3dce281c5e46beae905d4de1870d8b1509a9142b62eedf18b443b011ca8343d0"
dependencies = [
"libc",
"wasi 0.11.0+wasi-snapshot-preview1",
@ -2375,9 +2385,9 @@ dependencies = [
[[package]]
name = "portable-atomic"
version = "1.4.3"
version = "1.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "31114a898e107c51bb1609ffaf55a0e011cf6a4d7f1170d0015a165082c0338b"
checksum = "b559898e0b4931ed2d3b959ab0c2da4d99cc644c4b0b1a35b4d344027f474023"
[[package]]
name = "postgres-native-tls"
@ -2398,7 +2408,7 @@ version = "0.6.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "49b6c5ef183cd3ab4ba005f1ca64c21e8bd97ce4699cfea9e8d9a2c4958ca520"
dependencies = [
"base64 0.21.4",
"base64 0.21.5",
"byteorder",
"bytes",
"fallible-iterator",
@ -2430,12 +2440,12 @@ checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de"
[[package]]
name = "prettyplease"
version = "0.1.25"
version = "0.2.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6c8646e95016a7a6c4adea95bafa8a16baab64b583356217f2c85db4a39d9a86"
checksum = "ae005bd773ab59b4725093fd7df83fd7892f7d8eafb48dbd7de6e024e4215f9d"
dependencies = [
"proc-macro2",
"syn 1.0.109",
"syn 2.0.38",
]
[[package]]
@ -2483,9 +2493,9 @@ dependencies = [
[[package]]
name = "prost"
version = "0.11.9"
version = "0.12.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0b82eaa1d779e9a4bc1c3217db8ffbeabaae1dca241bf70183242128d48681cd"
checksum = "f4fdd22f3b9c31b53c060df4a0613a1c7f062d4115a2b984dd15b1858f7e340d"
dependencies = [
"bytes",
"prost-derive",
@ -2493,44 +2503,44 @@ dependencies = [
[[package]]
name = "prost-build"
version = "0.11.9"
version = "0.12.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "119533552c9a7ffacc21e099c24a0ac8bb19c2a2a3f363de84cd9b844feab270"
checksum = "8bdf592881d821b83d471f8af290226c8d51402259e9bb5be7f9f8bdebbb11ac"
dependencies = [
"bytes",
"heck",
"itertools",
"lazy_static",
"itertools 0.11.0",
"log",
"multimap",
"once_cell",
"petgraph",
"prettyplease",
"prost",
"prost-types",
"regex",
"syn 1.0.109",
"syn 2.0.38",
"tempfile",
"which",
]
[[package]]
name = "prost-derive"
version = "0.11.9"
version = "0.12.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e5d2d8d10f3c6ded6da8b05b5fb3b8a5082514344d56c9f871412d29b4e075b4"
checksum = "265baba7fabd416cf5078179f7d2cbeca4ce7a9041111900675ea7c4cb8a4c32"
dependencies = [
"anyhow",
"itertools",
"itertools 0.11.0",
"proc-macro2",
"quote",
"syn 1.0.109",
"syn 2.0.38",
]
[[package]]
name = "prost-types"
version = "0.11.9"
version = "0.12.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "213622a1460818959ac1181aaeb2dc9c7f63df720db7d788b3e24eacd1983e13"
checksum = "e081b29f63d83a4bc75cfc9f3fe424f9156cf92d8a4f0c9407cce9a1b67327cf"
dependencies = [
"prost",
]
@ -2722,7 +2732,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "046cd98826c46c2ac8ddecae268eb5c2e58628688a5fc7a2643704a73faba95b"
dependencies = [
"async-compression",
"base64 0.21.4",
"base64 0.21.5",
"bytes",
"encoding_rs",
"futures-core",
@ -2861,7 +2871,7 @@ version = "1.0.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2d3987094b1d07b653b7dfdc3f70ce9a1da9c51ac18c1b06b662e4f9a0e9f4b2"
dependencies = [
"base64 0.21.4",
"base64 0.21.5",
]
[[package]]
@ -3128,9 +3138,9 @@ checksum = "942b4a808e05215192e39f4ab80813e599068285906cc91aa64f923db842bd5a"
[[package]]
name = "socket2"
version = "0.4.9"
version = "0.4.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "64a4a911eed85daf18834cfaa86a79b7d266ff93ff5ba14005426219480ed662"
checksum = "9f7916fc008ca5542385b89a3d3ce689953c143e9304a9bf8beec1de48994c0d"
dependencies = [
"libc",
"winapi",
@ -3138,9 +3148,9 @@ dependencies = [
[[package]]
name = "socket2"
version = "0.5.4"
version = "0.5.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4031e820eb552adee9295814c0ced9e5cf38ddf1e8b7d566d6de8e2538ea989e"
checksum = "7b5fac59a5cb5dd637972e5fca70daf0523c9067fcdc4842f053dae04a18f8e9"
dependencies = [
"libc",
"windows-sys 0.48.0",
@ -3149,11 +3159,10 @@ dependencies = [
[[package]]
name = "solana-account-decoder"
version = "1.16.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "121e55656c2094950f374247e1303dd09517f1ed49c91bf60bf114760b286eb4"
source = "git+https://github.com/rpcpool/solana-public.git?tag=v1.16.17-geyser-block-v3-mango#a173e917ba9ac61703ac4ebf126b286c2c26c105"
dependencies = [
"Inflector",
"base64 0.21.4",
"base64 0.21.5",
"bincode",
"bs58",
"bv",
@ -3174,8 +3183,7 @@ dependencies = [
[[package]]
name = "solana-address-lookup-table-program"
version = "1.16.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3ccb31f7f14d5876acd9ec38f5bf6097bfb4b350141d81c7ff2bf684db3ca815"
source = "git+https://github.com/rpcpool/solana-public.git?tag=v1.16.17-geyser-block-v3-mango#a173e917ba9ac61703ac4ebf126b286c2c26c105"
dependencies = [
"bincode",
"bytemuck",
@ -3184,10 +3192,10 @@ dependencies = [
"num-traits",
"rustc_version",
"serde",
"solana-frozen-abi",
"solana-frozen-abi-macro",
"solana-frozen-abi 1.16.17 (git+https://github.com/rpcpool/solana-public.git?tag=v1.16.17-geyser-block-v3-mango)",
"solana-frozen-abi-macro 1.16.17 (git+https://github.com/rpcpool/solana-public.git?tag=v1.16.17-geyser-block-v3-mango)",
"solana-program",
"solana-program-runtime",
"solana-program-runtime 1.16.17 (git+https://github.com/rpcpool/solana-public.git?tag=v1.16.17-geyser-block-v3-mango)",
"solana-sdk",
"thiserror",
]
@ -3195,14 +3203,13 @@ dependencies = [
[[package]]
name = "solana-config-program"
version = "1.16.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "94dc0f4463daf1c6155f20eac948ea4ced705e5f5520546aef4e11e746a6d95d"
source = "git+https://github.com/rpcpool/solana-public.git?tag=v1.16.17-geyser-block-v3-mango#a173e917ba9ac61703ac4ebf126b286c2c26c105"
dependencies = [
"bincode",
"chrono",
"serde",
"serde_derive",
"solana-program-runtime",
"solana-program-runtime 1.16.17 (git+https://github.com/rpcpool/solana-public.git?tag=v1.16.17-geyser-block-v3-mango)",
"solana-sdk",
]
@ -3212,7 +3219,7 @@ version = "1.16.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d266bf0311bb403d31206aa2904b8741f57c7f5e27580b6810ad5e22fc7c3282"
dependencies = [
"ahash 0.8.3",
"ahash 0.8.4",
"blake3",
"block-buffer 0.10.4",
"bs58",
@ -3234,7 +3241,39 @@ dependencies = [
"serde_derive",
"serde_json",
"sha2 0.10.8",
"solana-frozen-abi-macro",
"solana-frozen-abi-macro 1.16.17 (registry+https://github.com/rust-lang/crates.io-index)",
"subtle",
"thiserror",
]
[[package]]
name = "solana-frozen-abi"
version = "1.16.17"
source = "git+https://github.com/rpcpool/solana-public.git?tag=v1.16.17-geyser-block-v3-mango#a173e917ba9ac61703ac4ebf126b286c2c26c105"
dependencies = [
"ahash 0.8.4",
"blake3",
"block-buffer 0.10.4",
"bs58",
"bv",
"byteorder",
"cc",
"either",
"generic-array",
"getrandom 0.1.16",
"im",
"lazy_static",
"log",
"memmap2",
"once_cell",
"rand_core 0.6.4",
"rustc_version",
"serde",
"serde_bytes",
"serde_derive",
"serde_json",
"sha2 0.10.8",
"solana-frozen-abi-macro 1.16.17 (git+https://github.com/rpcpool/solana-public.git?tag=v1.16.17-geyser-block-v3-mango)",
"subtle",
"thiserror",
]
@ -3251,11 +3290,21 @@ dependencies = [
"syn 2.0.38",
]
[[package]]
name = "solana-frozen-abi-macro"
version = "1.16.17"
source = "git+https://github.com/rpcpool/solana-public.git?tag=v1.16.17-geyser-block-v3-mango#a173e917ba9ac61703ac4ebf126b286c2c26c105"
dependencies = [
"proc-macro2",
"quote",
"rustc_version",
"syn 2.0.38",
]
[[package]]
name = "solana-logger"
version = "1.16.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4f76fe25c2d06dcf621befd1e8d5655143e8a059c7e20fcb71736bc80ed779d6"
source = "git+https://github.com/rpcpool/solana-public.git?tag=v1.16.17-geyser-block-v3-mango#a173e917ba9ac61703ac4ebf126b286c2c26c105"
dependencies = [
"env_logger",
"lazy_static",
@ -3272,6 +3321,15 @@ dependencies = [
"solana-sdk",
]
[[package]]
name = "solana-measure"
version = "1.16.17"
source = "git+https://github.com/rpcpool/solana-public.git?tag=v1.16.17-geyser-block-v3-mango#a173e917ba9ac61703ac4ebf126b286c2c26c105"
dependencies = [
"log",
"solana-sdk",
]
[[package]]
name = "solana-metrics"
version = "1.16.17"
@ -3286,18 +3344,30 @@ dependencies = [
"solana-sdk",
]
[[package]]
name = "solana-metrics"
version = "1.16.17"
source = "git+https://github.com/rpcpool/solana-public.git?tag=v1.16.17-geyser-block-v3-mango#a173e917ba9ac61703ac4ebf126b286c2c26c105"
dependencies = [
"crossbeam-channel",
"gethostname",
"lazy_static",
"log",
"reqwest",
"solana-sdk",
]
[[package]]
name = "solana-program"
version = "1.16.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1bb16998986492de307eef503ce47e84503d35baa92dc60832b22476948b1c16"
source = "git+https://github.com/rpcpool/solana-public.git?tag=v1.16.17-geyser-block-v3-mango#a173e917ba9ac61703ac4ebf126b286c2c26c105"
dependencies = [
"ark-bn254",
"ark-ec",
"ark-ff",
"ark-serialize",
"array-bytes",
"base64 0.21.4",
"base64 0.21.5",
"bincode",
"bitflags 1.3.2",
"blake3",
@ -3311,7 +3381,7 @@ dependencies = [
"console_log",
"curve25519-dalek",
"getrandom 0.2.10",
"itertools",
"itertools 0.10.5",
"js-sys",
"lazy_static",
"libc",
@ -3332,8 +3402,8 @@ dependencies = [
"serde_json",
"sha2 0.10.8",
"sha3 0.10.8",
"solana-frozen-abi",
"solana-frozen-abi-macro",
"solana-frozen-abi 1.16.17 (git+https://github.com/rpcpool/solana-public.git?tag=v1.16.17-geyser-block-v3-mango)",
"solana-frozen-abi-macro 1.16.17 (git+https://github.com/rpcpool/solana-public.git?tag=v1.16.17-geyser-block-v3-mango)",
"solana-sdk-macro",
"thiserror",
"tiny-bip39",
@ -3347,11 +3417,11 @@ version = "1.16.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "036d6ecf67a3a7c6dc74d4f7fa6ab321e7ce8feccb7c9dff8384a41d0a12345b"
dependencies = [
"base64 0.21.4",
"base64 0.21.5",
"bincode",
"eager",
"enum-iterator",
"itertools",
"itertools 0.10.5",
"libc",
"log",
"num-derive 0.3.3",
@ -3360,10 +3430,37 @@ dependencies = [
"rand 0.7.3",
"rustc_version",
"serde",
"solana-frozen-abi",
"solana-frozen-abi-macro",
"solana-measure",
"solana-metrics",
"solana-frozen-abi 1.16.17 (registry+https://github.com/rust-lang/crates.io-index)",
"solana-frozen-abi-macro 1.16.17 (registry+https://github.com/rust-lang/crates.io-index)",
"solana-measure 1.16.17 (registry+https://github.com/rust-lang/crates.io-index)",
"solana-metrics 1.16.17 (registry+https://github.com/rust-lang/crates.io-index)",
"solana-sdk",
"solana_rbpf",
"thiserror",
]
[[package]]
name = "solana-program-runtime"
version = "1.16.17"
source = "git+https://github.com/rpcpool/solana-public.git?tag=v1.16.17-geyser-block-v3-mango#a173e917ba9ac61703ac4ebf126b286c2c26c105"
dependencies = [
"base64 0.21.5",
"bincode",
"eager",
"enum-iterator",
"itertools 0.10.5",
"libc",
"log",
"num-derive 0.3.3",
"num-traits",
"percentage",
"rand 0.7.3",
"rustc_version",
"serde",
"solana-frozen-abi 1.16.17 (git+https://github.com/rpcpool/solana-public.git?tag=v1.16.17-geyser-block-v3-mango)",
"solana-frozen-abi-macro 1.16.17 (git+https://github.com/rpcpool/solana-public.git?tag=v1.16.17-geyser-block-v3-mango)",
"solana-measure 1.16.17 (git+https://github.com/rpcpool/solana-public.git?tag=v1.16.17-geyser-block-v3-mango)",
"solana-metrics 1.16.17 (git+https://github.com/rpcpool/solana-public.git?tag=v1.16.17-geyser-block-v3-mango)",
"solana-sdk",
"solana_rbpf",
"thiserror",
@ -3376,7 +3473,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dc51a85c6ff03bb4a3e1fde1e36dcb553b990f2b3e66aed941a31a6a7c20fa33"
dependencies = [
"async-trait",
"base64 0.21.4",
"base64 0.21.5",
"bincode",
"bs58",
"indicatif",
@ -3401,7 +3498,7 @@ version = "1.16.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6756a1f89f509154644a958869c7cc6c70cc622f44faddf9b94612d8d2d8eed5"
dependencies = [
"base64 0.21.4",
"base64 0.21.5",
"bs58",
"jsonrpc-core",
"reqwest",
@ -3420,11 +3517,10 @@ dependencies = [
[[package]]
name = "solana-sdk"
version = "1.16.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4106cda3d10833ba957dbd25fb841b50aeca7480ccf8f54859294716f54bcd4b"
source = "git+https://github.com/rpcpool/solana-public.git?tag=v1.16.17-geyser-block-v3-mango#a173e917ba9ac61703ac4ebf126b286c2c26c105"
dependencies = [
"assert_matches",
"base64 0.21.4",
"base64 0.21.5",
"bincode",
"bitflags 1.3.2",
"borsh 0.10.3",
@ -3438,7 +3534,7 @@ dependencies = [
"ed25519-dalek-bip32",
"generic-array",
"hmac 0.12.1",
"itertools",
"itertools 0.10.5",
"js-sys",
"lazy_static",
"libsecp256k1",
@ -3460,8 +3556,8 @@ dependencies = [
"serde_with",
"sha2 0.10.8",
"sha3 0.10.8",
"solana-frozen-abi",
"solana-frozen-abi-macro",
"solana-frozen-abi 1.16.17 (git+https://github.com/rpcpool/solana-public.git?tag=v1.16.17-geyser-block-v3-mango)",
"solana-frozen-abi-macro 1.16.17 (git+https://github.com/rpcpool/solana-public.git?tag=v1.16.17-geyser-block-v3-mango)",
"solana-logger",
"solana-program",
"solana-sdk-macro",
@ -3473,8 +3569,7 @@ dependencies = [
[[package]]
name = "solana-sdk-macro"
version = "1.16.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1e560806a3859717eb2220b26e2cd68bb757b63affa3e79c3f1d8d853b5ee78f"
source = "git+https://github.com/rpcpool/solana-public.git?tag=v1.16.17-geyser-block-v3-mango#a173e917ba9ac61703ac4ebf126b286c2c26c105"
dependencies = [
"bs58",
"proc-macro2",
@ -3486,11 +3581,10 @@ dependencies = [
[[package]]
name = "solana-transaction-status"
version = "1.16.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "236dd4e43b8a7402bce250228e04c0c68d9493a3e19c71b377ccc7c4390fd969"
source = "git+https://github.com/rpcpool/solana-public.git?tag=v1.16.17-geyser-block-v3-mango#a173e917ba9ac61703ac4ebf126b286c2c26c105"
dependencies = [
"Inflector",
"base64 0.21.4",
"base64 0.21.5",
"bincode",
"borsh 0.10.3",
"bs58",
@ -3520,8 +3614,8 @@ dependencies = [
"semver",
"serde",
"serde_derive",
"solana-frozen-abi",
"solana-frozen-abi-macro",
"solana-frozen-abi 1.16.17 (registry+https://github.com/rust-lang/crates.io-index)",
"solana-frozen-abi-macro 1.16.17 (registry+https://github.com/rust-lang/crates.io-index)",
"solana-sdk",
]
@ -3538,11 +3632,11 @@ dependencies = [
"rustc_version",
"serde",
"serde_derive",
"solana-frozen-abi",
"solana-frozen-abi-macro",
"solana-metrics",
"solana-frozen-abi 1.16.17 (registry+https://github.com/rust-lang/crates.io-index)",
"solana-frozen-abi-macro 1.16.17 (registry+https://github.com/rust-lang/crates.io-index)",
"solana-metrics 1.16.17 (registry+https://github.com/rust-lang/crates.io-index)",
"solana-program",
"solana-program-runtime",
"solana-program-runtime 1.16.17 (registry+https://github.com/rust-lang/crates.io-index)",
"solana-sdk",
"thiserror",
]
@ -3554,13 +3648,13 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "278c08e13bc04b6940997602909052524a375154b00cf0bfa934359a3bb7e6f0"
dependencies = [
"aes-gcm-siv",
"base64 0.21.4",
"base64 0.21.5",
"bincode",
"bytemuck",
"byteorder",
"curve25519-dalek",
"getrandom 0.1.16",
"itertools",
"itertools 0.10.5",
"lazy_static",
"merlin",
"num-derive 0.3.3",
@ -3961,7 +4055,7 @@ dependencies = [
"parking_lot",
"pin-project-lite",
"signal-hook-registry",
"socket2 0.5.4",
"socket2 0.5.5",
"tokio-macros",
"windows-sys 0.48.0",
]
@ -4017,7 +4111,7 @@ dependencies = [
"postgres-protocol",
"postgres-types",
"rand 0.8.5",
"socket2 0.5.4",
"socket2 0.5.5",
"tokio",
"tokio-util",
"whoami",
@ -4069,9 +4163,9 @@ dependencies = [
[[package]]
name = "toml_datetime"
version = "0.6.3"
version = "0.6.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7cda73e2f1397b1262d6dfdcef8aafae14d1de7748d66822d3bfeeb6d03e5e4b"
checksum = "3550f4e9685620ac18a50ed434eb3aec30db8ba93b0287467bca5826ea25baf1"
[[package]]
name = "toml_edit"
@ -4086,18 +4180,16 @@ dependencies = [
[[package]]
name = "tonic"
version = "0.9.2"
version = "0.10.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3082666a3a6433f7f511c7192923fa1fe07c69332d3c6a2e6bb040b569199d5a"
checksum = "d560933a0de61cf715926b9cac824d4c883c2c43142f787595e48280c40a1d0e"
dependencies = [
"async-stream",
"async-trait",
"axum",
"base64 0.21.4",
"base64 0.21.5",
"bytes",
"flate2",
"futures-core",
"futures-util",
"h2",
"http",
"http-body",
@ -4106,6 +4198,7 @@ dependencies = [
"percent-encoding",
"pin-project",
"prost",
"rustls 0.21.7",
"rustls-native-certs",
"rustls-pemfile",
"tokio",
@ -4119,22 +4212,22 @@ dependencies = [
[[package]]
name = "tonic-build"
version = "0.9.2"
version = "0.10.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a6fdaae4c2c638bb70fe42803a26fbd6fc6ac8c72f5c59f67ecc2a2dcabf4b07"
checksum = "9d021fc044c18582b9a2408cd0dd05b1596e3ecdb5c4df822bb0183545683889"
dependencies = [
"prettyplease",
"proc-macro2",
"prost-build",
"quote",
"syn 1.0.109",
"syn 2.0.38",
]
[[package]]
name = "tonic-health"
version = "0.9.2"
version = "0.10.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "080964d45894b90273d2b1dd755fdd114560db8636bb41cea615213c45043c4d"
checksum = "f80db390246dfb46553481f6024f0082ba00178ea495dbb99e70ba9a4fafb5e1"
dependencies = [
"async-stream",
"prost",
@ -4649,8 +4742,8 @@ dependencies = [
[[package]]
name = "yellowstone-grpc-client"
version = "1.9.0+solana.1.16.13"
source = "git+https://github.com/blockworks-foundation/yellowstone-grpc.git?branch=geyser_get_banking_transaction_results#5982a25c9cc791ee1da28c306ba630fe2fb74d7d"
version = "1.11.1+solana.1.16.17"
source = "git+https://github.com/blockworks-foundation/yellowstone-grpc.git?branch=tag-v1.16-mango#620c49a01a6de30790b2afcc71c6c709b3061880"
dependencies = [
"bytes",
"futures",
@ -4663,16 +4756,40 @@ dependencies = [
[[package]]
name = "yellowstone-grpc-proto"
version = "1.9.0+solana.1.16.13"
source = "git+https://github.com/blockworks-foundation/yellowstone-grpc.git?branch=geyser_get_banking_transaction_results#5982a25c9cc791ee1da28c306ba630fe2fb74d7d"
version = "1.10.0+solana.1.16.17"
source = "git+https://github.com/blockworks-foundation/yellowstone-grpc.git?branch=tag-v1.16-mango#620c49a01a6de30790b2afcc71c6c709b3061880"
dependencies = [
"anyhow",
"bincode",
"prost",
"protobuf-src",
"solana-account-decoder",
"solana-sdk",
"solana-transaction-status",
"tonic",
"tonic-build",
]
[[package]]
name = "zerocopy"
version = "0.7.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4c19fae0c8a9efc6a8281f2e623db8af1db9e57852e04cde3e754dd2dc29340f"
dependencies = [
"zerocopy-derive",
]
[[package]]
name = "zerocopy-derive"
version = "0.7.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fc56589e9ddd1f1c28d4b4b5c773ce232910a6bb67a70133d61c9e347585efe9"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.38",
]
[[package]]
name = "zeroize"
version = "1.3.0"
@ -4721,3 +4838,8 @@ dependencies = [
"cc",
"pkg-config",
]
[[patch.unused]]
name = "solana-geyser-plugin-interface"
version = "1.16.17"
source = "git+https://github.com/rpcpool/solana-public.git?tag=v1.16.17-geyser-block-v3-mango#a173e917ba9ac61703ac4ebf126b286c2c26c105"

View File

@ -6,10 +6,10 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
solana-sdk = "~1.16.3"
solana-rpc-client = "~1.16.3"
solana-rpc-client-api = "~1.16.3"
solana-transaction-status = "~1.16.3"
solana-sdk = "~1.16.17"
solana-rpc-client = "~1.16.17"
solana-rpc-client-api = "~1.16.17"
solana-transaction-status = "~1.16.17"
itertools = "0.10.5"
serde = { version = "1.0.160", features = ["derive"] }
serde_json = "1.0.96"
@ -33,5 +33,13 @@ tokio-postgres = { version = "0.7.10", features = ["with-chrono-0_4"] }
rustls = { version = "=0.20.8", default-features = false }
tokio = { version = "1.32.0", features = ["rt-multi-thread", "macros", "time"] }
yellowstone-grpc-client = {git = "https://github.com/blockworks-foundation/yellowstone-grpc.git", branch = "geyser_get_banking_transaction_results"}
yellowstone-grpc-proto = {git = "https://github.com/blockworks-foundation/yellowstone-grpc.git", branch = "geyser_get_banking_transaction_results"}
yellowstone-grpc-client = {git = "https://github.com/blockworks-foundation/yellowstone-grpc.git", branch = "tag-v1.16-mango"}
yellowstone-grpc-proto = {git = "https://github.com/blockworks-foundation/yellowstone-grpc.git", branch = "tag-v1.16-mango"}
[patch.crates-io]
solana-account-decoder = { git = "https://github.com/rpcpool/solana-public.git", tag = "v1.16.17-geyser-block-v3-mango" }
solana-geyser-plugin-interface = { git = "https://github.com/rpcpool/solana-public.git", tag = "v1.16.17-geyser-block-v3-mango" }
solana-logger = { git = "https://github.com/rpcpool/solana-public.git", tag = "v1.16.17-geyser-block-v3-mango" }
solana-program = { git = "https://github.com/rpcpool/solana-public.git", tag = "v1.16.17-geyser-block-v3-mango" }
solana-sdk = { git = "https://github.com/rpcpool/solana-public.git", tag = "v1.16.17-geyser-block-v3-mango" }
solana-transaction-status = { git = "https://github.com/rpcpool/solana-public.git", tag = "v1.16.17-geyser-block-v3-mango" }

View File

@ -1,32 +1,16 @@
CREATE SCHEMA banking_stage_results;
CREATE TYPE error AS (
error text,
slot BIGINT,
count BIGINT
);
CREATE TYPE ACCOUNT_USED AS (
account CHAR(44),
r_w CHAR
);
CREATE TYPE ACCOUNT_USE_COUNT AS (
account CHAR(44),
cu BIGINT
);
CREATE TABLE banking_stage_results.transaction_infos (
signature CHAR(88) PRIMARY KEY,
message text,
errors ERROR[],
errors text [],
is_executed BOOL,
is_confirmed BOOL,
first_notification_slot BIGINT NOT NULL,
cu_requested BIGINT,
prioritization_fees BIGINT,
utc_timestamp TIMESTAMP WITH TIME ZONE NOT NULL,
accounts_used ACCOUNT_USED[],
accounts_used text [],
processed_slot BIGINT
);
@ -39,7 +23,7 @@ CREATE TABLE banking_stage_results.blocks (
processed_transactions BIGINT,
total_cu_used BIGINT,
total_cu_requested BIGINT,
heavily_writelocked_accounts ACCOUNT_USE_COUNT[]
heavily_writelocked_accounts text []
);
CREATE TABLE banking_stage_results.accounts (

View File

@ -73,7 +73,7 @@ impl BlockInfo {
.unwrap_or(0)
})
.sum::<u64>() as i64;
let mut writelocked_accounts = HashMap::new();
let mut writelocked_accounts: HashMap<Pubkey, (u64, u64)> = HashMap::new();
let mut total_cu_requested: u64 = 0;
for transaction in &block.transactions {
let Some(tx) = &transaction.transaction else {
@ -88,6 +88,10 @@ impl BlockInfo {
continue;
};
let Some(meta) = &transaction.meta else {
continue;
};
let message = VersionedMessage::V0(v0::Message {
header: MessageHeader {
num_required_signatures: header.num_required_signatures as u8,
@ -175,7 +179,9 @@ impl BlockInfo {
})
.or(legacy_cu_requested);
let cu_requested = cu_requested.unwrap_or(200000) as u64;
let cu_consumed = meta.compute_units_consumed.unwrap_or(0);
total_cu_requested = total_cu_requested + cu_requested;
let writable_accounts = message
.static_account_keys()
.iter()
@ -186,10 +192,12 @@ impl BlockInfo {
for writable_account in writable_accounts {
match writelocked_accounts.get_mut(&writable_account) {
Some(x) => {
*x += cu_requested;
x.0 += cu_requested;
x.1 += cu_consumed;
}
None => {
writelocked_accounts.insert(writable_account, cu_requested);
writelocked_accounts.insert(writable_account, (cu_requested, cu_consumed));
}
}
}
@ -197,12 +205,12 @@ impl BlockInfo {
let mut heavily_writelocked_accounts = writelocked_accounts
.iter()
.filter(|x| *x.1 > 1000000)
.filter(|x| x.1.1 > 1000000)
.collect_vec();
heavily_writelocked_accounts.sort_by(|lhs, rhs| (*rhs.1).cmp(lhs.1));
let heavily_writelocked_accounts = heavily_writelocked_accounts
.iter()
.map(|(pubkey, cu)| format!("({}, {})", **pubkey, **cu))
.map(|(pubkey, (cu_req, cu_con))| format!("(k:{}, cu_req:{}, cu_con:{})", **pubkey, *cu_req, *cu_con))
.collect_vec();
BlockInfo {
block_hash,

View File

@ -60,7 +60,9 @@ async fn main() {
postgres.start_saving_transaction(map_of_infos.clone(), slot.clone());
while let Some(message) = stream.next().await {
let message = message.unwrap();
let Ok(message) = message else {
continue;
};
let Some(update) = message.update_oneof else {
continue;
@ -68,9 +70,7 @@ async fn main() {
match update {
UpdateOneof::BankingTransactionErrors(transaction) => {
if transaction.error.is_none() {
continue;
}
log::info!("got banking stage transaction erros");
let sig = transaction.signature.to_string();
match map_of_infos.get_mut(&sig) {
Some(mut x) => {
@ -84,6 +84,7 @@ async fn main() {
}
}
UpdateOneof::Block(block) => {
log::info!("got block");
slot.store(block.slot, std::sync::atomic::Ordering::Relaxed);
for transaction in &block.transactions {
let Some(tx) = &transaction.transaction else {

View File

@ -83,7 +83,7 @@ impl PostgresSession {
if txs.is_empty() {
return Ok(());
}
const NUMBER_OF_ARGS: usize = 10;
const NUMBER_OF_ARGS: usize = 11;
let mut args: Vec<&(dyn ToSql + Sync)> = Vec::with_capacity(NUMBER_OF_ARGS * txs.len());
let txs: Vec<PostgresTransactionInfo> = txs
@ -216,12 +216,12 @@ impl From<&TransactionInfo> for PostgresTransactionInfo {
let errors = value
.errors
.iter()
.map(|(key, size)| format!("({}, {}, {})", key.error, key.slot, size))
.map(|(key, size)| format!("key:{}, slot:{}, count:{}", key.error, key.slot, size))
.collect_vec();
let accounts_used = value
.account_used
.iter()
.map(|x| format!("({}, {})", x.0, x.1))
.map(|x| format!("{}({})", x.0, x.1))
.collect();
Self {
signature: value.signature.clone(),