Skip to content

Commit 730a4a8

Browse files
committed
Auto stash before merge of "master" and "origin/master"
1 parent 9164465 commit 730a4a8

File tree

6 files changed

+19
-20
lines changed

6 files changed

+19
-20
lines changed

.travis.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ addons:
2929
- libldns-dev
3030
- libexpat1-dev
3131

32-
language: node_js
33-
3432
env:
3533
- CXX=g++-7 COMPILER=g++-7 BUILD=Debug STANDARD=14
3634

@@ -40,7 +38,7 @@ jobs:
4038
services:
4139
- redis
4240

43-
cache: false
41+
cache: npm
4442

4543
before_install:
4644
- "npm install -g npm@latest"

defaults/config.travis.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"timeout":1000,
2020
"enabled": true,
2121
"clusterForks": 4,
22-
"poolAddress":"Svk1ZQ6mPfjhYR3Nnp3kifZLimjuDcmyMHecLmY6Ek2QbGQi93XzkJFbdFDaQZVdBF2V43q79z2UTirvJcHT3TnC2h988J2hF",
22+
"poolAddress":"Svk1ZQ6mPfjhYR3Nnp3kifZLimjuDcmyMHecLmY6Ek2QbGQi93XzkJFbdFDaQZVdBF2V43q79z2UTirvJcHT3TnC2h988J2hF",
2323
"blockRefreshInterval": 500,
2424
"minerTimeout": 750,
2525
"sslCert": "./cert.pem",
@@ -30,8 +30,8 @@
3030
"port": 3333,
3131
"difficulty": 10000,
3232
"desc": "Props Low end hardware diff: 10000",
33-
"poolType":"props",
34-
"donation":0
33+
"poolType":"props",
34+
"donation":0
3535
},
3636
{
3737
"port": 5555,
@@ -44,8 +44,8 @@
4444
"port": 7777,
4545
"difficulty": 5000000,
4646
"desc": "Props High end hardware diff: 1000000",
47-
"poolType":"props",
48-
"donation":0
47+
"poolType":"props",
48+
"donation":0
4949
},
5050
{
5151
"port":8888,

defaults/scalapool.service

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ Type=forking
77
GuessMainPID=no
88
ExecStart=/home/scala/Scala/build/release/bin/scalad \
99
--rpc-bind-ip 127.0.0.1 \
10-
--rpc-bind-port 20189 \
10+
--rpc-bind-port 11812 \
1111
--p2p-bind-ip 0.0.0.0 \
12-
--p2p-bind-port 20188 \
12+
--p2p-bind-port 11811 \
1313
--rpc-bind-ip 127.0.0.1 \
1414
--confirm-external-bind --detach
1515

1616
Restart=always
17-
User=stellite
17+
User=scalad
1818

1919
[Install]
2020
WantedBy=multi-user.target

lib/api.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -320,19 +320,19 @@ function collectStats(){
320320
for(let ubs in replies[3].reverse()){
321321
const unblockStat = replies[3][ubs];
322322
const block = new BlockModel(unblockStat);
323-
if(block.poolType === 'ppbs') {
324-
continue;
325-
}
323+
if(block.poolType === 'ppbs') {
324+
continue;
325+
}
326326
block.miner = utils.truncateAddress(block.miner);
327327
blockStats.push(block.toRedis());
328328
}
329329
//Block Matured
330330
for(let bsi in replies[4]){
331331
const blockStat = replies[4][bsi];
332332
const block = new BlockModel(blockStat);
333-
if(block.poolType === 'ppbs') {
334-
continue;
335-
}
333+
if(block.poolType === 'ppbs') {
334+
continue;
335+
}
336336
block.miner = utils.truncateAddress(block.miner);
337337
blockStats.push(block.toRedis());
338338

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"redis": "*"
2525
},
2626
"engines": {
27-
"node": "14.x"
27+
"node": ">=14.0.0 <16.0.0"
2828
},
2929
"devDependencies": {
3030
"ava": "^3.10.1",

tests/utils/address.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,14 @@ test("Benchmark Address Validations", t => {
7070
let start = process.hrtime.bigint();
7171
for(let i =0;i<10000;i++) r.test(address)
7272
let end = process.hrtime.bigint();
73-
console.log('Regex time taken ' + utils.readableSI(Number(end - start)," ", "nsecs", true));
73+
74+
// console.log('Regex time taken ' + utils.readableSI(Number(end - start)," ", "nsecs", true));
7475

7576

7677
start = process.hrtime.bigint();
7778
for(let i =0;i<10000;i++) utils.getAddressPrefix(address) === 155
7879
end = process.hrtime.bigint();
79-
console.log('Utils time taken ' + utils.readableSI(Number(end - start)," ", "nsecs", true));
80+
// console.log('Utils time taken ' + utils.readableSI(Number(end - start)," ", "nsecs", true));
8081

8182
t.pass()
8283
})

0 commit comments

Comments
 (0)