Skip to content

Commit bca892c

Browse files
committed
bump: iohkNix for LedgerDB cfg + ci adjustments
1 parent d315144 commit bca892c

File tree

7 files changed

+48
-8
lines changed

7 files changed

+48
-8
lines changed

configuration/cardano/mainnet-config-bp.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,15 @@
1212
"LastKnownBlockVersion-Alt": 0,
1313
"LastKnownBlockVersion-Major": 3,
1414
"LastKnownBlockVersion-Minor": 0,
15+
"LedgerDB": {
16+
"Backend": "V2InMemory",
17+
"NumOfDiskSnapshots": 2,
18+
"QueryBatchSize": 100,
19+
"SnapshotInterval": 4320
20+
},
1521
"MaxKnownMajorProtocolVersion": 2,
1622
"MinBigLedgerPeersForTrustedState": 5,
17-
"MinNodeVersion": "10.2.1",
23+
"MinNodeVersion": "10.4.0",
1824
"PeerSharing": false,
1925
"Protocol": "Cardano",
2026
"RequiresNetworkMagic": "RequiresNoMagic",

configuration/cardano/mainnet-config.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,15 @@
1212
"LastKnownBlockVersion-Alt": 0,
1313
"LastKnownBlockVersion-Major": 3,
1414
"LastKnownBlockVersion-Minor": 0,
15+
"LedgerDB": {
16+
"Backend": "V2InMemory",
17+
"NumOfDiskSnapshots": 2,
18+
"QueryBatchSize": 100,
19+
"SnapshotInterval": 4320
20+
},
1521
"MaxKnownMajorProtocolVersion": 2,
1622
"MinBigLedgerPeersForTrustedState": 5,
17-
"MinNodeVersion": "10.2.1",
23+
"MinNodeVersion": "10.4.0",
1824
"PeerSharing": true,
1925
"Protocol": "Cardano",
2026
"RequiresNetworkMagic": "RequiresNoMagic",

configuration/cardano/mainnet-config.yaml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ TargetNumberOfKnownPeers: 150
4343
TargetNumberOfRootPeers: 60
4444

4545

46-
##### Network Configuration #####
46+
##### Consensus Configuration #####
4747

4848
ConsensusMode: PraosMode
4949
SyncTargetNumberOfActivePeers: 0
@@ -53,9 +53,29 @@ SyncTargetNumberOfKnownBigLedgerPeers: 100
5353
MinBigLedgerPeersForTrustedState: 5
5454

5555

56+
##### Ledger Configuration #####
57+
58+
# Additional configuration options can be found at:
59+
# https://ouroboros-consensus.cardano.intersectmbo.org/docs/for-developers/utxo-hd/migrating
60+
LedgerDB:
61+
# The time interval between snapshots, in seconds.
62+
SnapshotInterval: 4320
63+
64+
# The number of disk snapshots to keep.
65+
NumOfDiskSnapshots: 2
66+
67+
# When querying the store for a big range of UTxOs (such as with
68+
# QueryUTxOByAddress), the store will be read in batches of this size.
69+
QueryBatchSize: 100
70+
71+
# The backend can either be in memory with `V2InMemory` or on disk with
72+
# `V1LMDB`.
73+
Backend: V2InMemory
74+
75+
5676
##### Version Information #####
5777

58-
MinNodeVersion: 10.2.1
78+
MinNodeVersion: 10.4.0
5979

6080
##### Logging configuration #####
6181

configuration/cardano/testnet-template-config.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88
"LastKnownBlockVersion-Alt": 0,
99
"LastKnownBlockVersion-Major": 3,
1010
"LastKnownBlockVersion-Minor": 1,
11+
"LedgerDB": {
12+
"Backend": "V2InMemory",
13+
"NumOfDiskSnapshots": 2,
14+
"QueryBatchSize": 100,
15+
"SnapshotInterval": 216
16+
},
1117
"MaxConcurrencyDeadline": 4,
1218
"MaxKnownMajorProtocolVersion": 2,
1319
"PBftSignatureThreshold": 1.1,

configuration/cardano/update-config-files.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ copyCfg "mainnet-alonzo-genesis.json"
3030
copyCfg "mainnet-byron-genesis.json"
3131
copyCfg "mainnet-checkpoints.json"
3232
copyCfg "mainnet-config.json"
33+
copyCfg "mainnet-config-bp.json"
3334
copyCfg "mainnet-conway-genesis.json"
3435
copyCfg "mainnet-peer-snapshot.json"
3536
copyCfg "mainnet-shelley-genesis.json"

flake.lock

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
incl.url = "github:divnix/incl";
5656

5757
iohkNix = {
58-
url = "github:input-output-hk/iohk-nix";
58+
url = "github:input-output-hk/iohk-nix/jl/10.4-ledger";
5959
inputs.nixpkgs.follows = "nixpkgs";
6060
};
6161

0 commit comments

Comments
 (0)