cosme12 / SimpleCoin

Just a really simple, insecure and incomplete implementation of a blockchain for a cryptocurrency made in Python as educational material. In other words, a simple Bitcoin clone.
http://copitosystem.com
MIT License
1.78k stars 397 forks source link

Make JSON sort keys for replicability #38

Closed Aareon closed 3 years ago

Aareon commented 6 years ago

Using json.dumps() doesn't retain the same order, making it difficult to ensure any sort of order. Lets use the native sorting method to ensure at least some kind of order.

Aareon commented 5 years ago

At this rate, I'd also suggest using ujson