Skip to content

Commit

Permalink
removed comment about testing overusage
Browse files Browse the repository at this point in the history
  • Loading branch information
lava17 committed May 24, 2022
1 parent d184f14 commit e751d87
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions x/pairing/keeper/client_payment_storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ func (k Keeper) AddClientPaymentInEpoch(ctx sdk.Context, chainID string, epoch u
isUnique, uniquePaymentStorageClientProviderEntryAddr := k.AddUniquePaymentStorageClientProvider(ctx, chainID, epoch, userAddress, providerAddress, uniqueIdentifier, usedCU)
if !isUnique {
//tried to use an existing identifier!
// #O If you want to check that relayValidateCU is working you will need to do uncomment the next line and comment the return line. You will also need to set doubleSendTest := true in server.go
// uniquePaymentStorageClientProviderEntryAddr.Index = uniquePaymentStorageClientProviderEntryAddr.Index[:len(uniquePaymentStorageClientProviderEntryAddr.Index)-3] + "xxx" // this is to bypass this error
return nil, 0, fmt.Errorf("failed to add user payment since uniqueIdentifier was already detected, and created on block %d", uniquePaymentStorageClientProviderEntryAddr.Block)
}
userPaymentStorageInEpoch, found := k.GetClientPaymentStorage(ctx, key)
Expand Down

0 comments on commit e751d87

Please sign in to comment.