diff --git a/Cargo.lock b/Cargo.lock index 3fa0b15ac..8cc7e6cb1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -850,7 +850,7 @@ dependencies = [ [[package]] name = "diamond-node" -version = "4.0.2-rc3" +version = "4.0.2" dependencies = [ "ansi_term 0.10.2", "atty", @@ -3579,7 +3579,7 @@ dependencies = [ [[package]] name = "parity-version" -version = "4.0.2-rc3" +version = "4.0.2" dependencies = [ "parity-bytes", "rlp", diff --git a/Cargo.toml b/Cargo.toml index c283c8c90..1e225d0df 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ description = "Diamond Node" name = "diamond-node" # NOTE Make sure to update util/version/Cargo.toml as well -version = "4.0.2-rc3" +version = "4.0.2" license = "GPL-3.0" authors = [ "bit.diamonds developers", diff --git a/crates/concensus/miner/src/pool/queue.rs b/crates/concensus/miner/src/pool/queue.rs index fcf9659cb..dc9fd9e6f 100644 --- a/crates/concensus/miner/src/pool/queue.rs +++ b/crates/concensus/miner/src/pool/queue.rs @@ -415,8 +415,8 @@ impl TransactionQueue { .collect() } - /// Performs garbage collection of the pool of this transactionqueue for free service transactions. - /// Removes transaction that are not valid anymore. + /// Performs garbage collection on the pool of this `TransactionQueue` for free service transactions. + /// Removes transactions that are not valid anymore. /// The process executes listener calls. pub fn garbage_collect bool>( &self, diff --git a/crates/ethcore/src/client/client.rs b/crates/ethcore/src/client/client.rs index 43e52b75e..48291d278 100644 --- a/crates/ethcore/src/client/client.rs +++ b/crates/ethcore/src/client/client.rs @@ -306,7 +306,7 @@ pub struct Client { shutdown: Arc, - /// block number and block has of latest gc. + /// block number and block hash of latest gc. /// this information is used to avoid double garbage collection. garbage_collect_latest_block: Mutex<(u64, H256)>, @@ -848,11 +848,6 @@ impl Importer { client.schedule_garbage_collect_in_queue(); - //self.on_block_commit_finalized(); - - //client.miner().g - //client.check_garbage();.garbage_collect(Duration::from_secs(1)); - route } @@ -1582,9 +1577,9 @@ impl Client { } // here hides an accepted race condition. - // latest block could change during loing ongoing GCs. + // latest block could change during long ongoing GCs. // this could be avoided developing a more complex GC logic. - // but the GC blocks the tx queue, so it has to be placing fast. + // but the GC blocks the tx queue, so it has to be blazing fast. self.importer.miner.collect_garbage(|tx| match machine.verify_transaction(tx.signed(), block_header, self) { Ok(_) => true, diff --git a/crates/ethcore/src/miner/miner.rs b/crates/ethcore/src/miner/miner.rs index bc2a08bb8..5df562f2c 100644 --- a/crates/ethcore/src/miner/miner.rs +++ b/crates/ethcore/src/miner/miner.rs @@ -421,7 +421,7 @@ impl Miner { } /// Performs garbage collection of the pool for free service transactions. - /// Removes transaction that are not valid anymore. + /// Removes transactions that are not valid anymore. /// The process executes listener calls. pub fn collect_garbage bool>( &self, diff --git a/crates/util/version/Cargo.toml b/crates/util/version/Cargo.toml index 12b6250c6..8737eca0a 100644 --- a/crates/util/version/Cargo.toml +++ b/crates/util/version/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "parity-version" # NOTE: this value is used for OpenEthereum version string (via env CARGO_PKG_VERSION) -version = "4.0.2-rc3" +version = "4.0.2" authors = [ "bit.diamonds developers", "OpenEthereum developers",