Skip to content

Commit 5fd8bf0

Browse files
committed
fix: move ouroboros to block_vrf_validator
1 parent 7604607 commit 5fd8bf0

26 files changed

+661
-744
lines changed

Cargo.lock

Lines changed: 6 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

common/Cargo.toml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,8 @@ rayon = "1.11.0"
4545
cryptoxide = "0.5.1"
4646
thiserror = "2.0.17"
4747
sha2 = "0.10.8"
48-
caryatid_process.workspace = true
49-
config.workspace = true
50-
pallas = { workspace = true }
51-
pallas-math = { workspace = true }
52-
53-
# The vrf crate has not been fully tested in production environments and still has several upstream issues that are open PRs but not merged yet.
54-
vrf_dalek = { git = "https://github.com/txpipe/vrf", rev = "044b45a1a919ba9d9c2471fc5c4d441f13086676" }
55-
dashu-int = "0.4.1"
48+
caryatid_process = { workspace = true }
49+
config = { workspace = true }
5650

5751
[lib]
5852
crate-type = ["rlib"]

common/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ pub mod hash;
1010
pub mod ledger_state;
1111
pub mod math;
1212
pub mod messages;
13-
pub mod ouroboros;
1413
pub mod params;
1514
pub mod protocol_params;
1615
pub mod queries;

common/src/messages.rs

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use crate::commands::transactions::{TransactionsCommand, TransactionsCommandResponse};
77
use crate::genesis_values::GenesisValues;
88
use crate::ledger_state::SPOState;
9-
use crate::protocol_params::{Nonce, NonceHash, ProtocolParams};
9+
use crate::protocol_params::{Nonce, ProtocolParams};
1010
use crate::queries::parameters::{ParametersStateQuery, ParametersStateQueryResponse};
1111
use crate::queries::spdd::{SPDDStateQuery, SPDDStateQueryResponse};
1212
use crate::queries::utxos::{UTxOStateQuery, UTxOStateQueryResponse};
@@ -182,11 +182,6 @@ pub struct EpochActivityMessage {
182182
pub spo_blocks: Vec<(PoolId, usize)>,
183183

184184
/// Nonce
185-
pub nonce: Option<NonceHash>,
186-
}
187-
188-
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
189-
pub struct EpochNonceMessage {
190185
pub nonce: Option<Nonce>,
191186
}
192187

@@ -298,9 +293,8 @@ pub enum CardanoMessage {
298293
PotDeltas(PotDeltasMessage), // Changes to pot balances
299294
BlockInfoMessage(BlockTxsMessage), // Transaction Info (total count, total output, total fees in a block)
300295
EpochActivity(EpochActivityMessage), // Total fees and VRF keys for an epoch
301-
EpochNonce(EpochNonceMessage), // Epoch Nonce for Epoch N (published after the first block of Epoch N)
302-
DRepState(DRepStateMessage), // Active DReps at epoch end
303-
SPOState(SPOStateMessage), // Active SPOs at epoch end
296+
DRepState(DRepStateMessage), // Active DReps at epoch end
297+
SPOState(SPOStateMessage), // Active SPOs at epoch end
304298
GovernanceProcedures(GovernanceProceduresMessage), // Governance procedures received
305299

306300
// Protocol Parameters

0 commit comments

Comments
 (0)