Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webcoin doesn't seem to start with testnet #14

Closed
paulkernfeld opened this issue Feb 9, 2016 · 6 comments
Closed

Webcoin doesn't seem to start with testnet #14

paulkernfeld opened this issue Feb 9, 2016 · 6 comments

Comments

@paulkernfeld
Copy link

Maybe this is just set up wrong, but when I run the script below, the process exits after a very short delay. When I change Networks.testnet to Networks.livenet, the script works fine and prints out the updates from the chain's sync event.

I've tried deleting node_modules, and I make sure to delete the data folder before each run.

var Networks = require('bitcore-lib').Networks
var Node = require('webcoin').Node
var assert = require('assert')

var node = new Node({
    network: Networks.testnet,
    path: 'data',
    acceptWeb: true
})
node.on('error', assert.ifError)
node.chain.on('sync', console.log)

node.start()

Here's my output from npm ls:

[email protected] /Users/paul/projects/burnstream
├─┬ [email protected]
│ ├── [email protected]
│ └─┬ [email protected]
│   ├── [email protected]
│   └── [email protected]
├─┬ [email protected]
│ └── [email protected]
├── [email protected]
├─┬ [email protected]
│ └── [email protected]
└─┬ [email protected]
  ├── [email protected]
  ├── [email protected]
  ├─┬ [email protected]
  │ ├── [email protected]
  │ ├── [email protected]
  │ ├── [email protected]
  │ ├─┬ [email protected]
  │ │ ├── [email protected]
  │ │ └── [email protected]
  │ ├── [email protected]
  │ ├── [email protected]
  │ └── [email protected]
  ├─┬ [email protected]
  │ ├── [email protected]
  │ ├── [email protected]
  │ └─┬ [email protected]
  │   ├─┬ [email protected]
  │   │ ├─┬ [email protected]
  │   │ │ └─┬ [email protected]
  │   │ │   ├── [email protected]
  │   │ │   └── [email protected]
  │   │ ├─┬ [email protected]
  │   │ │ ├── [email protected]
  │   │ │ ├── [email protected]
  │   │ │ └─┬ [email protected]
  │   │ │   ├── [email protected]
  │   │ │   ├── [email protected]
  │   │ │   ├── [email protected]
  │   │ │   ├── [email protected]
  │   │ │   ├── [email protected]
  │   │ │   └── [email protected]
  │   │ └── [email protected]
  │   └── [email protected]
  ├── [email protected]
  ├── [email protected]
  ├── [email protected]
  ├─┬ [email protected]
  │ ├─┬ [email protected]
  │ │ └── [email protected]
  │ ├── [email protected]
  │ ├── [email protected]
  │ ├── [email protected]
  │ ├── [email protected]
  │ └─┬ [email protected]
  │   └── [email protected]
  ├─┬ [email protected]
  │ ├─┬ [email protected]
  │ │ └── [email protected]
  │ ├── [email protected]
  │ ├── [email protected]
  │ ├── [email protected]
  │ └─┬ [email protected]
  │   ├── [email protected]
  │   ├─┬ [email protected]
  │   │ ├── [email protected]
  │   │ ├── [email protected]
  │   │ ├─┬ [email protected]
  │   │ │ ├─┬ [email protected]
  │   │ │ │ ├─┬ [email protected]
  │   │ │ │ │ ├─┬ [email protected]
  │   │ │ │ │ │ └── [email protected]
  │   │ │ │ │ └─┬ [email protected]
  │   │ │ │ │   ├── [email protected]
  │   │ │ │ │   └── [email protected]
  │   │ │ │ ├── [email protected]
  │   │ │ │ └── [email protected]
  │   │ │ └── [email protected]
  │   │ ├── [email protected]
  │   │ ├── [email protected]
  │   │ └── [email protected]
  │   ├── [email protected]
  │   ├─┬ [email protected]
  │   │ ├── UNMET DEPENDENCY fstream@^1.0.0
  │   │ ├─┬ [email protected]
  │   │ │ ├── [email protected]
  │   │ │ └─┬ [email protected]
  │   │ │   └─┬ [email protected]
  │   │ │     ├── [email protected]
  │   │ │     └── [email protected]
  │   │ ├── [email protected]
  │   │ ├─┬ [email protected]
  │   │ │ ├── [email protected]
  │   │ │ └── [email protected]
  │   │ ├─┬ [email protected]
  │   │ │ └── UNMET DEPENDENCY abbrev@1
  │   │ ├── [email protected]
  │   │ ├── UNMET DEPENDENCY osenv@0
  │   │ ├─┬ [email protected]
  │   │ │ └─┬ [email protected]
  │   │ │   └─┬ [email protected]
  │   │ │     ├── [email protected]
  │   │ │     └─┬ [email protected]
  │   │ │       └── [email protected]
  │   │ ├── UNMET DEPENDENCY request@2
  │   │ ├── UNMET DEPENDENCY rimraf@2
  │   │ ├─┬ [email protected]
  │   │ │ ├── UNMET DEPENDENCY block-stream@*
  │   │ │ └── UNMET DEPENDENCY fstream@^1.0.2
  │   │ └── UNMET DEPENDENCY which@1
  │   ├── [email protected]
  │   ├─┬ [email protected]
  │   │ ├── [email protected]
  │   │ ├─┬ [email protected]
  │   │ │ └── [email protected]
  │   │ └─┬ [email protected]
  │   │   ├── [email protected]
  │   │   ├─┬ [email protected]
  │   │   │ ├── [email protected]
  │   │   │ └── [email protected]
  │   │   ├─┬ [email protected]
  │   │   │ ├── [email protected]
  │   │   │ └── [email protected]
  │   │   └── [email protected]
  │   ├── [email protected]
  │   ├─┬ [email protected]
  │   │ └── [email protected]
  │   ├─┬ [email protected]
  │   │ ├── [email protected]
  │   │ ├── [email protected]
  │   │ └── [email protected]
  │   ├─┬ [email protected]
  │   │ ├── [email protected]
  │   │ └── [email protected]
  │   ├── [email protected]
  │   ├─┬ [email protected]
  │   │ ├── [email protected]
  │   │ ├─┬ [email protected]
  │   │ │ ├── [email protected]
  │   │ │ └── [email protected]
  │   │ └── [email protected]
  │   └── [email protected]
  ├─┬ [email protected]
  │ ├─┬ [email protected]
  │ │ └─┬ [email protected]
  │ │   └── [email protected]
  │ ├── [email protected]
  │ ├─┬ [email protected]
  │ │ └─┬ [email protected]
  │ │   └── [email protected]
  │ ├─┬ [email protected]
  │ │ ├── [email protected]
  │ │ ├─┬ [email protected]
  │ │ │ ├── [email protected]
  │ │ │ ├── [email protected]
  │ │ │ └── [email protected]
  │ │ └── [email protected]
  │ ├── [email protected]
  │ ├── [email protected]
  │ └── [email protected]
  ├─┬ [email protected]
  │ └── [email protected]
  ├─┬ [email protected]
  │ ├── [email protected]
  │ ├─┬ [email protected]
  │ │ └─┬ [email protected]
  │ │   ├── [email protected]
  │ │   └─┬ [email protected]
  │ │     └─┬ [email protected]
  │ │       └── [email protected]
  │ ├── [email protected]
  │ ├─┬ [email protected]
  │ │ ├── [email protected]
  │ │ ├── [email protected]
  │ │ ├── [email protected]
  │ │ └─┬ [email protected]
  │ │   └── [email protected]
  │ ├── UNMET OPTIONAL DEPENDENCY [email protected]
  │ └─┬ [email protected]
  │   ├── UNMET OPTIONAL DEPENDENCY [email protected]
  │   ├── [email protected]
  │   ├── [email protected]
  │   └── UNMET OPTIONAL DEPENDENCY [email protected]
  ├── [email protected]
  └── UNMET OPTIONAL DEPENDENCY [email protected]

