Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions config.env
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,15 @@ export EXPLORER_INSTALL=on
# Soroban configuration
export SOROBAN_INSTALL=on

SOROBAN_ANNOUNCE_CONFIG=$(yq e '.soroban-announce.enabled' /root/start9/config.yaml)
SOROBAN_ANNOUNCE_CONFIG=$(yq e '.soroban-announce.enabled // "disabled"' /root/start9/config.yaml)
if [ "$SOROBAN_ANNOUNCE_CONFIG" = "enabled" ]; then
export SOROBAN_ANNOUNCE=on
else
export SOROBAN_ANNOUNCE=off
fi

# PandoTx Process is only available when Soroban announce is enabled
S9_PANDOTX_PROCESS=$(yq e '.soroban-announce.pandotx-process' /root/start9/config.yaml)
S9_PANDOTX_PROCESS=$(yq e '.soroban-announce.pandotx-process // false' /root/start9/config.yaml)
if [ "$SOROBAN_ANNOUNCE_CONFIG" = "enabled" ] && [ "$S9_PANDOTX_PROCESS" = "true" ]; then
export NODE_PANDOTX_PROCESS=on
else
Expand Down Expand Up @@ -120,4 +120,4 @@ export SOROBAN_ONION_FILE=/var/lib/tor/hsv3soroban/hostname
export NODE_PANDOTX_FALLBACK_MODE=$(yq e '.pandotx-fallback-mode' /root/start9/config.yaml)

# Max number of retries in case of a failed push
export NODE_PANDOTX_NB_RETRIES=$(yq e '.pandotx-retries' /root/start9/config.yaml)
export NODE_PANDOTX_NB_RETRIES=$(yq e '.pandotx-retries' /root/start9/config.yaml)
6 changes: 3 additions & 3 deletions manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ interfaces:
- http
dependencies:
bitcoind:
version: '>=0.21.1.2 <31.0.0'
version: '>=0.21.1.2'
requirement:
type: 'opt-out'
how: Use the Bitcoin Core (default)
Expand All @@ -117,7 +117,7 @@ dependencies:
type: script
requires-runtime-config: true
bitcoind-testnet:
version: '>=0.21.1.2 <31.0.0'
version: '>=0.21.1.2'
requirement:
type: 'opt-in'
how: Use the Bitcoin Core Testnet4
Expand All @@ -129,7 +129,7 @@ dependencies:
type: script
requires-runtime-config: true
fulcrum:
version: '>=1.11.0'
version: '>=2.0.0'
requirement:
type: 'opt-in'
how: Set Indexer to Fulcrum in the config
Expand Down
36 changes: 33 additions & 3 deletions scripts/procedures/migrations.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,34 @@
import { compat, types as T } from "../deps.ts";
import { compat, types as T } from '../deps.ts'

export const migration: T.ExpectedExports.migration = compat.migrations
.fromMapping({}, "1.27.0.0" );
export const migration: T.ExpectedExports.migration = compat.migrations.fromMapping(
{
'1.28.0.0': {
up: compat.migrations.updateConfig(
(config: any) => {
// Add default soroban and pandotx config for users upgrading from versions before 1.28.0
config['soroban-announce'] = {
'enabled': 'disabled'
}
config['pandotx-push'] = true
config['pandotx-retries'] = 2
config['pandotx-fallback-mode'] = 'convenient'
return config
},
true,
{ version: '1.28.0.0', type: 'up' },
),
down: compat.migrations.updateConfig(
(config: any) => {
delete config['soroban-announce']
delete config['pandotx-push']
delete config['pandotx-retries']
delete config['pandotx-fallback-mode']
return config
},
true,
{ version: '1.28.0.0', type: 'down' },
),
},
},
'1.28.0.0',
)