Skip to content

Commit

Permalink
some upgrades
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnnyFFM committed Jun 10, 2021
1 parent bf0a65f commit b38f655
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 63 deletions.
130 changes: 69 additions & 61 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "scavenger"
version = "1.8.0"
version = "1.9.0"
license = "GPL-3.0"
authors = ["PoC Consortium <bots@cryptoguru.org>"]
description = """
Expand Down
3 changes: 2 additions & 1 deletion src/miner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,8 @@ impl Miner {
.for_each(move |nonce_data| {
let mut state = state.lock().unwrap();
let deadline = nonce_data.deadline / nonce_data.base_target;
if state.height == nonce_data.height {
// FIX: burst became forky as hell, showing some weaknesses in Scavengers update mechanism.
if state.block == nonce_data.block {
let best_deadline = *state
.account_id_to_best_deadline
.get(&nonce_data.account_id)
Expand Down

0 comments on commit b38f655

Please sign in to comment.