This commit is contained in:
hinto.janai 2024-12-15 21:16:50 -05:00
parent 1e6f760d72
commit a6e506a8b6
No known key found for this signature in database
GPG key ID: D47CE05FA175A499
3 changed files with 2 additions and 4 deletions

View file

@ -60,10 +60,10 @@ pub const fn is_randomx_seed_height(height: usize) -> bool {
///
/// ref: <https://monero-book.cuprate.org/consensus_rules/blocks.html#randomx-seed>
pub const fn randomx_seed_height(height: usize) -> usize {
if height <= 2048 + 64 {
if height <= RX_SEEDHASH_EPOCH_BLOCKS + RX_SEEDHASH_EPOCH_LAG {
0
} else {
(height - 64 - 1) & !(2048 - 1)
(height - RX_SEEDHASH_EPOCH_LAG - 1) & !(RX_SEEDHASH_EPOCH_BLOCKS - 1)
}
}

View file

@ -11,7 +11,6 @@ serde_json = { workspace = true, features = ["std"] }
tokio = { workspace = true, features = ["full"] }
reqwest = { workspace = true, features = ["json"] }
rayon = { workspace = true }
# rand = { workspace = true, features = ["std", "std_rng"] }
futures = { workspace = true, features = ["std"] }
[lints]

View file

@ -179,7 +179,6 @@ impl RpcClient {
let task =
tokio::task::spawn(self.client.get(&self.json_rpc_url).json(&request).send());
// tokio::task::spawn(self.client.get(&*self.nodes.rand()).json(&request).send());
(height, task)
});