Skip to content

Commit e14bb77

Browse files
committed
Support validator v1.16
1 parent e8ba536 commit e14bb77

File tree

3 files changed

+18
-13
lines changed

3 files changed

+18
-13
lines changed

Cargo.toml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ postgres-openssl = { version = "0.5.0"}
2525
serde = "1.0.145"
2626
serde_derive = "1.0.145"
2727
serde_json = "1.0.85"
28-
solana-geyser-plugin-interface = { git = "https://github.com/lijunwangs/solana.git", rev = "4a549d6f6ff1df1d2c3a6fda87dd9d2b8b8c5bf5" }
29-
solana-logger = { git = "https://github.com/lijunwangs/solana.git", rev = "4a549d6f6ff1df1d2c3a6fda87dd9d2b8b8c5bf5" }
30-
solana-measure = { git = "https://github.com/lijunwangs/solana.git", rev = "4a549d6f6ff1df1d2c3a6fda87dd9d2b8b8c5bf5" }
31-
solana-metrics = { git = "https://github.com/lijunwangs/solana.git", rev = "4a549d6f6ff1df1d2c3a6fda87dd9d2b8b8c5bf5" }
32-
solana-runtime = { git = "https://github.com/lijunwangs/solana.git", rev = "4a549d6f6ff1df1d2c3a6fda87dd9d2b8b8c5bf5" }
33-
solana-sdk = { git = "https://github.com/lijunwangs/solana.git", rev = "4a549d6f6ff1df1d2c3a6fda87dd9d2b8b8c5bf5" }
34-
solana-transaction-status = { git = "https://github.com/lijunwangs/solana.git", rev = "4a549d6f6ff1df1d2c3a6fda87dd9d2b8b8c5bf5" }
28+
solana-geyser-plugin-interface = { version = "1.16.0" }
29+
solana-logger = { version = "1.16.0" }
30+
solana-measure = { version = "1.16.0" }
31+
solana-metrics = { version = "1.16.0" }
32+
solana-runtime = { version = "1.16.0" }
33+
solana-sdk = { version = "1.16.0" }
34+
solana-transaction-status = { version = "1.16.0" }
3535
thiserror = "1.0.37"
3636
tokio-postgres = "0.7.7"
3737

@@ -41,11 +41,11 @@ libloading = "0.7.3"
4141
serial_test = "0.9.0"
4242
socket2 = { version = "0.4.7", features = ["all"] }
4343

44-
solana-account-decoder = { git = "https://github.com/lijunwangs/solana.git", rev = "4a549d6f6ff1df1d2c3a6fda87dd9d2b8b8c5bf5" }
45-
solana-core = { git = "https://github.com/lijunwangs/solana.git", rev = "4a549d6f6ff1df1d2c3a6fda87dd9d2b8b8c5bf5" }
46-
solana-local-cluster = { git = "https://github.com/lijunwangs/solana.git", rev = "4a549d6f6ff1df1d2c3a6fda87dd9d2b8b8c5bf5" }
47-
solana-net-utils = { git = "https://github.com/lijunwangs/solana.git", rev = "4a549d6f6ff1df1d2c3a6fda87dd9d2b8b8c5bf5" }
48-
solana-streamer = { git = "https://github.com/lijunwangs/solana.git", rev = "4a549d6f6ff1df1d2c3a6fda87dd9d2b8b8c5bf5" }
44+
solana-account-decoder = { version = "1.16.0" }
45+
solana-core = { version = "1.16.0" }
46+
solana-local-cluster = { version = "1.16.0" }
47+
solana-net-utils = { version = "1.16.0" }
48+
solana-streamer = { version = "1.16.0" }
4949
tempfile = "3.3.0"
5050

5151
[package.metadata.docs.rs]

scripts/create_schema.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ Create TYPE "TransactionErrorCode" AS ENUM (
6666
'DuplicateInstruction',
6767
'InsufficientFundsForRent',
6868
'MaxLoadedAccountsDataSizeExceeded',
69-
'InvalidLoadedAccountsDataSizeLimit'
69+
'InvalidLoadedAccountsDataSizeLimit',
70+
'ResanitizationNeeded'
7071
);
7172

7273
CREATE TYPE "TransactionError" AS (

src/postgres_client/postgres_client_transaction.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,7 @@ pub enum DbTransactionErrorCode {
350350
InsufficientFundsForRent,
351351
MaxLoadedAccountsDataSizeExceeded,
352352
InvalidLoadedAccountsDataSizeLimit,
353+
ResanitizationNeeded,
353354
}
354355

355356
impl From<&TransactionError> for DbTransactionErrorCode {
@@ -405,6 +406,9 @@ impl From<&TransactionError> for DbTransactionErrorCode {
405406
TransactionError::InvalidLoadedAccountsDataSizeLimit => {
406407
Self::InvalidLoadedAccountsDataSizeLimit
407408
}
409+
TransactionError::ResanitizationNeeded => {
410+
Self::ResanitizationNeeded
411+
}
408412
}
409413
}
410414
}

0 commit comments

Comments
 (0)