blockchain network and become a node. So it has--distributed system featuresIn the blockchain world, there is no central node, and each node is equal. All save the entire database and can write read data to any node. Because all of the nodes will be synchronized. Ensure that the blockchain is consistent.The above: The nodes are distributed in various parts of the country, and the nodes are connected with each other. You send a request to any node, and the request data is quickly synchronized t
icon font of the item expand Ed:true,//whether to expand Description: ',//menu item description in the tree menu items: [{text: ' project ',//' name of the ' item ' module: ' Global ',//the name of the corresponding module icon: ' ',//menu bar icon address glyph:0xf0f7//menu bar icon Font}, {text: ' Project segment ', Module: ' Project ', Icon: ', glyph:0xf02e} '}, {text: ' Contract management ', ex Panded:true,items: [{text: ' Project contract ', module: ' Agreement ', glyph:0xf02d}, {text: '
blocks from the local ledger and sends the corresponding chunk data within the specified starting and closing ranges,
The core code is shown below.
For {block
, Status: = Cursor. Next ()//Get chunk
sendblockreply (SRV, block)//Send blocks
if Stopnum = block. Header.number {
break
}}
return Response
If the processing succeeds, a successful response message is returned.
Sendstatusreply (SRV, CB. STATUS_SUCCESS)
=============
> Before learning bitcoin and Ethereum, must first learn its block structure, at that time in the bank to do hyperledger related projects, I was very neglected in the structure, only care about the smart contract, incredibly can also initially master and start Project-related development. This shows that the super-Ledger block attribute is actually weaker, and it is important that the properties of the smart contract. Performance is also good. In this
banks, to test each transaction to prevent double payments. If a third-party intermediary is to be excluded, the transaction information should be disclosed, requiring all participants in the entire system to have a unique and recognized history of the transaction sequence. The payee needs to ensure that the majority of the nodes during the transaction agree that the transaction was first seen. the ledger system is not based on "account"
The Bitcoin
understand even if it is a non-technical person. We will share it with you for your reference.
The following is translated from Thijs Maas's post on Hackernoon, "The Quick, 3-step Guide to Blockchain Technology", which represents the author's view only and does not represent the stance of the Wanxiang blockchain, for informational purposes only.
The first step is to understand the blockchain technology itself
In simple terms, blockchain is actually a way of building data. It is a
container's 7051 port to the host, through the host's 7051 ports to achieve inter-node communication. We modify the service definitions in Docker-compose.yaml in each node, starting only the required service at different nodes. For example, only PEER0 service is started in Node 1, Orderer is only started in node 5, and so on.
3. Start a multi-node fabric cluster
After configuring the fabric's boot environment on each node, you need to log on to the node in turn to start the fabric node
following will be a specific example to download fabric1.0.5 image and experience the effect of running. third, run the fabric instance
Enter the following command to switch the work path:
cd./fabric/scripts/
ls
You can see that there are a lot of shell script files under the current path, in the fabric version I'm using, There are 1.0.0 to 1.0.4 Bootstrap scripts, where the default bootstrap.sh is 1.0.5 version, we run this script and download the Fabric1.0.5 image we need. The command is as
Creating locks
Copy Code code as follows:
G_mutex = Threading. Lock ()
....
using Locks
Copy Code code as follows:
For ...:
#锁定, mutex access from next code to before release
G_mutex.acquire ()
A_account.deposite (1)
#释放
G_mutex.release ()
Finally, the simulation of a bus subway IC card payment of the multi-thread routinesThere are 10 card readers, each card reader fee per deduction User A piece of money into the general
requirements is much simpler. However, the premise of using a written message is that every general knows what the other generals ' handwriting is and can't imitate the other generals ' handwriting.
On the basis of PBFT, there are many variant algorithms, these algorithms are often with some additional assumptions. For example: think that the client initiating the request must be loyal, the client to verify the loyalty of the node; think most of the time the generals are loyal, so reduce the nu
First of all, a simple look at the above transaction flow chart, the following is a detailed diagram of the entire fabric of the whole business process:
1. The block chain client sends the transaction request to all endorsed nodes (endorsing peer) that have been agreed before. Here is a description of the choice of endorsing peer is a certain range, not in all the endorsing peer arbitrary choice, is the transaction is the Chaincode and the Chaincode defined endorsement policy joint decision.
2
Block chain is a new application mode of computer technology such as distributed data storage, point-to-point transmission, consensus mechanism and encryption algorithm. The so-called consensus mechanism is a mathematical algorithm for building trust and acquiring equity between different nodes in block chain system.
The concept of Bitcoin (BitCoin) was first proposed by Ben Cong in 2009, based on the idea of Ben Cong to design the release of open source software and the construction of Peer-to-
example, a system chain code can be upgraded only by upgrading the binary package of the peer program. System chain code can be registered with predefined elements and compiled into the peer program, and does not need to be similar to the endorsement strategy or endorsement functions such as miscellaneous functions.
The system chain code is used in fabric to manipulate the configuration performance of the entire system, so that the system can be changed to the appropriate state at any time.
Lis
that our analogy may suggest alternative contract solutions, such as engineering lock-in agency contracts. However, the disadvantage of this approach is that it needs to be foreseen at the time the contract is designed and deployed. In other words, the ability to model this behavior allows us to believe that our metaphor can be achieved.
7. Conclusion
We believe that our comparisons between intelligent contracts and concurrent objects can provide new perspectives, stimulate research, and allow
An accounting business cycle for the Oracle General Ledger module is as follows:1. Open General Ledger Accounting period2. Input manual voucher, including: · Manual Standard Voucher· Foreign currency voucher· Statistics voucher3. From the child module to introduce vouchers, such as: Receivables, Payables, Inventory and other modules4. Generate vouchers using a well-defined regular voucher templateRegular vo
much of the hard cost.
Iv. Calculation of General Ledger
The three add up to find more than 450M. Here we can easily view, and then run down the script:
$ cat cm.sh#/bin/bashFor PROC in ' Ls/proc/|grep ' ^[0-9] 'TodoIf [-f/proc/$PROC/STATM]; Thentep= ' cat/proc/$PROC/STATM | awk ' {print ($)} 'rss= ' expr $RSS + $TEP 'FiDonerss= ' Expr $RSS * 4 'Pagetable= ' grep pagetables/proc/meminfo | awk ' {print $} 'slabinfo= ' Cat/proc/slabinfo |awk ' begin
The central Bank of the Netherlands (De Nederlandsche Bank) has listed Ripple as one of the "tangible solutions" and block chain innovation projects that can improve the efficiency of the payment system. In the use of ripple for infrastructure layout, the Dutch central bank wants to increase the speed and convenience of real-time payments while reducing costs.
It is reported that the Dutch Cooperative Bank (Rabobank Group) has completed the Ripple Interledger solution test Work--interledger is
lock G_mutex = Threading. Lock () ... uses the lock for ...: #锁定, mutual exclusion access from the next code to the release A_account.deposite (1) nbsp #释放 g_mutex.release ()
Two. Business needs
Simulation of a bus subway IC card payment of the multi-thread routinesSuppose there are 10 card readers, each card reader fee per deduction User A piece of money into the general ledger, each card reader is a total of 1 milli
statement, profit distribution table ... These are the external interests related to the requirements of a unified enterprise information, and Co is the enterprise according to their own management needs, the different levels of analysis, including cost center, profit center, profitability analysis ...
Fi mainly includes General ledger, Accounts receivable, account payable, bank accounting, fixed assets, special purpose
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.