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

[runtime/idea] take advantage of instantiable modules. #8

Open jam10o-new opened 4 years ago

jam10o-new commented 4 years ago

I'm considering implementing #6 by turning dat_verify into an instantiable module, and making each "parallel" track a separate instance of the module - they would all call into a separate "dat_store" module.

It may also be a good idea to have the different challenge types be in different modules (maybe sharing a challenge trait).

I need to think about the internal api here though so it isn't too complex.

jam10o-new commented 4 years ago

I've just been informed that instances can only be defined at runtime so the idea of using them to manage parallel challenges largely goes down the drain.