CodeChain-io / CodeChain-io/foundry

Separate out block_opened/closed() from TxOwner

Abierto
#555 0 comentarios 1 reacción 1 asignado Reclamado por @dynaxis Ver en GitHub
Lenguaje dominante
Rust
Estrellas
36
Forks
11
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.