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

Allow setting timelocks on stake transactions #2436

Open aesedepece opened 6 months ago

aesedepece commented 6 months ago

Stake transactions encumbered with a timelock would create the stake entry immediately but only become unstakeable after the timelock is over.

Because of issues with stake aggregation, the timelock may need to become part of the stake key, or a validation rule would be needed to prevent stake entries with the same validator and withdrawer but different timelock.