architecture refactor

This commit is contained in:
Manuel Araoz 2014-04-14 15:31:10 -03:00
commit 59c00da592
17 changed files with 151 additions and 47 deletions

View file

@ -244,7 +244,7 @@ console.log('[network.js.178:pkr:]',pkr); //TODO
// public methods
var init = function(cb) {
var cp = $rootScope.cp = new copay.CopayPeer({
var cp = $rootScope.cp = new copay.Network({
apiKey: config.p2pApiKey,
debug: config.p2pDebug,
maxPeers: config.maxPeers, // TODO: This should be on wallet configuration