Rework of import/export process.

- Adds support for minting accounts as well as trade bot states
- Includes automatic import of both types on node startup, and automatic export on node shutdown
- Retains legacy trade bot states in a separate "TradeBotStatesArchive.json" file, whilst keeping the current active ones in "TradeBotStates.json". This prevents states being re-imported after they have been removed, but still keeps a copy of the data in case a key is ever needed.
- Uses indentation in the JSON files for easier readability.
This commit is contained in:
CalDescent
2021-09-28 09:24:21 +01:00
parent 114833cf8e
commit 8926d2a73c
21 changed files with 810 additions and 70 deletions

View File

@@ -3,6 +3,7 @@
"litecoinNet": "REGTEST",
"restrictedApi": false,
"blockchainConfig": "src/test/resources/test-chain-v2.json",
"exportPath": "qortal-backup-test",
"wipeUnconfirmedOnStart": false,
"testNtpOffset": 0,
"minPeers": 0

View File

@@ -3,6 +3,7 @@
"litecoinNet": "TEST3",
"restrictedApi": false,
"blockchainConfig": "src/test/resources/test-chain-v2.json",
"exportPath": "qortal-backup-test",
"wipeUnconfirmedOnStart": false,
"testNtpOffset": 0,
"minPeers": 0,

View File

@@ -1,6 +1,7 @@
{
"restrictedApi": false,
"blockchainConfig": "src/test/resources/test-chain-v2-founder-rewards.json",
"exportPath": "qortal-backup-test",
"wipeUnconfirmedOnStart": false,
"testNtpOffset": 0,
"minPeers": 0

View File

@@ -1,6 +1,7 @@
{
"restrictedApi": false,
"blockchainConfig": "src/test/resources/test-chain-v2-leftover-reward.json",
"exportPath": "qortal-backup-test",
"wipeUnconfirmedOnStart": false,
"testNtpOffset": 0,
"minPeers": 0

View File

@@ -1,6 +1,7 @@
{
"restrictedApi": false,
"blockchainConfig": "src/test/resources/test-chain-v2-minting.json",
"exportPath": "qortal-backup-test",
"wipeUnconfirmedOnStart": false,
"testNtpOffset": 0,
"minPeers": 0

View File

@@ -1,6 +1,7 @@
{
"restrictedApi": false,
"blockchainConfig": "src/test/resources/test-chain-v2-qora-holder-extremes.json",
"exportPath": "qortal-backup-test",
"wipeUnconfirmedOnStart": false,
"testNtpOffset": 0,
"minPeers": 0

View File

@@ -1,6 +1,7 @@
{
"restrictedApi": false,
"blockchainConfig": "src/test/resources/test-chain-v2-qora-holder.json",
"exportPath": "qortal-backup-test",
"wipeUnconfirmedOnStart": false,
"testNtpOffset": 0,
"minPeers": 0

View File

@@ -1,6 +1,7 @@
{
"restrictedApi": false,
"blockchainConfig": "src/test/resources/test-chain-v2-reward-levels.json",
"exportPath": "qortal-backup-test",
"wipeUnconfirmedOnStart": false,
"testNtpOffset": 0,
"minPeers": 0

View File

@@ -1,6 +1,7 @@
{
"restrictedApi": false,
"blockchainConfig": "src/test/resources/test-chain-v2-reward-scaling.json",
"exportPath": "qortal-backup-test",
"wipeUnconfirmedOnStart": false,
"testNtpOffset": 0,
"minPeers": 0

View File

@@ -3,6 +3,7 @@
"litecoinNet": "TEST3",
"restrictedApi": false,
"blockchainConfig": "src/test/resources/test-chain-v2.json",
"exportPath": "qortal-backup-test",
"wipeUnconfirmedOnStart": false,
"testNtpOffset": 0,
"minPeers": 0