sending tx works
This commit is contained in:
parent
4d59d7cfd5
commit
884d0b5945
2 changed files with 1 additions and 13 deletions
|
|
@ -456,7 +456,6 @@ Wallet.prototype.netStart = function(callback) {
|
|||
|
||||
net.start(startOpts, function() {
|
||||
self.emit('ready', net.getPeer());
|
||||
self.fakeConnections();
|
||||
setTimeout(function() {
|
||||
self.emit('publicKeyRingUpdated', true);
|
||||
//self.scheduleConnect();
|
||||
|
|
@ -467,17 +466,6 @@ Wallet.prototype.netStart = function(callback) {
|
|||
};
|
||||
|
||||
|
||||
// TODO temporary method. should remove this when we refactor peerID out
|
||||
Wallet.prototype.fakeConnections = function() {
|
||||
var all = this.publicKeyRing.getAllCopayerIds();
|
||||
for (var i = 0; i < all.length; i++) {
|
||||
var copayerID = all[i];
|
||||
var peerID = this.network.peerFromCopayer(copayerID);
|
||||
this.network._addCopayerMap(peerID, copayerID);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
// not being used now
|
||||
Wallet.prototype.scheduleConnect = function() {
|
||||
var self = this;
|
||||
|
|
|
|||
|
|
@ -226,7 +226,7 @@ Network.prototype._onMessage = function(enc) {
|
|||
default:
|
||||
console.log(JSON.stringify(self.copayerForPeer));
|
||||
console.log('data from '+sender+' '+self.copayerForPeer[sender]);
|
||||
this.emit('data', self.copayerForPeer[sender], payload);
|
||||
this.emit('data', sender, payload);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue