Skip to content

Commit

Permalink
remove checkVerifiableCredentials
Browse files Browse the repository at this point in the history
  • Loading branch information
Houshoupei84 authored and ttblack committed Jul 4, 2021
1 parent a8f40e2 commit 9c013bc
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions core/vm/didvalidator.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,14 +110,14 @@ func checkRegisterDID(evm *EVM, p *did.DIDPayload, gas uint64) error {
return errors.New("checkDIDTransaction [VM] Check Sig FALSE")
}
doc := p.DIDDoc
if err = checkVerifiableCredentials(evm, doc.ID, doc.VerifiableCredential,
doc.Authentication, doc.PublicKey, nil, true); err != nil {
if err.Error() == "[VM] Check Sig FALSE" && evm.Context.BlockNumber.Cmp(configHeight) < 0{
log.Warn("checkRegisterDID end "," Check Sig FALSE ID", p.DIDDoc.ID)
return nil
}
return err
}
// if err = checkVerifiableCredentials(evm, doc.ID, doc.VerifiableCredential,
// doc.Authentication, doc.PublicKey, nil, true); err != nil {
// if err.Error() == "[VM] Check Sig FALSE" && evm.Context.BlockNumber.Cmp(configHeight) < 0{
// log.Warn("checkRegisterDID end "," Check Sig FALSE ID", p.DIDDoc.ID)
// return nil
// }
// return err
// }

if configHeight == nil || evm.Context.BlockNumber.Cmp(configHeight) > 0 || senderAddr != configAddr {
DIDProofArray, err := getDocProof(p.DIDDoc.Proof)
Expand Down

0 comments on commit 9c013bc

Please sign in to comment.