silicoin-network / silicoin-blockchain

Silicoin blockchain python implementation (full node, farmer, harvester, timelord, and wallet)
Apache License 2.0
79 stars 28 forks source link

Features/fix validation issue #148

Closed 13thProgression closed 2 years ago

13thProgression commented 2 years ago

Attempt to fix an issue where the specified height is overwritten by a local variable, resulting in proofs getting rejected that shouldn't have been. Unfortunately, verifying is difficult because the verification happens on other nodes. Fixing verification on my node means that other users get to keep coins when they have a block win.

Also added some debug information, including appending the user's difficulty coefficient to the end of the "Found x proofs" line in the log. Note that for users running multiple keys, this difficulty coefficient reflects the most recent key calculated. You'll see it bounce around if your keys are at different difficulties.