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

Add stake transaction checks in `create_block` (`mining.rs`) #2434

Closed aesedepece closed 6 months ago

aesedepece commented 6 months ago

As of right now, when creating a block candidate, stake transactions are dumped from the mempool into the block without any prior checks regarding transaction weight, etc. Those checks need to be added similarly to how they exist for other transaction types.

aesedepece commented 6 months ago

Solved by e6c963e