CodeChain-io / CodeChain-io/foundry
Separate out block_opened/closed() from TxOwner
Aperta
- Lingua principale
- Rust
- Stelle
- 36
- Fork
- 11
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
We should separate out the block related methods from TxOwner in the following grounds:
1. Some modules not implementing any Tx may serve `TxOwner`s and may want to have chances to prepare to serve them and/or clean up after serving all.
2. Modules implementing multiple types of Txes may get notified on block open/close only once. With `TxOwner`s exported for all Tx types implemented by a module, all of the `TxOwner`s will be redundantly notified.
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.