mirror of
https://github.com/Permissionless-Software-Foundation/ipfs-bch-wallet-consumer.git
synced 2026-09-21 16:52:03 -07:00
Merge pull request #56 from Permissionless-Software-Foundation/ct-unstable
Improvements from production testing
This commit is contained in:
Vendored
+4
-1
@@ -119,7 +119,10 @@ export default {
|
|||||||
'@type': 'Organization',
|
'@type': 'Organization',
|
||||||
name: 'Permissionless Software Foundation',
|
name: 'Permissionless Software Foundation',
|
||||||
url: 'https://PSFoundation.cash'
|
url: 'https://PSFoundation.cash'
|
||||||
}
|
},
|
||||||
|
|
||||||
|
// If this node has an IP4 address or domain name used to provide a REST API.
|
||||||
|
web2Api: process.env.WEB2_API ? process.env.WEB2_API : null
|
||||||
},
|
},
|
||||||
|
|
||||||
// IPFS Ports
|
// IPFS Ports
|
||||||
|
|||||||
@@ -66,8 +66,6 @@ RUN npm install
|
|||||||
# Generate the API docs
|
# Generate the API docs
|
||||||
RUN npm run docs
|
RUN npm run docs
|
||||||
|
|
||||||
VOLUME /home/safeuser/keys
|
|
||||||
|
|
||||||
# Expose the port the API will be served on.
|
# Expose the port the API will be served on.
|
||||||
#EXPOSE 5010
|
#EXPOSE 5010
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ services:
|
|||||||
options:
|
options:
|
||||||
max-size: '10m'
|
max-size: '10m'
|
||||||
max-file: '10'
|
max-file: '10'
|
||||||
#mem_limit: 500mb
|
mem_limit: 4000mb
|
||||||
links:
|
links:
|
||||||
- mongo-bch-consumer
|
- mongo-bch-consumer
|
||||||
ports:
|
ports:
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ import config from '../../../config/index.js'
|
|||||||
|
|
||||||
// The minimum version of ipfs-bch-wallet-service that this wallet can work with.
|
// The minimum version of ipfs-bch-wallet-service that this wallet can work with.
|
||||||
const MIN_BCH_WALLET_VERSION = '1.11.11'
|
const MIN_BCH_WALLET_VERSION = '1.11.11'
|
||||||
const WALLET_PROTOCOL = 'bch-wallet'
|
const WALLET_PROTOCOL = 'bch-wallet-service'
|
||||||
const MIN_P2WDB_VERSION = '1.4.0'
|
const MIN_P2WDB_VERSION = '1.4.0'
|
||||||
const P2WDB_PROTOCOL = 'p2wdb'
|
const P2WDB_PROTOCOL = 'p2wdb'
|
||||||
const MIN_FILE_PIN_VERSION = '1.0.0'
|
const MIN_FILE_PIN_VERSION = '1.0.0'
|
||||||
|
|||||||
@@ -96,6 +96,10 @@ class IpfsUseCases {
|
|||||||
const metadata = await ipfsFiles.getFileMetadata({ cid })
|
const metadata = await ipfsFiles.getFileMetadata({ cid })
|
||||||
console.log('getCidMetadata() metadata: ', metadata)
|
console.log('getCidMetadata() metadata: ', metadata)
|
||||||
|
|
||||||
|
if (metadata.success === false) {
|
||||||
|
throw new Error(metadata.message)
|
||||||
|
}
|
||||||
|
|
||||||
const filename = metadata.fileMetadata.filename
|
const filename = metadata.fileMetadata.filename
|
||||||
|
|
||||||
return filename
|
return filename
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ const peerData = [
|
|||||||
'@type': 'WebAPI',
|
'@type': 'WebAPI',
|
||||||
name: 'trout-bch-wallet-service-dev',
|
name: 'trout-bch-wallet-service-dev',
|
||||||
version: '1.11.12',
|
version: '1.11.12',
|
||||||
protocol: 'bch-wallet',
|
protocol: 'bch-wallet-service',
|
||||||
description:
|
description:
|
||||||
'IPFS service providing BCH blockchain access needed by a wallet.',
|
'IPFS service providing BCH blockchain access needed by a wallet.',
|
||||||
documentation: 'https://ipfs-bch-wallet-service.fullstack.cash/',
|
documentation: 'https://ipfs-bch-wallet-service.fullstack.cash/',
|
||||||
|
|||||||
Reference in New Issue
Block a user