witnet / witnet-rust

Open source Rust implementation of the Witnet decentralized oracle protocol, including full node and wallet backend 👁️🦀
https://docs.witnet.io
GNU General Public License v3.0
180 stars 56 forks source link

fix(mining): abort trying to mine a block when the node is not eligible #2454

Closed drcpu-github closed 4 months ago

drcpu-github commented 4 months ago

Adds a single return statement in mining.rs to prevent the validator still proposing a block even when he's not eligible.