From dc3a61f71cac6560f3ac2bb3f523f58f60a5148e Mon Sep 17 00:00:00 2001 From: Josh Rickmar Date: Mon, 15 Sep 2025 15:40:49 +0000 Subject: [PATCH] dcrtime_dumpdb: Default to dumping JSON Restoring requires the JSON dump, so default to dumping to JSON. Use -json=false to dump human readable output. --- cmd/dcrtime_dumpdb/dcrtime_dumpdb.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/dcrtime_dumpdb/dcrtime_dumpdb.go b/cmd/dcrtime_dumpdb/dcrtime_dumpdb.go index 39dc9fdb..8e77749b 100644 --- a/cmd/dcrtime_dumpdb/dcrtime_dumpdb.go +++ b/cmd/dcrtime_dumpdb/dcrtime_dumpdb.go @@ -15,8 +15,8 @@ var ( defaultHomeDir = dcrutil.AppDataDir("dcrtimed", false) destination = flag.String("destination", "", "Restore destination") - dumpJSON = flag.Bool("json", false, "Dump JSON") - restore = flag.Bool("restore", false, "Restore backend, -destination is required") + dumpJSON = flag.Bool("json", true, "Dump JSON") + restore = flag.Bool("restore", false, "Restore backend from JSON dump, -destination is required") fsRoot = flag.String("source", "", "Source directory") testnet = flag.Bool("testnet", false, "Use testnet port") )