blockchain-javascript
Advanced tools
Comparing version 1.0.5 to 1.0.6
{ | ||
"python.formatting.provider": "autopep8" | ||
"python.formatting.provider": "autopep8", | ||
"git.ignoreLimitWarning": true | ||
} |
@@ -11,6 +11,8 @@ // Difficuly of mining | ||
// mining nodes | ||
const NODE_ADDRESSES = []; | ||
// get localhost address | ||
const localhost = require('child_process').execSync("ifconfig | grep inet | grep -v inet6 | awk '{gsub(/addr:/,\"\");print $2}'").toString().trim().split("\n"); | ||
const NODE_ADDRESSES = [localhost]; | ||
module.exports = { DIFFICULTY, INITIAL_BALANCE, MINING_REWARD, NODE_ADDRESSES }; | ||
module.exports = { DIFFICULTY, INITIAL_BALANCE, MINING_REWARD, NODE_ADDRESSES }; |
{ | ||
"name": "blockchain-javascript", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "javascript implementation of private / public blockchain", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1,12 +0,18 @@ | ||
# Learn Blockchains by Building One | ||
# blockchain-javascript | ||
[![Build Status](https://travis-ci.org/dvf/blockchain.svg?branch=master)](https://travis-ci.org/dvf/blockchain) | ||
This is the source code for my javascript implementation on [Building a Blockchain](https://medium.com/p/117428612f46). | ||
Blockchain built in private / public in javascript. | ||
This was the source code for my javascript implementation on [Building a Blockchain](https://medium.com/p/117428612f46). | ||
It is now advancing with additional functionalities I add in(private / public key, modulization, tutorials). | ||
## Installation | ||
1. Make sure [node.js 7.2+](https://nodejs.org/en/) is installed. | ||
2. Install [npm](https://www.npmjs.com/) and packages in package.json file. | ||
2. Install [npm](https://www.npmjs.com/) and packages in package.json file. | ||
``` | ||
@@ -13,0 +19,0 @@ $ npm install -g blockchain-javascript |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14873
363
30
1