Skip to content
This repository has been archived by the owner on Jan 4, 2022. It is now read-only.

Update orbit-db to 0.28.0 #134

Closed
EmiM opened this issue Nov 3, 2021 · 7 comments
Closed

Update orbit-db to 0.28.0 #134

EmiM opened this issue Nov 3, 2021 · 7 comments
Assignees

Comments

@EmiM
Copy link
Collaborator

EmiM commented Nov 3, 2021

No description provided.

@EmiM
Copy link
Collaborator Author

EmiM commented Nov 3, 2021

Note: #120 this may be helpful

@EmiM EmiM changed the title Update orbit-db to 0.27.2 Update orbit-db to 0.28.0 Nov 23, 2021
@EmiM
Copy link
Collaborator Author

EmiM commented Nov 23, 2021

#152

@EmiM
Copy link
Collaborator Author

EmiM commented Nov 23, 2021

The issues that I encountered:

@EmiM
Copy link
Collaborator Author

EmiM commented Nov 25, 2021

^ The above issues have been resolved:

  • Replication events didn't happen because nodes were not connecting (IPFS.create accepts PeerID's private key in init options now)
  • IPFS devs fixed the Agent issue and released a new patch so I bumped IPFS js to 0.60.2 in waggle
  • Added jest setup file which sets global crypto. This may be a workaround.

@EmiM
Copy link
Collaborator Author

EmiM commented Nov 25, 2021

I noticed a change in replication behavior.
This is what I see during test (1000 entries in log db):

@EmiM
Copy link
Collaborator Author

EmiM commented Nov 29, 2021

@EmiM
Copy link
Collaborator Author

EmiM commented Dec 1, 2021

  • replicate event works as expected (the previous chunky behavior was a bug):

haad @haad:matrix.org [m] 16:07
hey, thanks for the pings. regarding the replicated event: indeed, this is now sent only when the db has been (fully) replicated. in fact, the previous behaviour wasn't intended (replicated events "chunked"). however, if I understand the need described above, you want to be able to "know when some progress of replication has been made" and the replicate.progress event will give you that (see https://github.com/orbitdb/orbit-db-store/blob/main/src/Store.js#L100 for the callback signature and params). it's emitted for each replicated db log entry. with that, you can eg. show a nice progress bar, or hook to it to show the replicated data to the user. note though that when replicate.progress is fired, the DB index hasn't been updated yet with the replicated data.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants