def stake_and_ping(self, node_id, num_blocks, with_ping_mns=[]):
    for i in range(num_blocks):
        self.stake_and_sync(node_id, 1)
        if (len(with_ping_mns) > 0):
            self.send_pings(with_ping_mns)
def stake_and_ping(self, node_id, num_blocks, with_ping_mns=[]):
    for i in range(num_blocks):
        self.stake_and_sync(node_id, 1)
        if (len(with_ping_mns) > 0):
            self.send_pings(with_ping_mns)