@phantomchain/core-p2p
P2P API for PHANTOM Core
Last updated a year ago by meandevstar .
MIT · Original npm · Tarball · package.json
$ cnpm install @phantomchain/core-p2p 
SYNC missed versions from official npm registry.

PHANTOM Core)

PHANTOM Core - P2P API

Installation

yarn add @phantomchain/core-p2p

Configuration

module.exports = {
  host: process.env.PHANTOM_P2P_HOST || '0.0.0.0',
  port: process.env.PHANTOM_P2P_PORT || 4002,
  remoteInterface: false,
  dns: [
    // Google
    '8.8.8.8',
    '8.8.4.4',
    // CloudFlare
    '1.1.1.1',
    '1.0.0.1',
    // OpenDNS
    '208.67.222.222',
    '208.67.220.220',
  ],
  ntp: ['pool.ntp.org', 'time.google.com'],
  whitelist: ['127.0.0.1', '::ffff:127.0.0.1'],
  // @see https://github.com/wraithgar/hapi-rate-limit
  rateLimit: {
    enabled: true,
    pathLimit: false,
    userLimit: 1000,
    ipWhitelist: ['127.0.0.1', '::ffff:127.0.0.1'],
  },
}

Security

If you discover a security vulnerability within this package, please send an e-mail to security@phantom.org. All security vulnerabilities will be promptly addressed.

Credits

License

MIT © ArkEcosystem

Current Tags

  • 0.1.5                                ...           latest (a year ago)

4 Versions

  • 0.1.5                                ...           a year ago
  • 0.1.3                                ...           2 years ago
  • 0.1.2                                ...           2 years ago
  • 0.1.1                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dependencies (20)
Dev Dependencies (3)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |