Commit Graph

5190 Commits (377d88c81cc1c0788c3291453d4d092a659e59ac)

Author SHA1 Message Date
jMyles 377d88c81c Making fixture out of high-performance mocked ursulas. 2020-01-08 16:43:39 -08:00
jMyles 367195d5e7 Moving performance mocks to separate module. 2020-01-08 16:43:39 -08:00
jMyles dd9f866ba7 Collating all mocks needed to make high-performance mock ursulas. 2020-01-08 16:43:39 -08:00
jMyles 80778dc957 Pass entire class throug in order to instantiate NodeSprout or node instance. 2020-01-08 16:43:39 -08:00
jMyles 7df1fde295 New test module for discovery phases. 2020-01-08 16:43:39 -08:00
jMyles f7e90f4bc3 Updating test to account for use of NodeSprout. 2020-01-08 16:43:39 -08:00
jMyles 7b57f0b06e New remember_node logic using NodeSprout. 2020-01-08 16:43:39 -08:00
jMyles a301a92448 Introducing NodeSprout - a lighter-weight representation meant for rapid instantiation. 2020-01-08 16:43:39 -08:00
jMyles 92a7be805a Passing Ursula class through instead of importing. 2020-01-08 16:43:39 -08:00
jMyles 0c962902e6 Splitting parsing logic from discovery logic. 2020-01-08 16:43:39 -08:00
jMyles c64d09dd12 Switching eager remembering to False by default, but keeping eager for known_nodes to preserve current behavior for the moment. See #1449. 2020-01-08 16:43:39 -08:00
jMyles bc6950dd8f Better tracking of mock verifications. 2020-01-08 16:43:39 -08:00
jMyles 153c9ceea8 More eagerness controls. 2020-01-08 16:43:39 -08:00
jMyles 0555018ff1 Test showing #1450. 2020-01-08 16:43:39 -08:00
jMyles cd29869ac4 Crazy web of patches. These are the minimum mocks required to produce 5000 Ursulas in the timeframe required for a test. 2020-01-08 16:43:39 -08:00
jMyles d329b98293 A fast mock public key. 2020-01-08 16:43:39 -08:00
jMyles 0d532cefb2 A new mock middleware client with a slightly deeper mock of node metadata transmission. 2020-01-08 16:43:39 -08:00
jMyles 7cfe32fa4c Using separated known_nodes bytestring. 2020-01-08 16:43:39 -08:00
jMyles 5a563999c6 Separating construction of bytestring of all known nodes so that it can be used more easily in tests. 2020-01-08 16:43:39 -08:00
jMyles 6a336aecbd Insane monkey patching block. This is how you make several thousand Ursulas in a test. 2020-01-08 16:43:39 -08:00
jMyles a6d3e5841f Need a way to pause all logging for massive Ursula tests. 2020-01-08 16:43:39 -08:00
David Núñez 946282da4d
Merge pull request #1538 from cygnusv/amaranta
Dehydrate PreallocationEscrow deployment
2020-01-04 23:31:55 +00:00
David Núñez 49219169e9 Address RFCs to #1538: add some @validate_checksum_address decorators 2020-01-05 00:16:37 +01:00
David Núñez 966d5d4862 Correct description of calldata layout in receiveApproval() 2020-01-03 12:13:53 +01:00
David Núñez ebb58ae48d Enter the Sidekick: assisting ContractAdministrator to deploy preallocation contracts 2020-01-03 12:13:53 +01:00
David Núñez 8565789f57 ContractAdministrator regains fine-grain control over preallocation deployment steps 2020-01-03 12:13:53 +01:00
David Núñez 37558d0264 Change order of PreallocationEscrow's deployment steps 2020-01-03 12:13:53 +01:00
David Núñez 4e8caac910 Use approveAndCall also when creating a stake in StakingEscrow
* Reduces stake creation to a single TX
2020-01-03 12:13:53 +01:00
David Núñez 187fba171d Remove one deployment step of PreallocationEscrow, using approveAndCall 2020-01-03 12:13:53 +01:00
David Núñez a1a3ea5b90 Detailed documentation of calldata memory structure 2020-01-03 12:13:53 +01:00
vzotova d1cb098d1e receiveApproval method for PreallocationEscrow 2020-01-03 12:13:53 +01:00
K Prasch f3ad49f1b7
Merge pull request #1552 from derekpierre/garnish-rfc
Modify allowed value range for divide cli prompt
2020-01-02 14:53:52 -08:00
derekpierre e3e9f17791 Modify allowed value range for divide cli prompt 2020-01-02 16:50:24 -05:00
K Prasch a00e0d4810
Merge pull request #1536 from KPrasch/garnish
Improves Staking UX via CLI; Many Bug Fixes
2020-01-02 12:57:35 -08:00
Kieran R. Prasch 88386c91f9 Respond to RFCs in PR #1536 2020-01-02 12:41:44 -08:00
Kieran R. Prasch 48a347ade9 ensure --force allows set-worker withput a prompt 2020-01-02 12:41:44 -08:00
Kieran R. Prasch 8cf8397726 Adjustments to config tests to loosen up a little and allow for config versioning to be seperately tested. 2020-01-02 12:41:44 -08:00
Kieran R. Prasch f501f6dedb Remove stale password assertions (UX no longer requires auth for 'view') 2020-01-02 12:41:44 -08:00
Kieran R. Prasch 04072d7ce0 Implements basic log file rotation to curb excessive log file generation. 2020-01-02 12:41:44 -08:00
Kieran R. Prasch 4324618128 Disable hardcoded seednodes in conftest. 2020-01-02 12:41:44 -08:00
Kieran R. Prasch 20146e152b Fixes #1260 - Add enforced versioning to configuration files. 2020-01-02 12:41:44 -08:00
Kieran R. Prasch abb462f69a Use maximum stake value and duration as defaults. Refine interactive stake limits. Further CLI detailing for UX liveliness 2020-01-02 12:41:44 -08:00
Kieran R. Prasch f2aac32023 Fixes #835 - Staged stake consistency check - verify action occours within the same period it started. 2020-01-02 12:41:44 -08:00
Kieran R. Prasch 69cfbe7327 Adds header and labels to interactive client account selection 2020-01-02 12:41:44 -08:00
Kieran R. Prasch b1436a3596 Fixes #1154 - Do not present indivisible stakes to the stakeholder for division via CLI. 2020-01-02 12:41:44 -08:00
Kieran R. Prasch 17746b76b2 Fixes #1233; Also Prevent loading of teacher via CLI commands that do not require it. 2020-01-02 12:41:42 -08:00
Kieran R. Prasch 84db4d3af1 Do not interactively collect staker address during worker init CLI actions. 2020-01-02 12:38:21 -08:00
Kieran R. Prasch 45e5a6341f Allow __eq__ to default definition on Stakes. 2020-01-02 12:38:21 -08:00
Kieran R. Prasch 2fe76ea53a Fixes #1243, #859 - Use JSON dumps indentation to display the user config file contents as pretty JSON string; Do not require authentication to run nucypher ursula view. 2020-01-02 12:38:21 -08:00
Kieran R. Prasch 9a0efc4e12 Fixes #1231 - Reflect worker balances accurately (Not Staker's). 2020-01-02 12:38:21 -08:00