def store_peer_info(info_hash, peer_id, ip, port, status):
    db = get_db()
    if info_hash in db:
        if (peer_id, ip, port, status) not in db[info_hash]:
            db[info_hash].append((peer_id, ip, port, status))
    else:
        db[info_hash] = [(peer_id, ip, port, status)]


# TODO: add ipv6 support
Store the information about the peer.
dataset/ETHPy150Open semk/Pytt/pytt/utils.py/store_peer_info