mirror of
https://github.com/Xahau/xahaud.git
synced 2026-07-29 01:50:13 +00:00
fix(consensus): filter agreed export signers by active view
This commit is contained in:
@@ -1256,6 +1256,8 @@ ConsensusExtensions::agreedExportSignatures(
|
||||
return std::nullopt;
|
||||
}
|
||||
|
||||
auto const validatorView = activeValidatorView();
|
||||
auto const isActiveSigner = activeSignerFilter(*this, validatorView);
|
||||
ExportSignatureSnapshot signatures;
|
||||
bool invalid = false;
|
||||
agreedMap->visitLeaves(
|
||||
@@ -1292,6 +1294,8 @@ ConsensusExtensions::agreedExportSignatures(
|
||||
return;
|
||||
|
||||
PublicKey const valPK{makeSlice(pk)};
|
||||
if (!isActiveSigner(valPK))
|
||||
return;
|
||||
|
||||
auto const sigVL = sidecar.getFieldVL(sfTxnSignature);
|
||||
auto const sigSlice = makeSlice(sigVL);
|
||||
|
||||
Reference in New Issue
Block a user