Juanan7676 / netcoin

A cryptocurrency written in lua for Minecraft mod OpenComputers.
10 stars 6 forks source link

Apply a lot of patches + create setup system #3

Closed kcinnaJlol closed 2 years ago

kcinnaJlol commented 2 years ago

Should fix issue #1 by making it easier to set up.

There are a few new commands:

Juanan7676 commented 2 years ago

Thank you very much. I'll review this ASAP.

I'll also update some function names and variables that are in Spanish to English, to make it more readable.

Juanan7676 commented 2 years ago

Looks very good. I haven't tested it yet in-game, but seems like a solid base to keep working on it.

Question - files bak.txt and prevbak.txt are only generated to recover the blockchain in case something goes wrong, right? Have you encountered a situation where its necessary to recover, or is it only to make debugging easier?

kcinnaJlol commented 2 years ago

Looks very good. I haven't tested it yet in-game, but seems like a solid base to keep working on it.

Question - files bak.txt and prevbak.txt are only generated to recover the blockchain in case something goes wrong, right? Have you encountered a situation where its necessary to recover, or is it only to make debugging easier?

Yes, it is in case something goes wrong so i can retry (and thus debug) without needing to mine another block. bak.txt stores the just received block and prevbak.txt stores the parent of the just received block.