-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1414: cardano-node OBFT - test integration setup r=KtorZ a=KtorZ # Issue Number <!-- Put here a reference to the issue this PR relates to and which requirements it tackles --> #1346 # Overview <!-- Detail in a few bullet points the work accomplished in this PR --> - 25fe581 make byron's 'newNetworkLayer' use bracket style allocation So that the underlying connection to the node gets cleaned-up when the network layer is destroyed. Also, make sure to clean up past clients when creating new cursors - b2b4660 Retry connecting to client when the socket does not exist - fc51990 move byron integration scenarios requiring a shelley wallet to Scenario/API/Wallets - 230ac84 implement 'getCurrentNodeTip' for Byron's network layer - bf65a99 Move faucets declarations to core-integration for sharing - 455aba4 add basic integration setup for cardano-node OBFT - 99de24a fixup Byron network layer implementation. - b32000c remove hard-coded blockchain parameters from integration scenarios The parameters are actually different for each network, in particular on Byron where the start_time changes on every restart - 2cfee3c remove unused dependencies and weeds - cd4f04d re-generate nix machinery - a10afb5 remove unavailable commands from cardano-wallet-byron These require non-byron wallets, so it doesn't make sense to have them part of the command-line. - fcaed2b Fix wrong protocol magic for TestNet Whoops. Fortunately, we only used MainNet Byron addresses on the ITN 😶 - 4c97098 require no magic for cardano-node in the integration setup We use the 'mainnet' network target which doesn't require any magic inside addresses and such. # Comments <!-- Additional comments or screenshots to attach if any --> ``` $ stack test cardano-wallet-byron:integration . . . . Finished in 385.0136 seconds 62 examples, 0 failure ``` :warning: There's two scenarios that are _pretty long_ to run in the NETWORK_ group: they need to wait for _the next epoch_, but in OBFT byron, the epoch length is `10*k`. I am not quite sure about setting `k` to values that are _too small_, so I set it to `k=10` at the moment which seems fine (might revisit later) but still leads to an epoch length of 100 slots. <!-- Don't forget to: ✓ Self-review your changes to make sure nothing unexpected slipped through ✓ Assign yourself to the PR ✓ Assign one or several reviewer(s) ✓ Once created, link this PR to its corresponding ticket ✓ Assign the PR to a corresponding milestone ✓ Acknowledge any changes required to the Wiki --> Co-authored-by: KtorZ <matthias.benkort@gmail.com>
- Loading branch information
Showing
33 changed files
with
5,440 additions
and
2,138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.