diff --git a/lib/test/golden/json/Configuration_Legacy_NoNetworkMagicField b/lib/test/golden/json/Configuration_Legacy_NoNetworkMagicField index 59a6d675024..daff5b20e71 100644 --- a/lib/test/golden/json/Configuration_Legacy_NoNetworkMagicField +++ b/lib/test/golden/json/Configuration_Legacy_NoNetworkMagicField @@ -1 +1 @@ -{"core":{"genesis":{"spec":{"initializer":{"testBalance":{"poors":12,"richmen":4,"richmenShare":0.99,"useHDAddresses":true,"totalBalance":600000000000000000},"fakeAvvmBalance":{"count":10,"oneBalance":100000},"avvmBalanceFactor":0.1,"useHeavyDlg":true,"seed":0},"blockVersionData":{"scriptVersion":0,"slotDuration":7000,"maxBlockSize":2000000,"maxHeaderSize":2000000,"maxTxSize":4096,"maxProposalSize":700,"mpcThd":0.1,"heavyDelThd":0.1,"updateVoteThd":0.1,"updateProposalThd":0.1,"updateImplicit":10,"softforkRule":{"initThd":0.1,"minThd":0.1,"thdDecrement":0.1},"txFeePolicy":{"txSizeLinear":{"a":155381,"b":43.946}},"unlockStakeEpoch":1844},"protocolConstants":{"k":2,"protocolMagic":55550001,"vssMinTTL":2,"vssMaxTTL":6},"ftsSeed":"c2tvdm9yb2RhIEdndXJkYSBib3JvZGEgcHJvdm9kYSA=","heavyDelegation":{},"avvmDistr":{}}},"requiresNetworkMagic":"RequiresNoMagic","dbSerializeVersion":0},"ntp":{"responseTimeout":30000000,"pollDelay":1800000000,"servers":["0.pool.ntp.org","2.pool.ntp.org","3.pool.ntp.org"]},"update":{"applicationName":"cardano-sl","applicationVersion":0,"lastKnownBlockVersion":{"bvMajor":0,"bvMinor":0,"bvAlt":0}},"ssc":{"mpcSendInterval":10,"mdNoCommitmentsEpochThreshold":3,"noReportNoSecretsForEpoch1":false},"txp":{"memPoolLimitTx":200,"assetLockedSrcAddrs":[]},"dlg":{"dlgCacheParam":500,"messageCacheTimeout":30},"block":{"networkDiameter":3,"recoveryHeadersMessage":20,"streamWindow":2048,"nonCriticalCQBootstrap":0.95,"criticalCQBootstrap":0.8888,"nonCriticalCQ":0.8,"criticalCQ":0.654321,"criticalForkThreshold":2,"fixedTimeCQ":10},"node":{"networkConnectionTimeout":15000,"conversationEstablishTimeout":30000,"blockRetrievalQueueSize":100,"pendingTxResubmissionPeriod":7,"walletProductionApi":false,"walletTxCreationDisabled":false,"explorerExtendedApi":false},"wallet":{"throttle":null}} \ No newline at end of file +{"core":{"genesis":{"spec":{"initializer":{"testBalance":{"poors":12,"richmen":4,"richmenShare":0.99,"useHDAddresses":true,"totalBalance":600000000000000000},"fakeAvvmBalance":{"count":10,"oneBalance":100000},"avvmBalanceFactor":0.1,"useHeavyDlg":true,"seed":0},"blockVersionData":{"scriptVersion":0,"slotDuration":7000,"maxBlockSize":2000000,"maxHeaderSize":2000000,"maxTxSize":4096,"maxProposalSize":700,"mpcThd":0.1,"heavyDelThd":0.1,"updateVoteThd":0.1,"updateProposalThd":0.1,"updateImplicit":10,"softforkRule":{"initThd":0.1,"minThd":0.1,"thdDecrement":0.1},"txFeePolicy":{"txSizeLinear":{"a":155381,"b":43.946}},"unlockStakeEpoch":1844},"protocolConstants":{"k":2,"protocolMagic":55550001,"vssMinTTL":2,"vssMaxTTL":6},"ftsSeed":"c2tvdm9yb2RhIEdndXJkYSBib3JvZGEgcHJvdm9kYSA=","heavyDelegation":{},"avvmDistr":{}}},"requiresNetworkMagic":"RequiresNoMagic","dbSerializeVersion":0},"ntp":{"responseTimeout":30000000,"pollDelay":1800000000,"servers":["0.pool.ntp.org","2.pool.ntp.org","3.pool.ntp.org"]},"update":{"applicationName":"cardano-sl","applicationVersion":0,"lastKnownBlockVersion":{"bvMajor":0,"bvMinor":0,"bvAlt":0}, "systemTag":"linux64"},"ssc":{"mpcSendInterval":10,"mdNoCommitmentsEpochThreshold":3,"noReportNoSecretsForEpoch1":false},"txp":{"memPoolLimitTx":200,"assetLockedSrcAddrs":[]},"dlg":{"dlgCacheParam":500,"messageCacheTimeout":30},"block":{"networkDiameter":3,"recoveryHeadersMessage":20,"streamWindow":2048,"nonCriticalCQBootstrap":0.95,"criticalCQBootstrap":0.8888,"nonCriticalCQ":0.8,"criticalCQ":0.654321,"criticalForkThreshold":2,"fixedTimeCQ":10},"node":{"networkConnectionTimeout":15000,"conversationEstablishTimeout":30000,"blockRetrievalQueueSize":100,"pendingTxResubmissionPeriod":7,"walletProductionApi":false,"walletTxCreationDisabled":false,"explorerExtendedApi":false},"wallet":{"throttle":null}} \ No newline at end of file diff --git a/lib/test/golden/json/Prettified_Haskell_Value_Configuration b/lib/test/golden/json/Prettified_Haskell_Value_Configuration deleted file mode 100644 index 5ea34b43d10..00000000000 --- a/lib/test/golden/json/Prettified_Haskell_Value_Configuration +++ /dev/null @@ -1,106 +0,0 @@ -This is the prettified version of `testGoldenConf_NoNetworkMagicField` for reference purposes. - -Configuration - { ccGenesis = GCSpec - ( UnsafeGenesisSpec - { gsAvvmDistr = GenesisAvvmBalances { getGenesisAvvmBalances = fromList [] } - , gsFtsSeed = SharedSeed { getSharedSeed = "skovoroda Ggurda boroda provoda " } - , gsHeavyDelegation = UnsafeGenesisDelegation { unGenesisDelegation = fromList [] } - , gsBlockVersionData = BlockVersionData - { bvdScriptVersion = 0 - , bvdSlotDuration = 7000ms - , bvdMaxBlockSize = Byte 2000000 - , bvdMaxHeaderSize = Byte 2000000 - , bvdMaxTxSize = Byte 4096 - , bvdMaxProposalSize = Byte 700 - , bvdMpcThd = CoinPortion { getCoinPortion = 10000000000000 } - , bvdHeavyDelThd = CoinPortion { getCoinPortion = 5000000000000 } - , bvdUpdateVoteThd = CoinPortion { getCoinPortion = 1000000000000 } - , bvdUpdateProposalThd = CoinPortion { getCoinPortion = 100000000000000 } - , bvdUpdateImplicit = 10 - , bvdSoftforkRule = SoftforkRule - { srInitThd = CoinPortion { getCoinPortion = 900000000000000 } - , srMinThd = CoinPortion { getCoinPortion = 600000000000000 } - , srThdDecrement = CoinPortion { getCoinPortion = 50000000000000 } - } - , bvdTxFeePolicy = TxFeePolicyTxSizeLinear ( TxSizeLinear ( Coeff 155381.000000000 ) ( Coeff 43.946000000 ) ) - , bvdUnlockStakeEpoch = EpochIndex { getEpochIndex = 18446744073709551615 } - } - , gsProtocolConstants = GenesisProtocolConstants - { gpcK = 10 - , gpcProtocolMagic = ProtocolMagic - { getProtocolMagicId = ProtocolMagicId { unProtocolMagicId = 55550001 } - , getRequiresNetworkMagic = RequiresMagic - } - , gpcVssMaxTTL = VssMaxTTL { getVssMaxTTL = 6 } - , gpcVssMinTTL = VssMinTTL { getVssMinTTL = 2 } - } - , gsInitializer = GenesisInitializer - { giTestBalance = TestnetBalanceOptions - { tboPoors = 12 - , tboRichmen = 4 - , tboTotalBalance = 600000000000000000 - , tboRichmenShare = 0.99 - , tboUseHDAddresses = True - } - , giFakeAvvmBalance = FakeAvvmOptions - { faoCount = 10 - , faoOneBalance = 100000 - } - , giAvvmBalanceFactor = CoinPortion { getCoinPortion = 1000000000000000 } - , giUseHeavyDlg = True - , giSeed = 0 - } - } - ) - , ccNtp = NtpConfiguration - { ntpcServers = - [ "0.pool.ntp.org" - , "2.pool.ntp.org" - , "3.pool.ntp.org" - ] - , ntpcResponseTimeout = 30000000 - , ntpcPollDelay = 1800000000 - } - , ccUpdate = UpdateConfiguration - { ccApplicationName = ApplicationName { getApplicationName = "cardano-sl" } - , ccLastKnownBlockVersion = 0.0.0 - , ccApplicationVersion = 0 - , ccSystemTag = SystemTag { getSystemTag = "linux64" } - } - , ccSsc = SscConfiguration - { ccMpcSendInterval = 10 - , ccMdNoCommitmentsEpochThreshold = 3 - , ccNoReportNoSecretsForEpoch1 = False - } - , ccDlg = DlgConfiguration - { ccDlgCacheParam = 500 - , ccMessageCacheTimeout = 30 - } - , ccTxp = TxpConfiguration - { ccMemPoolLimitTx = 200 - , tcAssetLockedSrcAddrs = fromList [] - } - , ccBlock = BlockConfiguration - { ccNetworkDiameter = 3 - , ccRecoveryHeadersMessage = 20 - , ccStreamWindow = 2048 - , ccNonCriticalCQBootstrap = 0.95 - , ccCriticalCQBootstrap = 0.8888 - , ccNonCriticalCQ = 0.8 - , ccCriticalCQ = 0.654321 - , ccCriticalForkThreshold = 2 - , ccFixedTimeCQ = 10s - } - , ccNode = NodeConfiguration - { ccNetworkConnectionTimeout = 15000 - , ccConversationEstablishTimeout = 30000 - , ccBlockRetrievalQueueSize = 100 - , ccPendingTxResubmissionPeriod = 7 - , ccWalletProductionApi = False - , ccWalletTxCreationDisabled = False - , ccExplorerExtendedApi = False - } - , ccWallet = WalletConfiguration { ccThrottle = Nothing } - , ccReqNetMagic = RequiresNoMagic - } diff --git a/lib/test/golden/json/Prettified_JSON_Configuration b/lib/test/golden/json/Prettified_JSON_Configuration deleted file mode 100644 index f51e1de3151..00000000000 --- a/lib/test/golden/json/Prettified_JSON_Configuration +++ /dev/null @@ -1,116 +0,0 @@ -This is the prettified version of `Configuration_Legacy_NoNetworkMagicField` for reference purposes. - -{ - "core": { - "genesis": { - "spec": { - "initializer": { - "testBalance": { - "poors": 12, - "richmen": 4, - "richmenShare": 0.99, - "useHDAddresses": true, - "totalBalance": 600000000000000000 - }, - "fakeAvvmBalance": { - "count": 10, - "oneBalance": 100000 - }, - "avvmBalanceFactor": 0.1, - "useHeavyDlg": true, - "seed": 0 - }, - "blockVersionData": { - "scriptVersion": 0, - "slotDuration": 7000, - "maxBlockSize": 2000000, - "maxHeaderSize": 2000000, - "maxTxSize": 4096, - "maxProposalSize": 700, - "mpcThd": 0.1, - "heavyDelThd": 0.1, - "updateVoteThd": 0.1, - "updateProposalThd": 0.1, - "updateImplicit": 10, - "softforkRule": { - "initThd": 0.1, - "minThd": 0.1, - "thdDecrement": 0.1 - }, - "txFeePolicy": { - "txSizeLinear": { - "a": 155381, - "b": 43.946 - } - }, - "unlockStakeEpoch": 1844 - }, - "protocolConstants": { - "k": 2, - "protocolMagic": 55550001, - "vssMinTTL": 2, - "vssMaxTTL": 6 - }, - "ftsSeed": "c2tvdm9yb2RhIEdndXJkYSBib3JvZGEgcHJvdm9kYSA=", - "heavyDelegation": {}, - "avvmDistr": {} - } - }, - "requiresNetworkMagic": "RequiresNoMagic", - "dbSerializeVersion": 0 - }, - "ntp": { - "responseTimeout": 30000000, - "pollDelay": 1800000000, - "servers": [ - "0.pool.ntp.org", - "2.pool.ntp.org", - "3.pool.ntp.org" - ] - }, - "update": { - "applicationName": "cardano-sl", - "applicationVersion": 0, - "lastKnownBlockVersion": { - "bvMajor": 0, - "bvMinor": 0, - "bvAlt": 0 - } - }, - "ssc": { - "mpcSendInterval": 10, - "mdNoCommitmentsEpochThreshold": 3, - "noReportNoSecretsForEpoch1": false - }, - "txp": { - "memPoolLimitTx": 200, - "assetLockedSrcAddrs": [] - }, - "dlg": { - "dlgCacheParam": 500, - "messageCacheTimeout": 30 - }, - "block": { - "networkDiameter": 3, - "recoveryHeadersMessage": 20, - "streamWindow": 2048, - "nonCriticalCQBootstrap": 0.95, - "criticalCQBootstrap": 0.8888, - "nonCriticalCQ": 0.8, - "criticalCQ": 0.654321, - "criticalForkThreshold": 2, - "fixedTimeCQ": 10 - }, - "node": { - "networkConnectionTimeout": 15000, - "conversationEstablishTimeout": 30000, - "blockRetrievalQueueSize": 100, - "pendingTxResubmissionPeriod": 7, - "walletProductionApi": false, - "walletTxCreationDisabled": false, - "explorerExtendedApi": false - }, - "wallet": { - "throttle": null - } -} \ No newline at end of file diff --git a/pkgs/default.nix b/pkgs/default.nix index cfeb3f74da0..b50d4b0f2fb 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -14716,6 +14716,7 @@ license = stdenv.lib.licenses.bsd3; , filepath , formatting , generic-arbitrary +, hedgehog , hspec , http-client , http-client-tls @@ -14890,6 +14891,7 @@ extra filelock formatting generic-arbitrary +hedgehog hspec lens network-transport