def apply_reject(header, payload, state): reject_payload = role_transaction_pb2.RejectAddRoleAdmin() reject_payload.ParseFromString(payload.content) txn_signer_owners_address = addresser.make_role_owners_address( reject_payload.role_id, header.signer_public_key) state_entries = validate_role_admin_or_owner( header=header, confirm=reject_payload, txn_signer_rel_address=txn_signer_owners_address, state=state) handle_reject(state_entries, header, reject=reject_payload, state=state)
def apply_reject(header, payload, state): reject = role_transaction_pb2.RejectAddRoleTask() reject.ParseFromString(payload.content) txn_signer_task_owner_address = addresser.make_task_owners_address( reject.task_id, header.signer_public_key) state_entries = validate_role_task( header, reject, txn_signer_rel_address=txn_signer_task_owner_address, state=state) handle_reject(state_entries=state_entries, header=header, reject=reject, state=state, rel_type='task_id')