How to make two clients with different accounts in sync

Hi,

I have two peers having different account seeds. They both have accepted an invitation of a Thread, and registered to the same Cafe (Textile dev Cafe).

I expect that they will keep receiving the updates to the Thread reliably, but they don’t:

  • #1 is a CLI client running on my laptop with a local daemon
  • #2 is a CLI client running on AWS with a local daemon

My steps are

  1. #1 and #2 register to the same Cafe.

  2. #1 creates a Thread. (type: open, sharing: shared)

  3. #2 accepts an invitation of the Thread.

  4. #1 and #2 add photos to the Thread.

  5. #1 sees 55 blocks, but #2 sees 15 blocks.

    #1 $ textile thread ls
    {
        "items": [
            {
                "block_count": 55,
                ...
                "id": "12D3KooWHqTZPqKQQ9gCFVpb2onkNXot1AzCgPyAWwZVHpEYKmpD",
                ...
            }
        ]
    }
    
    #2 $ textile thread ls
    {
        "items": [
            {
                "block_count": 15,
                ...
                "id": "12D3KooWHqTZPqKQQ9gCFVpb2onkNXot1AzCgPyAWwZVHpEYKmpD",
                ...
            }
        ]
    }
    
  6. #2 can find updates (snapshots), but the block count does not increase after applied the snapshots

    #2 $ textile account sync
    ...
    {
        "id": "12D3KooWHqTZPqKQQ9gCFVpb2onkNXot1AzCgPyAWwZVHpEYKmpD:QmPnxQzgLpysB9iHysJZkcQfjHQ7KVrb9zoAvBxNeTQSJj,QmbYRDEFEFvRSUncYdfpUcX6pBhi9tN6oMN9duKqjQLDjY,QmTPVaNbgMP4u3f3d5bnoByiMiE1NX4Pqet9PSgzhxU85K,QmZgPNydriQY8x7xYfHK9e6rqRCDS4eSMAKoGGYfVQquBF,QmaqKFLswYMLGYCy3if5m9huswLKb5UpAVD2VesTVFU6ud,QmWMWhhq3SaryRxcVKbsQ912Kx1sqzxSxAefpWWZhYAgSD,Qmf9eceuysTjbGE3p2ssnfRczV7YBd4Bv5rAcr4s6HKeKq",
        "value": {
            "@type": "/Thread",
            "id": "12D3KooWHqTZPqKQQ9gCFVpb2onkNXot1AzCgPyAWwZVHpEYKmpD",
            ...
        }
    }
    ...
    Apply 2 snapshots? [y/n]: y
    ...
    applied 12D3KooWHqTZPqKQQ9gCFVpb2onkNXot1AzCgPyAWwZVHpEYKmpD:QmPnxQzgLpysB9iHysJZkcQfjHQ7KVrb9zoAvBxNeTQSJj,QmbYRDEFEFvRSUncYdfpUcX6pBhi9tN6oMN9duKqjQLDjY,QmTPVaNbgMP4u3f3d5bnoByiMiE1NX4Pqet9PSgzhxU85K,QmZgPNydriQY8x7xYfHK9e6rqRCDS4eSMAKoGGYfVQquBF,QmaqKFLswYMLGYCy3if5m9huswLKb5UpAVD2VesTVFU6ud,QmWMWhhq3SaryRxcVKbsQ912Kx1sqzxSxAefpWWZhYAgSD,Qmf9eceuysTjbGE3p2ssnfRczV7YBd4Bv5rAcr4s6HKeKq
    ...
    
    #2 $ textile thread ls
    {
        "items": [
            {
                "block_count": 15,
                ...
                "id": "12D3KooWHqTZPqKQQ9gCFVpb2onkNXot1AzCgPyAWwZVHpEYKmpD",
                ...
            }
        ]
    }
    

My understanding is: if a peer registers to any Cafe, the peer will reliably receive all the updates of the Threads which it has permission to access. Is it correct?

Thanks in advance for any suggestion!

1 Like