Skip to content
This repository has been archived by the owner on Jun 13, 2019. It is now read-only.

Commit

Permalink
Check block number first before checking signer
Browse files Browse the repository at this point in the history
  • Loading branch information
bun919tw authored and boolafish committed Sep 2, 2018
1 parent 9578790 commit e1006b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plasma_cash/root_chain/contracts/RootChain/RootChain.sol
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ contract RootChain {
bytes32 root = childChain[blkNum];
require(merkleHash.checkMembership(uid, root, proof));

if (exitTxObj.newOwner == challengeTxObj.signer) {
if (blkNum > exits[uid].exitTxBlkNum && exitTxObj.newOwner == challengeTxObj.signer) {
// Challenge tx spent the exit tx. Cancel it.
delete exits[uid].hasValue;
} else if (blkNum < exits[uid].exitTxBlkNum
Expand Down

0 comments on commit e1006b5

Please sign in to comment.