Skip to content

Commit

Permalink
Updated configs to allow switching between networks & safer spending cap
Browse files Browse the repository at this point in the history
* Updated configs to allow switching between networks.
* Opportunistic config value update (e.g. spending cap) and removal.
  • Loading branch information
thehenrytsai committed Jun 4, 2020
1 parent 0fafadb commit 8a05b42
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
9 changes: 4 additions & 5 deletions json/mainnet-bitcoin-config.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
{
"bitcoinFeeSpendingCutoffPeriodInBlocks": 1,
"bitcoinFeeSpendingCutoff": 0.01,
"bitcoinFeeSpendingCutoff": 0.001,
"bitcoinPeerUri": "http://localhost:8332",
"bitcoinRpcUsername": "",
"bitcoinRpcPassword": "",
"bitcoinWalletOrImportString": "[FILL THIS IN!]",
"sidetreeTransactionFeeMarkupPercentage": 5,
"sidetreeTransactionPrefix": "ion:",
"databaseName": "ion-mainnet-bitcoin",
"genesisBlockNumber": 629000,
"databaseName": "sidetree-bitcoin",
"transactionFetchPageSize": 100,
"mongoDbConnectionString": "mongodb://localhost:27017/",
"port": 3002,
"sidetreeTransactionFeeMarkupPercentage": 1,
"sidetreeTransactionPrefix": "ion:",
"valueTimeLockAmountInBitcoins": 0
}
1 change: 1 addition & 0 deletions json/mainnet-core-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"batchingIntervalInSeconds": 600,
"blockchainServiceUri": "http://127.0.0.1:3002",
"contentAddressableStoreServiceUri": "http://127.0.0.1:3003",
"databaseName": "ion-mainnet-core",
"didMethodName": "ion",
"maxConcurrentDownloads": 20,
"mongoDbConnectionString": "mongodb://localhost:27017/",
Expand Down
7 changes: 3 additions & 4 deletions json/testnet-bitcoin-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@
"bitcoinRpcUsername": "",
"bitcoinRpcPassword": "",
"bitcoinWalletOrImportString": "[FILL THIS IN!]",
"sidetreeTransactionFeeMarkupPercentage": 5,
"sidetreeTransactionPrefix": "ion:",
"databaseName": "ion-testnet-bitcoin",
"genesisBlockNumber": 1723000,
"databaseName": "sidetree-bitcoin",
"transactionFetchPageSize": 100,
"mongoDbConnectionString": "mongodb://localhost:27017/",
"port": 3002,
"sidetreeTransactionFeeMarkupPercentage": 1,
"sidetreeTransactionPrefix": "ion:",
"valueTimeLockAmountInBitcoins": 0
}
1 change: 1 addition & 0 deletions json/testnet-core-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"batchingIntervalInSeconds": 600,
"blockchainServiceUri": "http://127.0.0.1:3002",
"contentAddressableStoreServiceUri": "http://127.0.0.1:3003",
"databaseName": "ion-testnet-core",
"didMethodName": "ion:test",
"maxConcurrentDownloads": 20,
"mongoDbConnectionString": "mongodb://localhost:27017/",
Expand Down
1 change: 1 addition & 0 deletions src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ sidetreeCore.initialize()
})
.catch((error: Error) => {
console.log(`Sidetree node initialization failed with error ${error}`);
process.exit(1);
});

/**
Expand Down

0 comments on commit 8a05b42

Please sign in to comment.