containers: mv produce_attestation to Validator - #188
Conversation
KolbyML
left a comment
There was a problem hiding this comment.
This PR feels weird, as the function is more dependent on Store, then it does to the validator_index.
Anyways I think this function should remain in Store, but instead of returning an Attestation, it returns AttestationData, then a validator_id/u64 isn't needed at all.
Then the function in Validator can construct the Attestation and take AttestationData as an argument.
I think this would achieve the goals of this PR, well removing the validator_id context as apart of Store
Just fixed, looks like a good idea, let me know what you think about it. |

🗒️ Description
🔗 Related Issues or PRs
Part of #128
✅ Checklist
toxchecks to avoid unnecessary CI fails:uvx tox