From 14fc2396f376f47cf1c43c1b4fb9029861aef103 Mon Sep 17 00:00:00 2001 From: Luke Van Seters Date: Mon, 12 Jul 2021 13:06:19 -0400 Subject: [PATCH] Add back indent and sort_keys --- block.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block.py b/block.py index f0fe5e4..1694538 100644 --- a/block.py +++ b/block.py @@ -28,7 +28,7 @@ def write_json(block: Block): write_mode = "w" if cache_path.is_file() else "x" with open(cache_path, mode=write_mode) as cache_file: - cache_file.write(block.json()) + cache_file.write(block.json(sort_keys=True, indent=4)) ## Creates a block object, either from the cache or from the chain itself