(Mandatory) Description
For now getAllPendingChanges function uses getPastEvents('ChangeRequestInitiated', {fromBlock: 0}) to retrieve all mining keys. I've replaced it with poaInstance.getValidators() because ValidatorMetadata.ChangeRequestInitiated event won't be found after hard fork is done due to the new ValidatorMetadata.
(Mandatory) What is it: (Fix), (Feature), or (Refactor) in Title
(Fix)
(Mandatory) Description For now
getAllPendingChanges
function usesgetPastEvents('ChangeRequestInitiated', {fromBlock: 0})
to retrieve all mining keys. I've replaced it withpoaInstance.getValidators()
becauseValidatorMetadata.ChangeRequestInitiated
event won't be found after hard fork is done due to the newValidatorMetadata
.(Mandatory) What is it: (Fix), (Feature), or (Refactor) in Title (Fix)