web3coach / the-blockchain-bar

The source-code for: "Build a Blockchain from Scratch in Go" eBook.
https://web3.coach
GNU Lesser General Public License v3.0
499 stars 184 forks source link

Fix persist state method tXMempool append index out of bounds #4

Closed marcsanmi closed 4 years ago

web3coach commented 4 years ago

Hi Marc! Thanks A LOT for your contribution! I will have to close this PR though bc I was reshuffling commits around the repo doing a big migration and 1) this got un-mergable in the current state (my bad) and 2) the state logic changed.

You have an amazing eagle eye though for spotting the out of bounds issue! 👏