File tree 4 files changed +18
-14
lines changed
4 files changed +18
-14
lines changed Original file line number Diff line number Diff line change 2
2
3
3
4
4
var run = function ( ) {
5
- // Replace '..' with 'bitcore' if you plan on using this code elsewhere.
6
- var Address = require ( '../Address' ) ;
5
+ // Replace '../bitcore' with 'bitcore' if you use this code elsewhere.
6
+ var bitcore = require ( '../bitcore' ) ;
7
+ var Address = bitcore . Address ;
7
8
8
9
var addrs = [
9
10
'1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa' ,
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
3
var run = function ( ) {
4
- // Replace '..' with 'bitcore' if you plan on using this code elsewhere.
5
- var networks = require ( '../networks' ) ;
6
- var Peer = require ( '../Peer' ) ;
4
+ // Replace '../bitcore' with 'bitcore' if you use this code elsewhere.
5
+ var bitcore = require ( '../bitcore' ) ;
6
+ var networks = bitcore . networks ;
7
+ var Peer = bitcore . Peer ;
7
8
var PeerManager = require ( 'soop' ) . load ( '../PeerManager' , {
8
9
network : networks . testnet
9
10
} ) ;
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
3
var run = function ( ) {
4
- // Replace '..' with 'bitcore' if you plan on using this code elsewhere.
5
- var RpcClient = require ( '../RpcClient' ) ;
4
+ // Replace '../bitcore' with 'bitcore' if you use this code elsewhere.
5
+ var bitcore = require ( '../bitcore' ) ;
6
+ var RpcClient = bitcore . RpcClient ;
6
7
var hash = '0000000000b6288775bbd326bedf324ca8717a15191da58391535408205aada4' ;
7
8
8
9
var config = {
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
3
var run = function ( ) {
4
- // Replace '..' with 'bitcore' if you plan on using this code elsewhere.
5
- var networks = require ( '../networks' ) ;
6
- var Peer = require ( '../Peer' ) ;
7
- var Transaction = require ( '../Transaction' ) ;
8
- var Address = require ( '../Address' ) ;
9
- var Script = require ( '../Script' ) ;
10
- var coinUtil = require ( '../util/util' ) ;
4
+ // Replace '../bitcore' with 'bitcore' if you use this code elsewhere.
5
+ var bitcore = require ( '../bitcore' ) ;
6
+ var networks = bitcore . networks ;
7
+ var Peer = bitcore . Peer ;
8
+ var Transaction = bitcore . Transaction ;
9
+ var Address = bitcore . Address ;
10
+ var Script = bitcore . Script ;
11
+ var coinUtil = bitcore . util ;
11
12
var PeerManager = require ( 'soop' ) . load ( '../PeerManager' , {
12
13
network : networks . testnet
13
14
} ) ;
You can’t perform that action at this time.
0 commit comments