@staticmethod
async def on_view_change_started(node, msg: ViewChangeStartMessage, frm):
    strategy = node.view_changer.pre_vc_strategy
    proposed_view_no = msg.proposed_view_no
    logger.info('VCStartMsgStrategy: got ViewChangeStartMessage with proposed_view_no: {}'.format(proposed_view_no))
    if (proposed_view_no > node.view_changer.view_no):
        vcc_msg = ViewChangeContinueMessage(proposed_view_no)
        quota = Quota(count=(node.config.EXTENDED_QUOTA_MULTIPLIER_BEFORE_VC * node.quota_control.node_quota.count), size=(node.config.EXTENDED_QUOTA_MULTIPLIER_BEFORE_VC * node.quota_control.node_quota.size))
        msgs_count = (await node.nodestack.service(limit=None, quota=quota))
        logger.info('VCStartMsgStrategy: Got {} messages from nodestack'.format(msgs_count))
        strategy.stashedNodeInBox = (await VCStartMsgStrategy._process_node_inbox_3PC(node))
        logger.info('VCStartMsgStrategy: {} not 3PC msgs was stashed'.format(len(strategy.stashedNodeInBox)))
        node.master_replica.inBox.append(vcc_msg)
@staticmethod
async def on_view_change_started(node, msg: ViewChangeStartMessage, frm):
    strategy = node.view_changer.pre_vc_strategy
    proposed_view_no = msg.proposed_view_no
    logger.info('VCStartMsgStrategy: got ViewChangeStartMessage with proposed_view_no: {}'.format(proposed_view_no))
    if (proposed_view_no > node.view_changer.view_no):
        vcc_msg = ViewChangeContinueMessage(proposed_view_no)
        quota = Quota(count=(node.config.EXTENDED_QUOTA_MULTIPLIER_BEFORE_VC * node.quota_control.node_quota.count), size=(node.config.EXTENDED_QUOTA_MULTIPLIER_BEFORE_VC * node.quota_control.node_quota.size))
        msgs_count = (await node.nodestack.service(limit=None, quota=quota))
        logger.info('VCStartMsgStrategy: Got {} messages from nodestack'.format(msgs_count))
        strategy.stashedNodeInBox = (await VCStartMsgStrategy._process_node_inbox_3PC(node))
        logger.info('VCStartMsgStrategy: {} not 3PC msgs was stashed'.format(len(strategy.stashedNodeInBox)))
        node.master_replica.inBox.append(vcc_msg)