Skip to content

Commit

Permalink
Merge pull request #141 from Start9Labs/update/version
Browse files Browse the repository at this point in the history
bump version and organize config options
  • Loading branch information
MattDHill authored Mar 13, 2024
2 parents 05a4f8f + 462812b commit f43dd1d
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 25 deletions.
32 changes: 13 additions & 19 deletions assets/compat/bitcoin.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,19 @@ persistmempool=0
}}
maxmempool={{advanced.mempool.maxmempool}}
mempoolexpiry={{advanced.mempool.mempoolexpiry}}
{{#IF advanced.mempool.datacarrier
datacarrier=1
}}
{{#IF !advanced.mempool.datacarrier
datacarrier=0
}}
datacarriersize={{advanced.mempool.datacarriersize}}
{{#IF advanced.mempool.permitbaremultisig
permitbaremultisig=1
}}
{{#IF !advanced.mempool.permitbaremultisig
permitbaremultisig=0
}}

## PEERS
{{#IF advanced.peers.listen
Expand Down Expand Up @@ -125,25 +138,6 @@ txindex=1
coinstatsindex=1
}}

## DATACARRIER
{{#IF advanced.mempool.datacarrier
datacarrier=1
}}
{{#IF !advanced.mempool.datacarrier
datacarrier=0
}}

## DATACARRIER SIZE
datacarriersize={{advanced.mempool.datacarriersize}}

## PERMIT BARE MULTISIG
{{#IF advanced.mempool.permitbaremultisig
permitbaremultisig=1
}}
{{#IF !advanced.mempool.permitbaremultisig
permitbaremultisig=0
}}

## BIP37
{{#IF advanced.bloomfilters.peerbloomfilters
peerbloomfilters=1
Expand Down
8 changes: 3 additions & 5 deletions manifest.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
id: bitcoind
title: "Bitcoin Core"
version: 26.0.0
version: 26.0.0.1
eos-version: 0.3.4.3
release-notes: |
* Latest release from Core - see full release notes [here](https://github.com/bitcoin/bitcoin/blob/master/doc/release-notes/release-notes-26.0.md)
* Added support for v2 transport protocol (BIP 324)
* Update services base image to alpine 3.18
* Minor readme and instructions update
* New config options for mempool filtering: permitbaremultisig, datacarrier, datacarriersize
* New config option for coinstatsindex
license: MIT
wrapper-repo: https://github.com/Start9Labs/bitcoind-wrapper
upstream-repo: https://github.com/bitcoin/bitcoin
Expand Down
20 changes: 19 additions & 1 deletion scripts/services/migrations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,24 @@ export const migration: T.ExpectedExports.migration =
{ version: "26.0.0", type: "down" }
),
},
"26.0.0.1": {
up: compat.migrations.updateConfig((config: any) => config, false, {
version: "26.0.0.1",
type: "up",
}),
down: compat.migrations.updateConfig(
(config: any) => {
delete config.coinstatsindex;
delete config.advanced.mempool.permitbaremultisig;
delete config.advanced.mempool.datacarrier;
delete config.advanced.mempool.datacarriersize;

return config;
},
true,
{ version: "26.0.0.1", type: "down" }
),
},
},
"26.0.0"
"26.0.0.1"
);

0 comments on commit f43dd1d

Please sign in to comment.