mirror of
https://github.com/hinto-janai/cuprate.git
synced 2024-12-22 11:39:30 +00:00
fixes
This commit is contained in:
parent
1e6f760d72
commit
a6e506a8b6
3 changed files with 2 additions and 4 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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]
|
||||
|
|
|
@ -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)
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue