CodeChain-io / CodeChain-io/foundry

Separate out block_opened/closed() from TxOwner

Offen
#555 0 Kommentare 1 Reaktion 1 zugewiesene Person Beansprucht von @dynaxis Auf GitHub ansehen
Vorherrschende Sprache
Rust
Sterne
36
Forks
11
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.