ether-camp / ethereum-harmony

DEPRECATED! Ethereum Independent Peer
GNU General Public License v3.0
253 stars 89 forks source link

logIdx is calculated incorrectly #124

Open zilm13 opened 5 years ago

zilm13 commented 5 years ago

logIdx is currently calculated incorrectly in both usages in Harmony. It starts with 0 on every tx, but should start on block, so first log in tx could easily be greater than 0. Check specs: https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_getfilterchanges says the log index is relative to the block.