add coinstats migration and bump version

This commit is contained in:
Shadowy Super Coder 2025-03-17 18:58:37 -06:00
parent 44c6e14d9c
commit da329b68d3
No known key found for this signature in database
GPG Key ID: 67E71F02ED9CAEC3
2 changed files with 31 additions and 2 deletions

View File

@ -1,6 +1,6 @@
id: bitcoind
title: "Bitcoin Knots"
version: 28.1.0.1
version: 28.1.0.2
eos-version: 0.3.5.1
release-notes: |
* Latest release from Knots - see full release notes [here](https://github.com/bitcoinknots/bitcoin/blob/v28.1.knots20250305/doc/release-notes.md)

View File

@ -42,6 +42,35 @@ export const migration: T.ExpectedExports.migration =
type: "down",
}),
},
"28.1.0.2": {
up: compat.migrations.updateConfig(
(config: any) => {
config.coinstatsindex = false
if (
!matches
.shape({
advanced: matches.shape({
blocknotify: matches.any,
}),
})
.test(config)
) {
throw new Error("Upgrading from Core to Knots is prohibited.");
} else {
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.1"
"28.1.0.2"
);