mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-22 09:35:10 +00:00
[FAB-6292] Fix spelling error
[FAB_6292] fix spelling error in high-throughput. Change-Id: I6f0d3a8ccdbd3b5b0762e3f346292340862354ac Signed-off-by: Zhangjiong Xuan <xuanzhangjiong@hyperchain.cn>
This commit is contained in:
parent
56af764006
commit
c9b0c62975
2 changed files with 17 additions and 17 deletions
|
|
@ -16,7 +16,7 @@ frequently added to or removed from. For example, with a bank or credit card acc
|
||||||
of money in the account is the result of all of these additions and subtractions aggregated together. A typical person's bank account may not be
|
of money in the account is the result of all of these additions and subtractions aggregated together. A typical person's bank account may not be
|
||||||
used frequently enough to require highly-parallel throughput, but an organizational account used to store the money collected from customers on an
|
used frequently enough to require highly-parallel throughput, but an organizational account used to store the money collected from customers on an
|
||||||
e-commerce platform may very well receive a very high number of transactions from all over the world all at once. In fact, this use case is the only
|
e-commerce platform may very well receive a very high number of transactions from all over the world all at once. In fact, this use case is the only
|
||||||
use case for cryptocurrencies like Bitcoin: a user's unspent transaction output (UTXO) is the result of all transactions he or she has been a part of
|
use case for crypto currencies like Bitcoin: a user's unspent transaction output (UTXO) is the result of all transactions he or she has been a part of
|
||||||
since joining the blockchain. Other use cases that can employ this technique might be IOT sensors which frequently update their sensed value in the
|
since joining the blockchain. Other use cases that can employ this technique might be IOT sensors which frequently update their sensed value in the
|
||||||
cloud.
|
cloud.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,8 +22,8 @@ package main
|
||||||
* 2 specific Hyperledger Fabric specific libraries for Smart Contracts
|
* 2 specific Hyperledger Fabric specific libraries for Smart Contracts
|
||||||
*/
|
*/
|
||||||
import (
|
import (
|
||||||
"strconv"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"strconv"
|
||||||
|
|
||||||
"github.com/hyperledger/fabric/core/chaincode/shim"
|
"github.com/hyperledger/fabric/core/chaincode/shim"
|
||||||
sc "github.com/hyperledger/fabric/protos/peer"
|
sc "github.com/hyperledger/fabric/protos/peer"
|
||||||
|
|
@ -35,8 +35,8 @@ type SmartContract struct {
|
||||||
|
|
||||||
// Define Status codes for the response
|
// Define Status codes for the response
|
||||||
const (
|
const (
|
||||||
OK = 200
|
OK = 200
|
||||||
ERROR = 500
|
ERROR = 500
|
||||||
)
|
)
|
||||||
|
|
||||||
// Init is called when the smart contract is instantiated
|
// Init is called when the smart contract is instantiated
|
||||||
|
|
@ -76,7 +76,7 @@ func (s *SmartContract) Invoke(APIstub shim.ChaincodeStubInterface) sc.Response
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Updates the ledger to include a new delta for a particluar variable. If this is the first time
|
* Updates the ledger to include a new delta for a particular variable. If this is the first time
|
||||||
* this variable is being added to the ledger, then its initial value is assumed to be 0. The arguments
|
* this variable is being added to the ledger, then its initial value is assumed to be 0. The arguments
|
||||||
* to give in the args array are as follows:
|
* to give in the args array are as follows:
|
||||||
* - args[0] -> name of the variable
|
* - args[0] -> name of the variable
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue