Skip to content

Commit 7db2bc3

Browse files
authored
staking: do not delete previously used channel, they should never be used again (#189)
1 parent bba7d0f commit 7db2bc3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

contracts/Staking.sol

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,10 +487,11 @@ contract Staking is Governed {
487487
);
488488

489489
// Close channel
490+
// NOTE: Channels used are never deleted from state tracked in `channels` var
490491
stake.unallocateTokens(subgraphID, alloc.tokens);
491492
alloc.channelID = address(0);
492493
alloc.createdAtEpoch = 0;
493-
delete channels[_channelID]; //TODO: send multisig one-shot invalidation
494+
//TODO: send multisig one-shot invalidation
494495

495496
// Send curation fees to the curator subgraph reserve
496497
if (curationFees > 0) {

0 commit comments

Comments
 (0)