loomnetwork / plasma-cash

Plasma Cash Contract & Client. ERC721, ERC20, and ETH compatible
https://loomx.io/developers
Other
271 stars 62 forks source link

Automatic client challenges by watching exit events #64

Closed aupiff closed 6 years ago

aupiff commented 6 years ago

Next step is to figure out how to store all pertinent coin history on client. This will be easy enough if at first we naively scan all of the plasma chain to gather coin info BUT each client does need to be woken up whenever they are sent a coin (In order to implement this feature, we'd have to decide on a p2p protocol). @gakonst let me know if this sounds good.

Question: should pushExit be its own function? It's only called once. We might save a good amount on gas if we rolled it back into startExit.

gakonst commented 6 years ago

Added automatic challenging for challengeAfter and challengeBetween.

aupiff commented 6 years ago

LGTM, @gakonst you should merge.