Skip to content
This repository has been archived by the owner on Mar 22, 2022. It is now read-only.

Commit

Permalink
v4.0 - several updates
Browse files Browse the repository at this point in the history
  • Loading branch information
anarkrypto committed Apr 18, 2021
1 parent f7b3394 commit 4cd73f9
Show file tree
Hide file tree
Showing 7 changed files with 524 additions and 243 deletions.
5 changes: 3 additions & 2 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"worker": "http://[::1]:7076",
"min_pending_amount": "0.000001",
"enable_active_difficulty": true,
"min_consensus": 100,
"enable_max_difficulty": false,
"max_difficulty_send": "100",
"max_difficulty_receive": "6400"
"max_difficulty_send": 100,
"max_difficulty_receive": 6400
}
3 changes: 2 additions & 1 deletion nodes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ https://www.nanolooker.com/api/rpc
https://rpc.wenano.net/api/node-api
https://app.natrium.io/api
https://node.somenano.com/proxy
http://88.198.195.183:7076
https://gonano.dev/rpc
http://88.198.195.183:7076
https://nano-rpc.trustwalletapp.com
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "confirmy-block",
"version": "3.0.0",
"description": "Finds unconfirmed blocks, increase PoW and relay to Nano network confirm",
"version": "4.0.0",
"description": "Finds unconfirmed blocks, increase PoW and broadcast to Nano network confirm",
"main": "./src/index.js",
"private": true,
"scripts": {
Expand Down
4 changes: 4 additions & 0 deletions src/check.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ exports.checkHash = function(hash){
}
}

exports.checkPercentage = function(percentage){
return Number.isInteger(percentage) && percentage >= 0 && percentage <= 100
}

exports.checkURL = function (string) {
let url;
try {
Expand Down
458 changes: 314 additions & 144 deletions src/index.js

Large diffs are not rendered by default.

Loading

0 comments on commit 4cd73f9

Please sign in to comment.