Juanan7676 / netcoin

A cryptocurrency written in lua for Minecraft mod OpenComputers.
11 stars 5 forks source link

Miner performance improvements #8

Open Juanan7676 opened 2 years ago

Juanan7676 commented 2 years ago

Right now, miners are using the lua BigNum library to check if the nonce they are trying is valid or not. This is inefficient, since we could use directly binary comparison to check.

A function to convert a BigNum to binary is needed (to compare two binary strings, the standard < lua operator should work in this case).