mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 08:07:58 +00:00
send assignments even when we have an approval (#2757)
This commit is contained in:
committed by
GitHub
parent
76db00f398
commit
54074d2d76
@@ -944,13 +944,24 @@ impl State {
|
||||
}
|
||||
match approval_state {
|
||||
ApprovalState::Assigned(cert) => {
|
||||
assignments.push((IndirectAssignmentCert {
|
||||
block_hash: block.clone(),
|
||||
validator: validator_index.clone(),
|
||||
cert: cert.clone(),
|
||||
}, candidate_index.clone()));
|
||||
assignments.push((
|
||||
IndirectAssignmentCert {
|
||||
block_hash: block.clone(),
|
||||
validator: validator_index.clone(),
|
||||
cert: cert.clone(),
|
||||
},
|
||||
candidate_index.clone(),
|
||||
));
|
||||
}
|
||||
ApprovalState::Approved(_, signature) => {
|
||||
ApprovalState::Approved(assignment_cert, signature) => {
|
||||
assignments.push((
|
||||
IndirectAssignmentCert {
|
||||
block_hash: block.clone(),
|
||||
validator: validator_index.clone(),
|
||||
cert: assignment_cert.clone(),
|
||||
},
|
||||
candidate_index.clone(),
|
||||
));
|
||||
approvals.push(IndirectSignedApprovalVote {
|
||||
block_hash: block.clone(),
|
||||
validator: validator_index.clone(),
|
||||
|
||||
Reference in New Issue
Block a user