datrs / hypercore

Secure, distributed, append-only log
https://docs.rs/hypercore
Apache License 2.0
326 stars 37 forks source link

Failing put test #108

Closed Frando closed 4 years ago

Frando commented 4 years ago

I was looking into coupling hypercore-protocol-rs to hypercore today a bit.

However, I was unable to put any data into a cloned hypercore. It seems the put method either has a bug or I did not understand how to use it correctly.

This PR has a failing test. I added some comments on where I arrived at. @yoshuawuyts is my usage of the put method correct? Do you have some ideas why the results are wrong, or is this just unchartered territory and I'd have to investigate myself?

yoshuawuyts commented 4 years ago

@Frando ooph; I don't remember how to use put correctly. I do remember it was really tricky to get it to work, so wouldn't be surprised if there was a bug present.

Frando commented 4 years ago

Great finds @khodzha. Closing this in favor of #110 and #111.