Skip to content

Commit

Permalink
Merge branch 'master' into block-production-improve
Browse files Browse the repository at this point in the history
  • Loading branch information
benaadams authored Oct 23, 2024
2 parents 8e159b8 + 5bddd2e commit c8e0335
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,14 @@ public bool IsRegistered(BlockHeader header, in Dictionary<ulong, byte[]> valida
for (uint i = 0; i < updates; i++)
{
Update update = GetUpdate(header, updates - i - 1);
Message msg = new(update.Message.AsSpan()[..46]);

if (update.Message.Length != 46 || update.Signature.Length != 96)
{
if (_logger.IsDebug) _logger.Debug("Registration message was wrong length.");
continue;
}

Message msg = new(update.Message.AsSpan());

// skip untracked validators
if (!validatorsInfo.ContainsKey(msg.ValidatorIndex))
Expand Down

0 comments on commit c8e0335

Please sign in to comment.