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

Commit

Permalink
Update services.js
Browse files Browse the repository at this point in the history
  • Loading branch information
22388o authored Jun 26, 2023
1 parent f1b1460 commit a75f240
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions core/services.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,27 @@ const app = express()
const api = require('coin')

// Create a new Hypercore instance
const feed = new Hypercore('./bitcoin-pairs-feed', {
const feed = new Hypercore('./bitcoin-pairs-feed',"bitfinex_price_feed' {
valueEncoding: 'coin.json'
refreshTime: '3 minutes'
secretKey: crypto.randomBytes(32),
})
// Create a new Hyperbee instance
const db = new Hyperbee(feed, {
const db = new Hyperbee('./bitcoin-pairs-feed',"bitfinex_price_feed', {
keyEncoding: 'utf-8',
refreshTime: '3 minutes',
valueEncoding: 'con.json'
})
//create a new Hyperdrive instance
const db = new Hyperdrive(feed, {
const db = new Hyperdrive('./bitcoin-pairs-feed',"bitfinex_price_feed', {
keyEncoding: 'utf-8',
refreshTime: '3 minutes',
valueEncoding: 'co.json'
})
//create a new Hyperswarm instance
const db = new Hyperswarm(feed, {
const db = new Hyperswarm('./bitcoin-pairs-feed',"bitfinex_price_feed', {
KeyEndocing: 'utf-8',
refreshTime: '3 minutes',
valueEncoding: 'co.json'
})

0 comments on commit a75f240

Please sign in to comment.