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

Added configuration option to only connect to trusted peers. Closes #26 #37

Merged
merged 3 commits into from
Feb 18, 2015

Conversation

braydonf
Copy link
Contributor

No description provided.

@braydonf braydonf force-pushed the feature/configuration-options branch from 5682d77 to a93b733 Compare February 16, 2015 18:15
@braydonf braydonf force-pushed the feature/configuration-options branch from a93b733 to ae97e36 Compare February 16, 2015 18:18
@braydonf braydonf changed the title Added configuration option to only connect to trusted peers. Added configuration option to only connect to trusted peers. Closes #26 Feb 16, 2015
}
}
]
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add comments to each option to make it clearer, please? (we want docs to be as obvious as possible)
Example:

var pool = new Pool(Networks.livenet, {
  discover: false, // prevent Pool from discovering and connecting to new peers
  listenAddr: false, // handle network addr messages 
  addrs: [ // initial peers to connect to
    {
      ip: {
        v4: '127.0.0.1'
      }
    }
  ]
});

btw: why do we have both discover and listenAddr? can we simplify that into 1 config setting?

@maraoz
Copy link
Contributor

maraoz commented Feb 18, 2015

great work! I made some small comments above

@braydonf
Copy link
Contributor Author

Updated

@coveralls
Copy link

Coverage Status

Coverage increased (+0.15%) to 92.07% when pulling b643efa on braydonf:feature/configuration-options into e197345 on bitpay:master.

maraoz added a commit that referenced this pull request Feb 18, 2015
Added configuration option to only connect to trusted peers. Closes #26
@maraoz maraoz merged commit a65edf8 into bitpay:master Feb 18, 2015
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

Successfully merging this pull request may close these issues.

None yet

3 participants