@@ -89,13 +89,13 @@ func (state *State) TxBegin(txID string) {
89
89
90
90
// TxFinish marks the completion of on-going tx. If txID is not same as of the on-going tx, this call panics
91
91
func (state * State ) TxFinish (txID string , txSuccessful bool ) {
92
- logger .Debugf ("txFinish() for txUuid [%s], txSuccessful=[%t]" , txID , txSuccessful )
92
+ logger .Debugf ("txFinish() for txId [%s], txSuccessful=[%t]" , txID , txSuccessful )
93
93
if state .currentTxID != txID {
94
- panic (fmt .Errorf ("Different Uuid in tx-begin [%s] and tx-finish [%s]" , state .currentTxID , txID ))
94
+ panic (fmt .Errorf ("Different txId in tx-begin [%s] and tx-finish [%s]" , state .currentTxID , txID ))
95
95
}
96
96
if txSuccessful {
97
97
if ! state .currentTxStateDelta .IsEmpty () {
98
- logger .Debugf ("txFinish() for txUuid [%s] merging state changes" , txID )
98
+ logger .Debugf ("txFinish() for txId [%s] merging state changes" , txID )
99
99
state .stateDelta .ApplyChanges (state .currentTxStateDelta )
100
100
state .txStateDeltaHash [txID ] = state .currentTxStateDelta .ComputeCryptoHash ()
101
101
state .updateStateImpl = true
@@ -144,7 +144,7 @@ func (state *State) GetRangeScanIterator(chaincodeID string, startKey string, en
144
144
stateImplItr ), nil
145
145
}
146
146
147
- // Set sets state to given value for chaincodeID and key. Does not immideatly writes to DB
147
+ // Set sets state to given value for chaincodeID and key. Does not immediately writes to DB
148
148
func (state * State ) Set (chaincodeID string , key string , value []byte ) error {
149
149
logger .Debugf ("set() chaincodeID=[%s], key=[%s], value=[%#v]" , chaincodeID , key , value )
150
150
if ! state .txInProgress () {
@@ -168,7 +168,7 @@ func (state *State) Set(chaincodeID string, key string, value []byte) error {
168
168
return nil
169
169
}
170
170
171
- // Delete tracks the deletion of state for chaincodeID and key. Does not immideatly writes to DB
171
+ // Delete tracks the deletion of state for chaincodeID and key. Does not immediately writes to DB
172
172
func (state * State ) Delete (chaincodeID string , key string ) error {
173
173
logger .Debugf ("delete() chaincodeID=[%s], key=[%s]" , chaincodeID , key )
174
174
if ! state .txInProgress () {
0 commit comments