@staticmethod
async def _process_node_inbox_3PC(node):
    current_view_no = node.viewNo
    stashed_not_3PC = deque()
    types_3PC = (PrePrepare, Prepare, Commit, Ordered)
    while node.nodeInBox:
        m = node.nodeInBox.popleft()
        if ((len(m) == 2) and isinstance(m[0], types_3PC) and (m[0].viewNo == current_view_no) and (m[0].instId == node.instances.masterId)):
            (await node.process_one_node_message(m))
        else:
            stashed_not_3PC.append(m)
    return stashed_not_3PC
@staticmethod
async def _process_node_inbox_3PC(node):
    current_view_no = node.viewNo
    stashed_not_3PC = deque()
    types_3PC = (PrePrepare, Prepare, Commit, Ordered)
    while node.nodeInBox:
        m = node.nodeInBox.popleft()
        if ((len(m) == 2) and isinstance(m[0], types_3PC) and (m[0].viewNo == current_view_no) and (m[0].instId == node.instances.masterId)):
            (await node.process_one_node_message(m))
        else:
            stashed_not_3PC.append(m)
    return stashed_not_3PC