Skip to content

Commit

Permalink
Complete session performance updater. Bump version.
Browse files Browse the repository at this point in the history
  • Loading branch information
kukabi committed Nov 27, 2024
1 parent 472b5ac commit a3e13d5
Show file tree
Hide file tree
Showing 38 changed files with 144 additions and 73 deletions.
56 changes: 28 additions & 28 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion _config/network/kusama.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ data_endpoint = "https://nodes.web3.foundation/api/cohort/1/kusama"
unclaimed_payout_check_delay_hours = 3

[session_validator_performance_updater]
start_session_index = 5000
start_session_index = 40900
2 changes: 1 addition & 1 deletion _config/network/polkadot.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ data_endpoint = "https://nodes.web3.foundation/api/cohort/1/polkadot"
unclaimed_payout_check_delay_hours = 9

[session_validator_performance_updater]
start_session_index = 5000
start_session_index = 9100
6 changes: 3 additions & 3 deletions _docker/compose/.env.sample
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION=0.22.0
VERSION=0.22.1
ENV=production
LOG_LEVEL=debug

Expand Down Expand Up @@ -85,5 +85,5 @@ PROMETHEUS_DIR=/path/to/the/prometheus/files/dir
TEMPLATE_DIR=/path/to/the/templates/dir

# SESSION VALIDATOR PERFORMANCE UPDATER
KUSAMA_SESSION_VALIDATOR_PERFORMANCE_UPDATER_START_SESSION_INDEX=5000
POLKADOT_SESSION_VALIDATOR_PERFORMANCE_UPDATER_START_SESSION_INDEX=5000
KUSAMA_SESSION_VALIDATOR_PERFORMANCE_UPDATER_START_SESSION_INDEX=40900
POLKADOT_SESSION_VALIDATOR_PERFORMANCE_UPDATER_START_SESSION_INDEX=9100
4 changes: 3 additions & 1 deletion _migrations/network/migrations/20211002061816_block.up.sql
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,6 @@ CREATE INDEX IF NOT EXISTS sub_block_idx_hash_epoch_index
CREATE INDEX IF NOT EXISTS sub_block_idx_author_account_id
ON sub_block (author_account_id);
CREATE INDEX IF NOT EXISTS sub_block_idx_era_index_author_account_id
ON sub_block (era_index, author_account_id);
ON sub_block (era_index, author_account_id);
CREATE INDEX IF NOT EXISTS sub_block_idx_author_account_id_epoch_index
ON sub_block (author_account_id, epoch_index);
Original file line number Diff line number Diff line change
@@ -1 +1 @@
-- Add down migration script here
DROP TABLE sub_session_validator_performance CASCADE;
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ CREATE TABLE IF NOT EXISTS sub_session_validator_performance
explicit_attestation_count INT,
missed_attestation_count INT,
attestations_per_billion INT,
created_at TIMESTAMP WITHOUT TIME ZONE NOT NULL DEFAULT now()
created_at TIMESTAMP WITHOUT TIME ZONE NOT NULL DEFAULT now(),
CONSTRAINT sub_era_validator_u_era_index_validator
UNIQUE (validator_account_id, era_index, session_index)
);

CREATE INDEX IF NOT EXISTS sub_session_validator_performance_idx_validator_account_id
Expand All @@ -24,4 +26,6 @@ CREATE INDEX IF NOT EXISTS sub_session_validator_performance_idx_validator_accou
CREATE INDEX IF NOT EXISTS sub_session_validator_performance_idx_validator_account_id_active_validator_index_session_index_desc
ON sub_session_validator_performance (validator_account_id, active_validator_index, session_index DESC);
CREATE INDEX IF NOT EXISTS sub_session_validator_performance_idx_validator_account_id_para_validator_index_session_index_desc
ON sub_session_validator_performance (validator_account_id, para_validator_index, session_index DESC);
ON sub_session_validator_performance (validator_account_id, para_validator_index, session_index DESC);
CREATE UNIQUE INDEX IF NOT EXISTS sub_session_validator_performance_u_validator_era_session
ON sub_session_validator_performance (validator_account_id, era_index, session_index);
2 changes: 1 addition & 1 deletion subvt-app-service/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "subvt-app-service"
version = "0.22.0"
version = "0.22.1"
edition = "2021"
rust-version = "1.67.0"

Expand Down
2 changes: 1 addition & 1 deletion subvt-block-processor/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "subvt-block-processor"
version = "0.22.0"
version = "0.22.1"
edition = "2021"
rust-version = "1.67.0"

Expand Down
2 changes: 1 addition & 1 deletion subvt-config/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "subvt-config"
version = "0.22.0"
version = "0.22.1"
edition = "2021"
rust-version = "1.67.0"

Expand Down
2 changes: 1 addition & 1 deletion subvt-governance/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "subvt-governance"
version = "0.22.0"
version = "0.22.1"
edition = "2021"
rust-version = "1.67.0"

Expand Down
2 changes: 1 addition & 1 deletion subvt-kline-updater/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "subvt-kline-updater"
version = "0.22.0"
version = "0.22.1"
edition = "2021"
rust-version = "1.67.0"

Expand Down
2 changes: 1 addition & 1 deletion subvt-logging/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "subvt-logging"
version = "0.22.0"
version = "0.22.1"
edition = "2021"
rust-version = "1.67.0"

Expand Down
2 changes: 1 addition & 1 deletion subvt-metrics/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "subvt-metrics"
version = "0.22.0"
version = "0.22.1"
edition = "2021"
rust-version = "1.67.0"

Expand Down
2 changes: 1 addition & 1 deletion subvt-network-status-server/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "subvt-network-status-server"
version = "0.22.0"
version = "0.22.1"
edition = "2021"
rust-version = "1.67.0"

Expand Down
2 changes: 1 addition & 1 deletion subvt-network-status-updater/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "subvt-network-status-updater"
version = "0.22.0"
version = "0.22.1"
edition = "2021"
rust-version = "1.67.0"

Expand Down
2 changes: 1 addition & 1 deletion subvt-nft/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "subvt-nft"
version = "0.22.0"
version = "0.22.1"
edition = "2021"
rust-version = "1.67.0"

Expand Down
Loading

0 comments on commit a3e13d5

Please sign in to comment.