mirror of
https://github.com/Retropex/knots-startos.git
synced 2025-05-12 19:30:45 +02:00
Merge pull request #29 from Dominion5254/knots
Some checks failed
Build Service / BuildPackage (push) Has been cancelled
Some checks failed
Build Service / BuildPackage (push) Has been cancelled
add coinstats migration and bump version
This commit is contained in:
commit
431ecc587c
@ -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)
|
||||
|
@ -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"
|
||||
);
|
Loading…
Reference in New Issue
Block a user