Skip to content

Commit b3ceedd

Browse files
author
Micah Riggan
committed
Updating bitcore-lib from master
1 parent d5c91f0 commit b3ceedd

26 files changed

+48115
-51672
lines changed

packages/bitcore-lib/.travis.yml

+12-7
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
11
language: node_js
22
sudo: false
33
node_js:
4-
- '6'
54
- '8'
6-
before_install:
7-
- npm install -g bower
8-
- export DISPLAY=:99.0
9-
- sh -e /etc/init.d/xvfb start
105
install:
11-
- bower install
12-
- npm install
6+
- npm ci
137
after_script:
148
- gulp coveralls
9+
10+
cache:
11+
directories:
12+
- "$HOME/.npm"
13+
14+
dist: trusty # needs Ubuntu Trusty
15+
# Note: if you switch to sudo: false, you'll need to launch Chrome with --no-sandbox.
16+
# See https://github.com/travis-ci/travis-ci/issues/8836
17+
sudo: required
18+
addons:
19+
chrome: stable # have Travis install Chrome stable.

packages/bitcore-lib/bitcore-lib.js

+37,941-37,627
Large diffs are not rendered by default.

packages/bitcore-lib/bower.json

-21
This file was deleted.

packages/bitcore-lib/docs/examples.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ var address = privateKey.toAddress();
99

1010
## Generate a address from a SHA256 hash
1111
```javascript
12-
var value = new Buffer('correct horse battery staple');
12+
var value = Buffer.from('correct horse battery staple');
1313
var hash = bitcore.crypto.Hash.sha256(value);
1414
var bn = bitcore.crypto.BN.fromBuffer(hash);
1515

packages/bitcore-lib/docs/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Bitcore v0.15.0
1+
# Bitcore v0.16.0
22

33
## Principles
44

packages/bitcore-lib/gulpfile.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1+
'use strict';
12

2-
3-
var bitcoreTasks = require('bitcore-build');
4-
5-
bitcoreTasks('lib');
3+
var startGulp = require('bitcore-build');
4+
Object.assign(exports, startGulp('lib'))

packages/bitcore-lib/karma.conf.js

+8-21
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,19 @@
44
module.exports = function(config) {
55

66
config.set({
7-
browsers: ['Firefox'],
8-
frameworks: ['mocha', 'detectBrowsers'],
9-
detectBrowsers: {
10-
enabled: true,
11-
usePhantomJS: false,
12-
postDetection: function(availableBrowser) {
13-
// modify to enable additional browsers if available
14-
var runBrowsers = ['Firefox', 'Chrome'];
15-
var browsers = [];
16-
for(var i = 0; i < runBrowsers.length; i++) {
17-
if(~availableBrowser.indexOf(runBrowsers[i])) {
18-
browsers.push(runBrowsers[i]);
19-
}
20-
}
21-
return browsers;
22-
}
23-
},
24-
singleRun: true,
7+
browsers: ['ChromeHeadless'],
8+
frameworks: ['mocha'],
9+
singleRun: false,
10+
reporters: ['progress'],
11+
logLevel: config.LOG_INFO,
12+
// port: 9876, // karma web server port
13+
autoWatch: false,
2514
files: [
26-
'tests.js'
15+
'../../tests.js'
2716
],
2817
plugins: [
2918
'karma-mocha',
3019
'karma-chrome-launcher',
31-
'karma-firefox-launcher',
32-
'karma-detect-browsers'
3320
]
3421
});
3522

packages/bitcore-lib/lib/crypto/bn.js

-12
Original file line numberDiff line numberDiff line change
@@ -172,18 +172,6 @@ BN.prototype.toScriptNumBuffer = function() {
172172
});
173173
};
174174

175-
BN.prototype.gt = function(b) {
176-
return this.cmp(b) > 0;
177-
};
178-
179-
BN.prototype.gte = function(b) {
180-
return this.cmp(b) >= 0;
181-
};
182-
183-
BN.prototype.lt = function(b) {
184-
return this.cmp(b) < 0;
185-
};
186-
187175
BN.trim = function(buf, natlen) {
188176
return buf.slice(natlen - buf.length, buf.length);
189177
};

packages/bitcore-lib/lib/opcode.js

+1
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ Opcode.map = {
197197
OP_CHECKMULTISIGVERIFY: 175,
198198

199199
OP_CHECKLOCKTIMEVERIFY: 177,
200+
OP_CHECKSEQUENCEVERIFY: 178,
200201

201202
// expansion
202203
OP_NOP1: 176,

0 commit comments

Comments
 (0)