npm ERR! missing: fstream@^1.0.0, required by [email protected]
npm ERR! missing: osenv@0, required by [email protected]
npm ERR! missing: request@2, required by [email protected]
npm ERR! missing: rimraf@2, required by [email protected]
npm ERR! missing: which@1, required by [email protected]
npm ERR! missing: abbrev@1, required by [email protected]
npm ERR! missing: block-stream@*, required by [email protected]
npm ERR! missing: fstream@^1.0.2, required by [email protected]
@paulkernfeld
Copy link
Author

Actually, this also happens when I change webcoin's bin/wallet.js to use the testnet.

@paulkernfeld
Copy link
Author

Oh... and now also test/node.js is failing. That's weird, because it was passing before. Hmm... so I don't know how you would reproduce this problem.

@paulkernfeld
Copy link
Author

Ohhhhh snap! The problem only happens when I have my local Bitcoin client running in testnet mode. As soon as I close it, everything works fine.

@mappum
Copy link
Owner

mappum commented Feb 10, 2016

Handling different networks is being overhauled in the current refactor. #13

@mappum
Copy link
Owner

mappum commented May 12, 2016

Testnet support should work much differently now due to the new network params, so this error shouldn't happen anymore.

@mappum mappum closed this as completed May 12, 2016
@paulkernfeld
Copy link
Author

Yeah, I can confirm that I'm not getting this with the new webcoin. 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants