Skip to content
This repository was archived by the owner on Sep 8, 2026. It is now read-only.

Commit 2235024

Browse files
delinquents
1 parent 19625f7 commit 2235024

6 files changed

Lines changed: 5 additions & 24 deletions

File tree

crates/slack-notifier/src/validator_debt.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,8 @@ pub async fn post_finalized_distribution_to_slack(
6666
}
6767

6868
pub async fn post_debt_collection_to_slack(
69-
total_transactions: usize,
7069
total_success: usize,
71-
total_amount_collected: u64,
7270
insufficient_funds: usize,
73-
total_debt: u64,
7471
already_paid: usize,
7572
dz_epoch: u64,
7673
filepath: Option<String>,
@@ -85,19 +82,14 @@ pub async fn post_debt_collection_to_slack(
8582

8683
let table_header = vec![
8784
"DoubleZero Epoch".to_string(),
88-
"Total Amount Collected".to_string(),
8985
"Successful Transactions".to_string(),
90-
"Total Attempted Transactions".to_string(),
9186
"Insufficient Funds".to_string(),
9287
"Already Paid".to_string(),
9388
];
9489

9590
let table_values = vec![
9691
dz_epoch.to_string(),
97-
total_amount_collected.to_string(),
9892
total_success.to_string(),
99-
total_debt.to_string(),
100-
total_transactions.to_string(),
10193
insufficient_funds.to_string(),
10294
already_paid.to_string(),
10395
];

crates/solana-cli/src/command/revenue_distribution/relay/mod.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,8 @@ async fn execute_pay_solana_validator_debt(
9797
};
9898
if let Some(ExportFormat::Slack) = export {
9999
validator_debt::post_debt_collection_to_slack(
100-
tx_results.total_transactions_attempted,
101100
tx_results.successful_transactions,
102-
tx_results.total_amount_collected,
103101
tx_results.insufficient_funds,
104-
tx_results.total_debt,
105102
tx_results.already_paid,
106103
epoch,
107104
filename,

scheduler/config/config.exs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Config
22

33
config :scheduler, Scheduler.Scheduler,
44
jobs: [
5-
# {"0 */2 * * *", {Scheduler.Worker.PayDebt, :start_link, []}},
6-
# {"*/2 * * * *", {Scheduler.Worker.InitializeDistribution, :start_link, []}},
7-
# {"30 */2 * * *", {Scheduler.Worker.CalculateDistribution, :start_link, []}}
5+
{"0 */2 * * *", {Scheduler.Worker.PayDebt, :start_link, []}},
6+
{"*/2 * * * *", {Scheduler.Worker.InitializeDistribution, :start_link, []}},
7+
{"30 */2 * * *", {Scheduler.Worker.CalculateDistribution, :start_link, []}}
88
]

scheduler/lib/scheduler/worker/pay_debt.ex

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ defmodule Scheduler.Worker.PayDebt do
3939

4040
debt ->
4141
debt = Scheduler.ValidatorDebt.DebtCollection.process_debt(debt)
42-
epoch_debt = %{debt | epoch: state.current_epoch} #%{state.current_epoch => debt}
42+
epoch_debt = %{debt | epoch: state.current_epoch}
4343
total_debt = [epoch_debt | state.total_debt]
4444
dbg(length(total_debt))
4545
Logger.info("completed epoch #{state.current_epoch}")
@@ -60,7 +60,6 @@ defmodule Scheduler.Worker.PayDebt do
6060

6161
defp genesis_epoch do
6262
Application.get_env(:scheduler, :genesis_epoch)
63-
# 55
6463
end
6564

6665
defp ledger_rpc do

scheduler/mix.exs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,6 @@ defmodule Scheduler.MixProject do
77
version: "0.1.0",
88
elixir: "~> 1.18",
99
start_permanent: Mix.env() == :prod,
10-
# compilers: [:rustler] ++ Mix.compilers(),
11-
rustler_crates: [
12-
scheduler_doublezero: [
13-
mode: if(Mix.env() == :prod, do: :release, else: :debug)
14-
]
15-
],
1610
deps: deps()
1711
]
1812
end

scheduler/native/scheduler_doublezero/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ use doublezero_solana_validator_debt::{
1111
transaction::{DebtCollectionResult, DebtCollectionResults, Transaction},
1212
worker,
1313
};
14-
use rustler::Error as NifError;
15-
use rustler::NifStruct;
14+
use rustler::{Error as NifError, NifStruct};
1615
use slack_notifier::validator_debt;
1716
use solana_sdk::signature::Keypair;
1817

0 commit comments

Comments
 (0)