Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! fixup! Refactor and use pallas nonce
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewWestberg committed Sep 19, 2024
1 parent df123fa commit 4c3cf0d
Show file tree
Hide file tree
Showing 8 changed files with 374 additions and 194 deletions.
29 changes: 15 additions & 14 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ thiserror = "1.0"
tracing = "0.1"
tracing-subscriber = "0.3"
uuid = { version = "1", features = ["v7"] }
log = "0.4.22"

[build-dependencies]
built = { version = "0.7", features = ["git2"] }
4 changes: 0 additions & 4 deletions build.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
use std::env;
use std::path::Path;
use std::process::Command;

fn main() {
built::write_built_file().expect("Failed to acquire build-time information");

Expand Down
7 changes: 7 additions & 0 deletions src/nodeclient/blockstore/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,11 @@ pub(crate) trait BlockStore {
fn get_tip_slot_number(&mut self) -> Result<u64, Error>;
fn get_eta_v_before_slot(&mut self, slot_number: u64) -> Result<Hash<32>, Error>;
fn get_prev_hash_before_slot(&mut self, slot_number: u64) -> Result<Hash<32>, Error>;
fn save_slots(&mut self, epoch: u64, pool_id: &str, slot_qty: u64, slots: &str, hash: &str) -> Result<(), Error>;

/// Get the number of slots and the hash from the block store for the epoch and pool_id
fn get_current_slots(&mut self, epoch: u64, pool_id: &str) -> Result<(u64, String), Error>;

/// Get the previous slots list raw data String from the block store for the epoch and pool_id
fn get_previous_slots(&mut self, epoch: u64, pool_id: &str) -> Result<Option<String>, Error>;
}
Loading

0 comments on commit 4c3cf0d

Please sign in to comment.