diff --git a/manifest.yaml b/manifest.yaml index c61fef3..8d65f15 100644 --- a/manifest.yaml +++ b/manifest.yaml @@ -1,6 +1,6 @@ id: bitcoind title: "Bitcoin Core" -version: 28.1.0 +version: 28.1.0.2 eos-version: 0.3.4.4 release-notes: | * Update Bitcoin to [v28.1](https://github.com/bitcoin/bitcoin/releases/tag/v28.1) diff --git a/scripts/services/migrations.ts b/scripts/services/migrations.ts index 327472d..b00902e 100644 --- a/scripts/services/migrations.ts +++ b/scripts/services/migrations.ts @@ -321,6 +321,33 @@ export const migration: T.ExpectedExports.migration = type: "down", }), }, + "28.1.0.2": { + up: compat.migrations.updateConfig( + (config) => { + if ( + matches + .shape({ + advanced: matches.shape({ + blocknotify: matches.any, + }), + }) + .test(config) + ) { + throw new Error("Upgrading from Knots to Core is prohibited."); + } + return config; + }, + true, + { + version: "28.1.0.2", + type: "up", + } + ), + down: compat.migrations.updateConfig((config: any) => config, true, { + version: "28.1.0.2", + type: "down", + }), + }, }, - "28.1.0" + "28.1.0.2" );