Skip to content

Commit

Permalink
feat: private transactions need check signature
Browse files Browse the repository at this point in the history
  • Loading branch information
zengchen221 committed Feb 19, 2021
1 parent 767fa01 commit 5bb54bb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ledger/process/ledger_check.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ func (blockBaseInfoCheck) baseInfo(lv *LedgerVerifier, block *types.StateBlock)

if block.GetType() == types.ContractReward {
// check private tx
if block.IsPrivate() && !block.IsRecipient() {
return Progress, nil
}
//if block.IsPrivate() && !block.IsRecipient() {
// return Progress, nil
//}

linkBlk, err := lv.l.GetStateBlockConfirmed(block.GetLink())
if err != nil {
Expand Down Expand Up @@ -117,9 +117,9 @@ func (cacheBlockBaseInfoCheck) baseInfo(lv *LedgerVerifier, block *types.StateBl

if block.GetType() == types.ContractReward {
// check private tx
if block.IsPrivate() && !block.IsRecipient() {
return Progress, nil
}
//if block.IsPrivate() && !block.IsRecipient() {
// return Progress, nil
//}

linkBlk, err := lv.l.GetStateBlock(block.GetLink())
if err != nil {
Expand Down

0 comments on commit 5bb54bb

Please sign in to comment.