coreblocks
coreblocks copied to clipboard
Precommit using validate_arguments
This PR makes the precommit
method in ROB runnable only if the rob_id
from its argument matches. This allows to eliminate m.If
expressions comparing rob_id
s in FUs.
What do you think? Is this a good idea? I kind of like it because this seems to fit better to Transactron's philosophy: actions which are impossible due to external factors are not performed because of methods not being ready.
This PR depends on #663 and #679.
TODO:
- [x] Solve #678
- [x] Fix tests