Installing Curl (Install curl)
If you do not have curl installed, download and install it.
Note: If it is windows, please look at the following Windows extras;
Docker and Docker Compose
Below you talk about installing Docker and Docker compose.
MAXOSX, *nix, or Windows 10 requires the installation of Docker V1.12 or a later version.
Older versions of Windows need to be installed first: Docker Toolbox before installing Docker V1.12 or later.
You can view your Docker version by entering the fol
("Creating consensus plugin%s", plugin)
Return PBFT. Getplugin (Stack)
}
Logger. Info ("Creating default consensus plugin (noops)")
Return Noops. Getnoops (Stack)
}
The controller directory is a function of the consensus plug-in selection moduleThe---->hyperledger provides two algorithms pbft and Noops----> Default single node Usage noops is equivalent to no consensus algorithm
Func newconsenter (Stack consensus. Stack) consensus. Consenter
current fabric there is limited development resources, so in 1.0 will not do, may be achieved in the future. COUCHDB Installation
Now let's talk about this couchdb.
COUCHDB is a database of key values for a full local restful API, which means we don't need any clients, we just need to operate the database via HTTP requests. Leveldb is a peer local database, then certainly and peer one-to-one relationship, then COUCHDB is a network database, should and peer what kind of relationship. In a produc
Hyperledger source code Analysis of Fabric
The sorting service plays a very central role in the Super Ledger Fabric network. All transactions need to be sorted globally before they are sent to committer for validation acceptance.
In the current architecture, the function of the sorting service is extracted, as a separate Fabric-orderer module to implement, the code is mainly in the Fabric/orderer directory.
The following Kafka as a consensus plug-in a
Hyperledger source code Analysis of Fabric
The Orderer node startup is implemented by the main () method under the Orderer package and further calls to the main () method in the Orderer/common/server package.
The core code is shown below.
Main is the entry point of Orderer Processfunc main () {
fullcmd: = Kingpin. Mustparse (app. Parse (OS. Args[1:])
//"version" command
if Fullcmd = = version. Fullcommand () {
fmt. Println (metada
Hyperledger Installation and testing (MAC PRO)
Environment preparation
Dccker
Golang
node. js
Python 2.7 (MacOS comes with)
Fabric Download and Installation
Reference Links:Hyperledger Fabric v1.1.0 MacOS Deploying a developer environment and creating the first Fabric network
Test
Note that the actual installation is using the 1.2 version, the corresponding test should also refer to:Building Your First Network
Some of the issues that
Hyperledger source code Analysis of Fabric
Broadcast means that the client sends the request message (for example, after the endorsement transaction is completed) to the ordering service via the Grpc interface.
These request messages are given to the broadcast (SRV ab) of the server structure in the Orderer.common.server package. Atomicbroadcast_broadcastserver) Error method processing. This method will mainly call the Handle (SRV ab) of the HANDLERIM
complete, unzip to the/usr/local directory:sudo tar -c/usr/local-xzf go1.10.1.linux-amd64.tar.gz To configure the GO locale variable:Enter the. BASHRC Configuration environment variable:$ sudo vim ~/. BASHRC or: $ sudo vim/etc/profileAdd the following code to the last side:Export gopath=/usr/local/goexport path= $GOPATH/bin: $PATH Save, exit.To make an environment variable effective:$ source ~/. BASHRC or: $ source/etc/profile After viewing the version number no problem, the configuration
The entities involved in Hyperledger Fabric 1.0 include the following:
FABRIC-CA: Mainly responsible for the maintenance of the certificate of the entity in the network;
Peer: mainly responsible for the implementation of intelligent contracts, record books;
Order: mainly responsible for the accounting content of the consensus.
1.0 architecture can be based on the actual needs of the network through the Certificate of Security Domain Division manag
Copyright Notice: Blog Article copyright owners all, without authorization, prohibit reprint, reprint please specify the source installation Environment installation JDK
Download URL: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Download jdk-8u151-macosx-x64.dmg install to PC install maven
Download URL: https://maven.apache.org/download.cgi
Extract to/users/fujinliang/documents/environment
Open terminal , modify. BASHRC
VI ~/.BASHRC
Add the following code
The previous analysis program looked at the details of the analysis, so without the concept of framework, took two days to analyze the Hyperledger fabric architecture design, analysis of the program does not reference any information, such as error welcome correction, common progress.
The author has the following questions before the detailed analysis procedure:
1) How the CLI (command line) client sends a command to a peer node
2) How the peer node
Tags:. com set class root roo Ace Cat Div nbspMyEclipse in the Tomcat Import project and modified the project name, the parentheses after the project shows the original project name, how to modify it?1. Open the path \ Your project name, modify the file. Project2. Open the p
Project Quality Control:The system test of Project H started from to. The full-phase participation includes: Project Manager, Technical Manager, 5 developers, and 2.5 testers. 2.5 people/month in totalUser testing started from to. Full-phase participation includes: Project Manager, 2 testers, Technical Manager, and 4 d
To enable Web projects to access resources in the referenced Java project, you need to place the files of the required IO operations into the SRC directory in Java projectfa YiIn Java project, classes that have IO operations need to write this
package Cn.edu.test;import Java.io.bufferedreader;import Java.io.file;import Java.io.ioexception;import Java.io.inputstream;import Java.io.inputstreamre
Organization-level project management and large-scale project management
Characteristics shared by projects within an organization
1. The ultimate goal of each goal is to support the realization of the company's established strategy for the enterprise to create profits
2, sharing the organization's resources, the allocation of resources will have an impact between the
only intelligent contract capabilities. Also coincides with his positioning: intelligent contract and the central application platform. There is no core support for system security or access mechanism.The Hyperledger, while absorbing the characteristics of the intelligent contract, provides membership and authentication role management modules. More close to commercial application scenarios.The consensus mechanism is different.Because the consensus i
maven builds Javaweb projectCreate a new MAVEN projectDefaultDefaultTo a Web project, right-click Project PropertiesAfter the turn over the folder WebContent, the webcontent under the Web-inf, Meta-inf folder copy to the Src/main/webapp directory (no directory new folder), and delete the WebContent directoryRight-click Project PropertiesRemove/webcontent, add new
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.