Skip to content

Commit 5e6de72

Browse files
authored
Merge pull request #333 from SurfingNerd/4.0-release
4.0.2 release preparation
2 parents 09a3a2a + b1eecb9 commit 5e6de72

File tree

6 files changed

+10
-15
lines changed

6 files changed

+10
-15
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
description = "Diamond Node"
33
name = "diamond-node"
44
# NOTE Make sure to update util/version/Cargo.toml as well
5-
version = "4.0.2-rc3"
5+
version = "4.0.2"
66
license = "GPL-3.0"
77
authors = [
88
"bit.diamonds developers",

crates/concensus/miner/src/pool/queue.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,8 +415,8 @@ impl TransactionQueue {
415415
.collect()
416416
}
417417

418-
/// Performs garbage collection of the pool of this transactionqueue for free service transactions.
419-
/// Removes transaction that are not valid anymore.
418+
/// Performs garbage collection on the pool of this `TransactionQueue` for free service transactions.
419+
/// Removes transactions that are not valid anymore.
420420
/// The process executes listener calls.
421421
pub fn garbage_collect<F: Fn(&VerifiedTransaction) -> bool>(
422422
&self,

crates/ethcore/src/client/client.rs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ pub struct Client {
306306

307307
shutdown: Arc<ShutdownManager>,
308308

309-
/// block number and block has of latest gc.
309+
/// block number and block hash of latest gc.
310310
/// this information is used to avoid double garbage collection.
311311
garbage_collect_latest_block: Mutex<(u64, H256)>,
312312

@@ -848,11 +848,6 @@ impl Importer {
848848

849849
client.schedule_garbage_collect_in_queue();
850850

851-
//self.on_block_commit_finalized();
852-
853-
//client.miner().g
854-
//client.check_garbage();.garbage_collect(Duration::from_secs(1));
855-
856851
route
857852
}
858853

@@ -1582,9 +1577,9 @@ impl Client {
15821577
}
15831578

15841579
// here hides an accepted race condition.
1585-
// latest block could change during loing ongoing GCs.
1580+
// latest block could change during long ongoing GCs.
15861581
// this could be avoided developing a more complex GC logic.
1587-
// but the GC blocks the tx queue, so it has to be placing fast.
1582+
// but the GC blocks the tx queue, so it has to be blazing fast.
15881583
self.importer.miner.collect_garbage(|tx|
15891584
match machine.verify_transaction(tx.signed(), block_header, self) {
15901585
Ok(_) => true,

crates/ethcore/src/miner/miner.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ impl Miner {
421421
}
422422

423423
/// Performs garbage collection of the pool for free service transactions.
424-
/// Removes transaction that are not valid anymore.
424+
/// Removes transactions that are not valid anymore.
425425
/// The process executes listener calls.
426426
pub fn collect_garbage<F: Fn(&VerifiedTransaction) -> bool>(
427427
&self,

crates/util/version/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "parity-version"
33
# NOTE: this value is used for OpenEthereum version string (via env CARGO_PKG_VERSION)
4-
version = "4.0.2-rc3"
4+
version = "4.0.2"
55
authors = [
66
"bit.diamonds developers",
77
"OpenEthereum developers",

0 commit comments

Comments
 (0)