omgnetwork / plasma-mvp

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

Fix index iteration while checking membership of Merkle tree #209

Open CodesMcCabe opened 5 years ago

CodesMcCabe commented 5 years ago

Right side hashing would never occur as _index never changed from 0. Changed the conditional to index in order to map the correct index value upon iteration of multiple leaves.

Also fixed a miscalculation of the txindex when decoding a utxo id