Skip to content

Commit

Permalink
detoks: Add DetoksConfig class
Browse files Browse the repository at this point in the history
Add the `DetoksConfig` class as a single place to store global
properties that configure the Detoks application.
  • Loading branch information
kandrio committed Apr 13, 2023
1 parent 64c7140 commit c142dee
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import nl.tudelft.trustchain.detoks.gossiper.*

class DeToksCommunity(
private val context: Context
) : TransactionEngine("c86a7db45eb3563ae047639817baec4db2bc7c25") {
) : TransactionEngine(DetoksConfig.DETOKS_SERVICE_ID) {

private val walletManager = WalletManager(context)
private val visitedPeers = mutableListOf<Peer>()
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package nl.tudelft.trustchain.detoks

class DetoksConfig() {
companion object {
const val DETOKS_SERVICE_ID = "c86a7db45eb3563ae047639817baec4db2bc7c25"
}
}

0 comments on commit c142dee

Please sign in to comment.