omgnetwork / plasma-mvp

OmiseGO's research implementation of Minimal Viable Plasma
MIT License
561 stars 158 forks source link

Require child chain transactions to include confirmations #31

Open DavidKnott opened 6 years ago

DavidKnott commented 6 years ago

Currently users can spend transactions without having received a confirmation, this should not be allowed.

Add a check to child_chain.py to make sure that the transactions being referenced as inputs have valid confirmations.

smartcontracts commented 6 years ago

I think the easiest way to handle this is to have the transaction confirmation be included as an input to apply_transaction. Does that make sense?