From 24e58253b0618c3e47603da0ecdaefc10d33a87a Mon Sep 17 00:00:00 2001 From: Allen Iype P Cherian Date: Wed, 24 Apr 2024 12:57:31 +0530 Subject: [PATCH] Add new role: ParentTokenPinByQuorumRole --- core/quorum_validation.go | 2 +- core/wallet/ipfs_service.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/quorum_validation.go b/core/quorum_validation.go index fe149c2b..5865618f 100644 --- a/core/quorum_validation.go +++ b/core/quorum_validation.go @@ -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 diff --git a/core/wallet/ipfs_service.go b/core/wallet/ipfs_service.go index 8e347af5..14b8c110 100644 --- a/core/wallet/ipfs_service.go +++ b/core/wallet/ipfs_service.go @@ -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