Merge pull request #29 from Dominion5254/knots
Some checks failed
Build Service / BuildPackage (push) Has been cancelled

add coinstats migration and bump version
This commit is contained in:
Léo Haf 2025-03-18 10:14:57 +01:00 committed by GitHub
commit 431ecc587c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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"
);