paypro: example - add extra arguments for experimentation.

This commit is contained in:
Christopher Jeffrey 2014-08-18 13:06:33 -07:00
parent f972baf42c
commit bd227930e1
1 changed files with 5 additions and 2 deletions

View File

@ -288,7 +288,10 @@ app.post('/-/pay', function(req, res, next) {
}); });
print('Broadcasting transaction...'); print('Broadcasting transaction...');
if (!argv['no-tx']) {
conn.sendTx(tx); conn.sendTx(tx);
}
}); });
} else { } else {
print('No BTC network connection. Retrying...'); print('No BTC network connection. Retrying...');
@ -311,7 +314,7 @@ var peerman = new bitcore.PeerManager({
network: 'testnet' network: 'testnet'
}); });
peerman.peerDiscovery = false; peerman.peerDiscovery = argv.d || argv.discovery || false;
peerman.addPeer(new bitcore.Peer('testnet-seed.alexykot.me', 18333)); peerman.addPeer(new bitcore.Peer('testnet-seed.alexykot.me', 18333));
peerman.addPeer(new bitcore.Peer('testnet-seed.bitcoin.petertodd.org', 18333)); peerman.addPeer(new bitcore.Peer('testnet-seed.bitcoin.petertodd.org', 18333));