Commit Graph

1955 Commits (0184ef91610d5a53b03b2ad2e1083bdd61deafd9)

Author SHA1 Message Date
David Núñez 7e1dec2950
Merge pull request #1662 from vzotova/rate-range
[DO NOT MERGE YET] Reward rate range
2020-02-27 12:05:03 -08:00
David Núñez 0dcdf51fc8
Merge pull request #1738 from cygnusv/activate-network
Allow to deploy a network in idle mode. Activate later
2020-02-26 15:40:38 -08:00
tuxxy 87534a944d Handle InvalidSignature and add to suspicious activities and log the offense 2020-02-25 05:33:05 +01:00
tuxxy 8b2ac8106d Learn from a teacher who provides improperly signed payloads 2020-02-25 03:09:22 +01:00
David Núñez c63c754c89 Test showing how a manual deployment of an idle network is done 2020-02-24 15:29:11 -08:00
David Núñez db85663e05 Use new deployer mode everywhere else 2020-02-24 11:37:32 -08:00
Kieran R. Prasch 891dd04d2a Cleanup: No need to pass --staker-address. Support get_worker_config_in_tests. 2020-02-23 19:20:17 -07:00
Kieran R. Prasch f858ede235 Setup optional bonding timeout and settable poll rate for Workers. 2020-02-23 19:20:17 -07:00
Kieran R. Prasch 728793b24a Monkeypatch registry source fetching in CLI reconfiguration tests. 2020-02-23 19:20:17 -07:00
tuxxy 0a0a083f62 Going a different direction, make block_until_bonded a staticmethod for Worker init 2020-02-23 19:20:17 -07:00
tuxxy 44739108c6 Add worker_is_bonded static method and include in worker tests 2020-02-23 19:20:17 -07:00
David Núñez 4fb7d0efa4 Show how to activate StakingEscrow using its deployer 2020-02-23 09:00:58 -08:00
David Núñez aaf9f32734 Trying to stake when network is idle should fail 2020-02-23 08:28:36 -08:00
David Núñez 29ba116e42 Test for deploying network contracts with StakingEscrow in idle state 2020-02-22 17:11:55 -08:00
David Núñez e55ccf2341 More general deployment modes: Meet Bare, Idle and Full
Idle = Deploy contract in 'idle' state, without activation
2020-02-22 17:11:55 -08:00
David Núñez 5968b519d8 Clean and simplify some deployers logic 2020-02-22 17:11:55 -08:00
vzotova 0dd1f90c14 Apply suggestions from code review #1730
Co-Authored-By: Derek Pierre <derek.pierre@gmail.com>
Co-Authored-By: K Prasch <kieran@nucypher.com>
2020-02-22 11:38:31 +03:00
vzotova 7a25f2ca0d Fix #1726 2020-02-21 15:49:25 +03:00
vzotova 4188cc673f Set min rate for a staker in actor, agent and CLI layers 2020-02-20 12:05:50 +03:00
vzotova 3816151cf9 Method for setting range of min reward rate in actors, deployers and CLI layers 2020-02-20 12:03:48 +03:00
vzotova 633b87ebfb PolicyManager: min reward rate range 2020-02-20 12:03:48 +03:00
Kieran R. Prasch bcbbec9016 Fixes missing bytes caster on CLI test. 2020-02-19 20:53:39 -07:00
Kieran R. Prasch 3f3386d360 Allow for forcible blockchain interface registration for tests. 2020-02-19 20:53:39 -07:00
jMyles 0a1d2a5282 Compatibility with changes to middleware and side channel fixture. 2020-02-16 18:42:09 -07:00
jMyles 18ce406bce Pushing arrangement query down to new agent methods. 2020-02-16 17:47:25 -07:00
jMyles dbcbc26cba Test showing that paying the wrong nodes results in Ursula noticing and refusing to service the Policy. 2020-02-16 16:33:15 -07:00
jMyles e7e26c5cc3 Moving freeriding attacks to their own module. 2020-02-16 12:29:10 -07:00
jMyles ed56c78d74 Test showing the 'safeguards removed' variant of trying not to pay. 2020-02-16 11:06:10 -07:00
jMyles 624242d791 Don't need capsule side channel here anymore. 2020-02-15 19:47:09 -07:00
jMyles cf07c3add6 Why wasn't blockchain side channel always compatible with the federated one? 2020-02-15 17:58:48 -07:00
jMyles f0d7781ef5 Fixing up sinpa test to use Amonia. 2020-02-15 17:57:58 -07:00
David Núñez 0faff6f45a Test demonstrating how Alice can do a "sinpa" (dine and dash)
Fake it till you make it

(This commit was modified by @jMyles to depict the attack in a separate test rather than modifying test_decentralized_grant in place.)
2020-02-14 12:26:39 -07:00
vzotova 9f13dc81d9 StakingEscrow: separate event for `prolongStake` 2020-02-13 23:16:08 +01:00
vzotova 030eda725f Apply suggestions from code review #1652
Co-Authored-By: Derek Pierre <derek.pierre@gmail.com>
2020-02-13 23:16:03 +01:00
vzotova ab0bad144e Small fixes for duration ranges in stake cli 2020-02-13 23:15:22 +01:00
vzotova b26f3993eb Fix for duration of sub-stake in case when winding down is disabled 2020-02-13 23:14:28 +01:00
vzotova 16757e32a2 Contracts: public -> external where possible 2020-02-13 23:14:28 +01:00
vzotova 546fc83b44 Rename _totalSupply to _totalSupplyOfTokens to prevent variables shadowing 2020-02-13 23:14:28 +01:00
Kieran R. Prasch 6f9e89d826 Cleanup grant lifecycle tests 2020-02-13 13:40:42 -07:00
Kieran Prasch 18be53f5a5 Tests backing up CLI inline config; worker IP envvar to support. 2020-02-13 13:40:42 -07:00
Kieran Prasch eb916afa52 Special handling of Alice grant CLI options; 2020-02-13 13:40:42 -07:00
David Núñez a91f0d26a2 Since we use agency_local_registry fixture now, remove registry mock in test_felix
Really closes #1346
2020-02-13 11:19:55 -07:00
David Núñez 4b161121c2 WorkLock deployment parameters for tests are hard-coded in token_economics fixture
TODO: do something better about it
2020-02-13 11:19:55 -07:00
David Núñez de0ced9518 Fix problems with bidder initialization in WorkLock CLI 2020-02-13 11:19:55 -07:00
David Núñez f5816de34b
Merge pull request #1672 from vzotova/fix-1671
Fixes bug in PolicyManager #1671
2020-02-13 14:08:04 +00:00
vzotova 9aa49f57f0 Ignoring broken state in `PolicyManager.rewardState` with possibility to fix it later 2020-02-11 21:48:16 +03:00
vzotova b7098590e6 Reproduce scenario from #1671 2020-02-11 19:15:12 +03:00
vzotova c17653b535 Restrict checks in `PolicyManager.register()` and `PolicyManager.createPolicy()` to prevent inconsistent state 2020-02-11 17:17:35 +03:00
damon c d389e075e3
Merge pull request #1330 from nucypher/birdcage
[EPIC] Birdcage: A PR for people who want to pretend to like Bob.
2020-02-10 15:34:46 -08:00
jMyles 90a3c26298 Finishing the layup for which @michwill set me up vis a vis TreasureMaps being passed through Bob's controller. 2020-02-10 13:09:15 -08:00