Replies: 3 comments
-
(Note for future workings) To elide
Also, since |
Beta Was this translation helpful? Give feedback.
0 replies
-
Closing, since
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In many cases dealing with
Block<T>
orTransaction<T>
, we don't need to know the specific type of actions (i.e.,T
) that the block contains sinceT
is needed only in limited cases. (i.e., calculating the next states)So it has been proposed to get rid of this 'T' for a long time too. But since
Block<T>
andTransaction<T>
had already been used too much, we couldn't get our hands on them easily.To make this easier, I suggest the following sequence:
T
fromBlock<T>
,Transaction<T>
, define new interfaces that guarantee only other necessary information (e.g., header).Block<T>
, andTransaction<T>
(e.g.,Swarm<T>
), use the interface used in 1 and remove theT
.T
fromBlock<T>
, andTransaction<T>
, and only explicitly assume this in classes that need it, such asActionEvaluator
.Beta Was this translation helpful? Give feedback.
All reactions