2.0.2 • Published 3 months ago

hypercore-proof-queue v2.0.2

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
3 months ago

hypercore-proof-queue

First install it

npm install hypercore-proof-queue

API

Then in one process

const HPQ = require('hypercore-proof-queue')
const q = new HPQ('/tmp/my-queue') // which file to use

q.push({
  discoveryKey, // which core
  // add the proof below
  fork: 0,
  block: {
    index: 10,
    value: Buffer.from('hello'),
    nodes: []
  }
})

And simply in another one, at any future or concurrent point

const q = new HPQ('/tmp/my-queue', async function (proofs) {
  console.log('incoming proofs', proofs)
})

That is it

License

Apache-2.0

2.0.2

3 months ago

2.0.1

4 months ago

2.0.0

6 months ago

1.0.4

7 months ago

1.0.3

7 months ago

1.0.2

7 months ago

1.0.1

7 months ago

1.0.0

7 months ago