Commit Graph

220 Commits (2daa9b499d7a001d2803622010fdfcfb0edbf4b6)

Author SHA1 Message Date
Bogdan Opanchuk 2e0efe451e Use in-memory mock LMDB environment for most tests 2021-01-02 17:19:13 -08:00
Bogdan Opanchuk 61253968fc Simplify the reencryption loop 2020-12-18 15:19:43 -08:00
Bogdan Opanchuk 08c7f83548 Remove an unnecessary alternative of passing a treasure map via map_id
Every time it happens the actual map object is also available.
2020-12-15 14:04:32 -08:00
Bogdan Opanchuk 60c0f4412f Turn `construct_hrac_and_map_id()` into `construct_map_id()` (hrac is not used anywhere) 2020-12-15 13:36:20 -08:00
Kieran R. Prasch 912e2b1c46
Revert signed treasure map changes for federated policies. 2020-12-09 00:13:38 -08:00
K Prasch af1c11b0d4
Merge pull request #2460 from KPrasch/probation
Complete grant CLI policy interactons and probationary period enforcement
2020-12-08 14:08:53 -08:00
Kieran Prasch fcdfdda58b Test demonstrating AccessDenied on invalid or incorrect keystore signer password 2020-12-08 10:56:42 -08:00
Kieran R. Prasch acdcf8c16e Resolves TODO regarding none value as software signer password; Raise AccessDenied. 2020-12-08 10:41:27 -08:00
Kieran Prasch 2cecfb3cfd Rewords keyring decryption console messages. 2020-12-08 10:40:42 -08:00
David Núñez 6d112dbeec Use decimal token values in CLI tests for `nucypher stake` commands 2020-11-30 16:13:16 +01:00
David Núñez 35af6a3a07 When mocking the StakingEscrowAgent, handle the special case of commit_to_next_period, which returns a txhash due to the fire_and_forget option
Also, improves type hints related to the special case of commitment TXs, that result in txhashes instead of receipts.
2020-11-06 12:32:51 +01:00
David Núñez 3b70b06a8a Support for user-provided gas price via a fixed-price gas strategy 2020-11-06 12:19:34 +01:00
jMyles ef29bec8e7 Neatening formatting, also pursuant to RFC. 2020-11-04 14:04:32 -07:00
jMyles 9e009805fd Ursulas and NodeSprouts now share a common API, with domain as str. 2020-11-03 18:13:15 -07:00
jMyles d1313581ef Even when including nodes as seednode metadata, the domain is checked before remembering the resulting Sprout. 2020-11-03 18:13:15 -07:00
jMyles 0aa33c3f1e Can't just plunk federated_ursulas into known_nodes anymore if they aren't on the same domain. 2020-11-03 18:13:15 -07:00
jMyles 8bfa31b11b Test showing that the cross-domain pollution via POST is no longer possible. 2020-11-03 18:13:15 -07:00
jMyles 6cb3feae86 Making this test way better now that domains are tightened up> 2020-11-03 18:13:15 -07:00
jMyles c4786f551a No longer are there 'serving' domains and 'learning' domains. Everybody just has a domain. 2020-11-03 18:13:15 -07:00
jMyles c9118d1f02 FleetSensor is now domain-aware. 2020-11-03 18:13:08 -07:00
Kieran Prasch ba8cae96eb Respond to RFCs in PR #2389 2020-10-19 15:56:14 -07:00
David Núñez 7e644b0770 Be sure we're using the MockBlockchain in integration tests 2020-10-19 21:57:45 +02:00
David Núñez 145ebdf8ef When sending TXs, allow to specify if we want to use a pending nonce or not 2020-10-19 18:59:28 +02:00
derekpierre 4ed221e880 Add unit test for allowing minimum stake when equals available balance. 2020-10-16 16:37:29 -04:00
K Prasch 9707ac4b8b
Merge pull request #2347 from fjarri/nicer-status-page
Nickname refactoring & changing nickname symbols to more common ones
2020-10-13 12:09:20 -07:00
tuxxy 38d0fccefd Truncate hracs to 16 bytes 2020-10-13 10:01:37 +02:00
tuxxy 622b4ed1ba Fix test_mass_treasure_map_placement (thanks @jmyles) 2020-10-13 10:01:37 +02:00
tuxxy c965f72c2e Fix DoS vector on nodes through map storage 2020-10-13 10:01:37 +02:00
tuxxy 86c2744dae Add test_bob_retrieves_treasure_map_from_decentralized_node 2020-10-13 10:01:37 +02:00
tuxxy 5962cd4c05 Prune expired treasure maps in __prune_datastore (formerly __prune_arrangements) 2020-10-13 10:01:37 +02:00
tuxxy 828a630c0e Remove treasure_map_id param from receive_treasure_map API endpoint
Fix up logic and add tests. Additionally, skip test_mass_treasure_map_placement
2020-10-13 10:01:37 +02:00
tuxxy 4b128d871e The NodeEngagementMutex should expect a 201 not a 202. 2020-10-13 10:01:37 +02:00
tuxxy f87e088dec Implement TreasureMap storage in the Datastore 2020-10-13 10:01:37 +02:00
tuxxy 46e1fdd4c1 Create a TreasureMap datastore record and move model tests to test_datastore_models
Move test_datastore_models to unit tests
2020-10-13 10:01:37 +02:00
Bogdan Opanchuk 725eae1738 Pass nicknames around as a class instead of unstructured data 2020-10-12 16:11:01 -07:00
derekpierre c04ef09d24 Use --from-unlocked to indicate the use of uncollected staking rewards and unlocked sub-stakes to fund stake. 2020-10-09 11:26:31 -04:00
derekpierre 388dd3734a Allow --use-rewards flag to specify when only uncollected staking rewards should be used for creating/increasing a stake.
If value is provided then user not prompted, but if it isn't and --use-rewrads is specified, user is prompted to confirm.
2020-10-08 13:57:13 -04:00
jMyles 28c8f87684 Test showing that #1735 was apparently untrue. Fixes #1735. 2020-09-29 10:23:39 +02:00
David Núñez df06e3e1ee Pending change to single-domain from the Trezor PR 2020-09-25 11:53:08 +02:00
David Núñez f96e82d95e Utility test to obtain versioned Ursulas' metadata hexstrings 2020-09-24 20:28:31 +02:00
David Núñez 3d6502468d Comment flaky assertion on test_discovery_phases. See #2016 2020-09-24 20:28:31 +02:00
David Núñez 279f07c9e4 Handle invalid metadata bytes in node storage. Unit tests. 2020-09-24 20:28:31 +02:00
David Núñez d4ac7ce351 Failing test showing that currently we learn about nodes from a different domain
Demonstrates #1843
2020-09-24 20:28:31 +02:00
David Núñez f42de3ae11 Some janitorial stuff 2020-09-24 20:28:31 +02:00
David Núñez 064972e800 Some unit tests reorganization 2020-09-24 20:27:13 +02:00
David Núñez 14c6307645 Include test for hardcoded version 2 node metadata bytestrings 2020-09-24 20:27:13 +02:00
David Núñez 148ba39698 Adapt Learning Loop version 1 test due to new incompatibility with current version. 2020-09-24 20:27:13 +02:00
David Núñez 84a53a790f Allow to define a sort of "compatibility range" for LL versions: anything outside it's either from the future or the past 2020-09-24 20:27:13 +02:00
jMyles 8d18272d77 Some syntactic cleanup suggested by @michwill in comments on #1868. 2020-09-24 20:27:13 +02:00
David Núñez 4cf7dcadc3 We're done with multiple domains, for the moment.
Closes #2144. Closes #1580.
2020-09-24 20:27:13 +02:00