Skip to content

Commit

Permalink
add log (#321)
Browse files Browse the repository at this point in the history
  • Loading branch information
godeamon authored Jan 27, 2022
1 parent 1eafe63 commit 52b1682
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bcs/ledger/xledger/state/tx_verification.go
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,8 @@ func (t *State) verifyTxRWSets(tx *pb.Transaction) (bool, error) {

rset, wset, err := t.GenRWSetFromTx(tx)
if err != nil {
return false, nil
t.log.Error("verifyTxRWSets GenRWSetFromTx error", "err", err)
return false, err
}
rwSet := &contract.RWSet{
RSet: rset,
Expand All @@ -587,7 +588,8 @@ func (t *State) verifyTxRWSets(tx *pb.Transaction) (bool, error) {
}
sandBox, err := t.sctx.ContractMgr.NewStateSandbox(sandBoxConfig)
if err != nil {
return false, nil
t.log.Error("NewStateSandbox error", "err", err)
return false, err
}

transContractName, transAmount, err := txn.ParseContractTransferRequest(req)
Expand Down

0 comments on commit 52b1682

Please sign in to comment.