ssvlabs / ssv-spec

GNU General Public License v3.0
25 stars 21 forks source link

Refactor PartialSigContainer.HasSigner: avoid duplication code and rename #444

Closed MatheusFranco99 closed 2 weeks ago

MatheusFranco99 commented 2 weeks ago

Overview

This PR performs two changes:

  1. Uses PartialSigContainer.GetSignature in PartialSigContainer.HasSigner to avoid duplication code.
  2. Renames PartialSigContainer.HasSigner to PartialSigContainer.HasSignature, since we're actually looking for the existence (or not) of a signature.