Commit 2c45ddd
committed
db-synthesizer: eject Layer 2 (config/credential machinery) downstream
With the config parsing now handled by cardano-config and synthesize
taking a ready-made ProtocolInfo, db-synthesizer no longer needs the
vendored node/api machinery in-repo. Remove it entirely:
- 'initialize' and its adapters (the genesis/credential reading and
protocol assembly) leave; they belong downstream, built on cardano-api.
- Delete the vendored Cardano.Api.*, Cardano.Node.Protocol.* and
Cardano.Node.Types modules (no remaining consumers), and prune the
now-unused build-depends (base16-bytestring, cardano-crypto,
transformers-except).
- Trim DBSynthesizer.Types to the node/api-free option types.
The tools-test integration test becomes synthesis-only: it builds a
forging-capable protocol via the testlib (new
mkSimpleTestProtocolInfoForging, which also returns the block forgers and
genesis) instead of a node configuration file, and forges within the
testlib's KES validity window. The config-driven
synthesise -> immutalise -> analyse pipeline (and the executable) move
downstream. Drop the now-unused config fixtures.
All tool executables, cardano-test and tools-test still build and pass.1 parent 65e1c06 commit 2c45ddd
27 files changed
Lines changed: 90 additions & 4648 deletions
File tree
- ouroboros-consensus-cardano
- src
- unstable-cardano-testlib/Test/Consensus/Cardano
- unstable-cardano-tools/Cardano
- Api
- Protocol
- Node
- Protocol
- Tools/DBSynthesizer
- test/tools-test
- disk/config
Lines changed: 38 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
184 | 185 | | |
185 | 186 | | |
186 | 187 | | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
187 | 222 | | |
188 | 223 | | |
189 | 224 | | |
190 | 225 | | |
191 | 226 | | |
192 | 227 | | |
193 | 228 | | |
194 | | - | |
195 | | - | |
| 229 | + | |
| 230 | + | |
196 | 231 | | |
197 | 232 | | |
198 | 233 | | |
| |||
203 | 238 | | |
204 | 239 | | |
205 | 240 | | |
| 241 | + | |
206 | 242 | | |
207 | 243 | | |
208 | 244 | | |
| |||
Lines changed: 0 additions & 164 deletions
This file was deleted.
Lines changed: 0 additions & 80 deletions
This file was deleted.
0 commit comments