Skip to content

Commit

Permalink
Add new role: ParentTokenPinByQuorumRole
Browse files Browse the repository at this point in the history
  • Loading branch information
Allen-Cherian committed Apr 24, 2024
1 parent 37b970c commit 24e5825
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/quorum_validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ func (c *Core) validateTokenOwnership(cr *ConensusRequest, sc *contract.Contract
c.log.Error("failed to sync parent token chain", "token", pt)
return false, err
}
_, err = c.w.Pin(pt, wallet.QuorumRole, quorumDID, cr.TransactionID, address, receiverAddress, ti[i].TokenValue)
_, err = c.w.Pin(pt, wallet.ParentTokenPinByQuorumRole, quorumDID, cr.TransactionID, address, receiverAddress, ti[i].TokenValue)
if err != nil {
c.log.Error("Failed to Pin parent token in Quorum", "err", err)
return false, err
Expand Down
2 changes: 1 addition & 1 deletion core/wallet/ipfs_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const (
PledgingRole
QuorumPinRole
QuorumUnpinRole
WholeTokenSplitLockRole
ParentTokenPinByQuorumRole
)

// modified pin method that pins token and update in DB with role of the machine pinning
Expand Down

0 comments on commit 24e5825

Please sign in to comment.