Commit Graph

5706 Commits (232a171506b05b37fe88ca4c10e9832ae8d4bb38)

Author SHA1 Message Date
jMyles 7ad7555374 Flatting the completed_work_order logic - if there weren't any, then it doesn't matter if we passed use_precedent_work_orders. 2020-02-08 01:18:50 -08:00
jMyles 55f96bdc38 Splitting the argument previously called 'cache' into three more coherent and granular parameters. 2020-02-08 01:18:50 -08:00
jMyles 80ed235cae retrieve() now uses new WorkOrder logic. 2020-02-08 01:18:50 -08:00
jMyles 677c8ddcfb When generating WorkOrder, if CFrags are being retained, return two tuples of WorkOrders - one complete, the other incomplete. Also some refactoring. 2020-02-08 01:18:50 -08:00
jMyles 577dc0fe0a Test showing complete flow of both Bob modes. 2020-02-08 01:18:50 -08:00
jMyles 4c92c9cdcc Caching can now either use CFrags provided on Capsule or those saved in WorkOrders, or both. 2020-02-08 01:18:50 -08:00
jMyles c8a2af2f7a Inverting order of check for completion of WorkOrder. 2020-02-08 01:18:50 -08:00
jMyles 3723136d5f Better logs and errors when Ursula is not around during retrieve. 2020-02-08 01:18:49 -08:00
jMyles 7aab0c64c6 Test showing that Bob can't partially retrieve and then resume without caching. 2020-02-08 01:18:49 -08:00
jMyles 2e37fc72bf Using NodeSeemsToBeDown instead of requests-specific exception. 2020-02-08 01:18:49 -08:00
jMyles 9aaf696fb5 Bob retrieves again! 2020-02-08 01:18:49 -08:00
jMyles adba29ec1b Affirmatively setting reuse_already_attached to False to show that this works the first time. 2020-02-08 01:18:49 -08:00
jMyles 630dec68c0 A test for Bob using a CFrag attached to a previously completed WorkOrder. 2020-02-08 01:18:49 -08:00
jMyles 43f3dad402 Short-circuit to return already_attached CFrags when resuing already completed WorkOrders. 2020-02-08 01:18:49 -08:00
jMyles 78bad1cad1 Fixing up frag handling tests for new API. 2020-02-08 01:18:49 -08:00
jMyles 62bc886f54 Adding 'include_completed' as a separate argument from 'cache'. 2020-02-08 01:18:49 -08:00
jMyles a0b5ea7393 Testing show successful second retrieval. 2020-02-08 01:18:49 -08:00
jMyles 230973db62 Maybe we can use already attached CFrags here. 2020-02-08 01:18:49 -08:00
jMyles 29ebb81323 Set correctness_keys and get saved WorkOrders early so we can use them to check if we needn't retrieve again. 2020-02-08 01:18:49 -08:00
jMyles 150cc34e3e Default to needing to do new retrieval; we'll check to see if we don't. 2020-02-08 01:18:49 -08:00
jMyles d5b74ab5a9 WorkOrder.tasks is now a dict, keyed by Capsule. 2020-02-08 01:18:49 -08:00
jMyles 234db351b6 retrieve() can now reuse CFrags attached to WorkOrders that hadn't been attached to the Capsule. 2020-02-08 01:18:49 -08:00
jMyles 83e44a63f2 Not necessarily generating new WorkOrders anymore; maybe looking them up. And they aren't necessarily 'generated' anymore; they're instead just known to be useful. 2020-02-08 01:18:49 -08:00
jMyles f4051039dc TODO showing #1197. 2020-02-08 01:18:49 -08:00
jMyles a8761f0d76 Adding branch for already-completed WorkOrder. 2020-02-08 01:18:49 -08:00
jMyles bd2dcec02e Always look for existing WorkOrder. 2020-02-08 01:18:49 -08:00
jMyles 0cb4f71709 Beginnings of a test; clearer logs. 2020-02-08 01:18:49 -08:00
jMyles 9c9337e153 If Bob tries to generate WorkOrders and there are none to generate, that needs to be at least a warning (as here). Maybe raise in teh future. 2020-02-08 01:18:48 -08:00
jMyles df9db7aa51 No need to make a new WorkOrder here, but we probably need an option to enable exactly that. 2020-02-08 01:18:48 -08:00
Kieran R. Prasch 5dceb34207 Give some attention to layering get missing confirmations via agent and actor; Fixes prolong duration sugestion. 2020-02-07 13:44:59 -08:00
Kieran R. Prasch 22ccdb4d68 Rebase touchups; bobkey spec bugfix. 2020-02-07 13:26:40 -08:00
Kieran R. Prasch b9679a46b3 Handle zero stakes in stake list cli 2020-02-07 13:26:40 -08:00
Kieran R. Prasch b99e8f51cf relock deps 2020-02-07 13:26:40 -08:00
Kieran Prasch 96a6088f11 Restore prettify stake' Fixes broken sprout and abridged details references. 2020-02-07 13:26:40 -08:00
Kieran Prasch 2df20d1aae additional stakeholder utility refactoring for increased cli tabling flexibility 2020-02-07 13:26:40 -08:00
Kieran Prasch fe08bed947 Include staking status in accounts painting; Missing periods in stake listing. 2020-02-07 13:26:40 -08:00
Kieran Prasch 88afb9eb19 Implements tabulate to include individual staker status vis stake listing. 2020-02-07 13:26:40 -08:00
K Prasch 72e03b244f
Merge pull request #1560 from cygnusv/multisig
Foundations for MultiSig API and tooling.
2020-02-07 13:24:31 -08:00
David Núñez c756b4ef14 Use new agency_local_registry fixture for CLI tests, and fix broken tests
Previously, we were supporting the consistency of our registry usage in a weird combination of fixtures' side-effects. Not anymore. CLI tests should use agency_local_registry, since it's a file-based mirror of the test_registry fixture when agency is assumed.
2020-02-07 11:28:34 +01:00
David Núñez 1356346533 Fix test for CLI multisig deployment. Remove unused registry fixture 2020-02-07 11:22:08 +01:00
David Núñez ee868e73d7 PoC of nucypher-deploy multisig sign, including decoding of proposed TX 2020-02-07 11:22:08 +01:00
David Núñez 2f090b3b44 First pass at CLI command to build upgrade TX via MultiSig: nucypher-deploy upgrade --multisig ... 2020-02-07 11:22:08 +01:00
David Núñez 2b9b56aa73 First take on `nucypher-deploy multisig inspect`. Skeleton for other actions 2020-02-07 11:22:08 +01:00
David Núñez 554ce00923 First pass at deploying MultiSig contract with nucypher-deploy
* Adapting ContractAdministrator to additional, optional deployers (e.g, for MultiSig)
* Adds option --parameters to nucypher-deploy that allows to pass override arguments for contract deployment. Intended usage is MultiSig constructor arguments, but can be potentially used in other contracts (e.g., custom args to NuCypherToken).
* Tests for MultiSig deployment with the CLI
2020-02-07 11:22:08 +01:00
David Núñez 0058230c3d Janitorial stuff 2020-02-07 11:22:08 +01:00
David Núñez 4aeb64486e Touches to MultiSigDeployer and MultiSigAgent. Tests for both 2020-02-07 11:22:08 +01:00
David Núñez 2e7cdc984b Extract common logic of proxy contract deployers to ProxyContractDeployer
This includes the new functionality of build_retarget_transaction() needed for upgrades via multisig, which is common for both Dispatchers and StakingInterfaceRouter
2020-02-07 11:22:08 +01:00
David Núñez 5a23b8ee99 Pass block confirmations requirement down the line 2020-02-07 11:22:08 +01:00
David Núñez 88a365ac18 Obtain upgrading transactions for Dispatcher.upgrade()
Uses the new BlockhainInterface.build_transaction() endpoint to construct unsigned transactions.
The unsigned transactions in this commit are the raw data that is signed by MultiSig participates during a contract upgrade.
2020-02-07 11:22:08 +01:00
David Núñez 9a6a8be976 Touches to MultiSigAgent and MultiSig actors 2020-02-07 11:22:07 +01:00