datdotorg / datdot-node-rust

datdot blockchain node in rust
https://playproject.io/datdot-node-rust
GNU General Public License v3.0
48 stars 9 forks source link

Calculate weights or create weight functions. #21

Open jam10o-new opened 4 years ago

jam10o-new commented 4 years ago

The weight system in substrate/FRAME is key to preventing resource exhaustion attacks on the chain, so it is important to set sane values for weights.

Specifically, weights in https://github.com/playproject-io/datdot-substrate/blob/master/pallet-datdot/src/lib.rs are currently all placeholder values.

Some resources - https://www.shawntabrizi.com/substrate/substrate-weight-and-fees/