Commit Graph

7888 Commits (e6d1d00f0a757da3cfc5765ceb25a4d6e730893f)

Author SHA1 Message Date
Bogdan Opanchuk d4a94cd01e Remove an unused import 2020-09-29 09:26:48 +02:00
Bogdan Opanchuk 572aec1574 Remove an unused variable 2020-09-29 09:26:30 +02:00
Bogdan Opanchuk 701d5ac06b Fix the return type of _make_rest_app() 2020-09-29 09:26:15 +02:00
K Prasch 2bc2081549
Merge pull request #2304 from vzotova/contracts-updates
Some contract updates
2020-09-28 16:59:11 -07:00
David Núñez 73f902938e Print single domain in Ursula's status page 2020-09-28 22:50:17 +02:00
derekpierre 47ac10bba0 Add docstring for retry middleware. 2020-09-28 13:35:58 -04:00
vzotova aca9c65b68 StakingEscrow: check for snapshots in batchDeposit, allow setWindDown before deposit 2020-09-28 14:05:19 +03:00
vzotova 7987115f75 StakingInterface: method to control snapshots 2020-09-28 12:45:52 +03:00
vzotova 4dcb414890 StakingEscrow: deposits from worklock allowed only after initialization 2020-09-28 12:12:35 +03:00
derekpierre 9f253b585b Use Optional type for _attach_provider..
Co-authored-by: Bogdan Opanchuk <bogdan@opanchuk.net>
Co-authored-by: K Prasch <kieran@nucypher.com>
2020-09-25 19:40:25 -04:00
Kieran Prasch eee125c184
Bump version: 3.0.0-beta.1 → 3.0.0-beta.2 2020-09-25 13:19:03 -07:00
K Prasch 9b45c08ac4
Merge pull request #1881 from nucypher/blue-oyster-mushrooms
Blue oyster mushrooms: Evolving node validity, optimization, domain separation, and migration.
2020-09-25 12:40:57 -07:00
David Núñez ad696b545e
Apply suggestions from code review
Co-authored-by: Derek Pierre <derek.pierre@gmail.com>
2020-09-25 19:26:43 +02:00
derekpierre 3e8834e174 Code cleanup including reusing existing add_middleware function, and general cleanup of tests. 2020-09-25 09:43:04 -04:00
David Núñez df06e3e1ee Pending change to single-domain from the Trezor PR 2020-09-25 11:53:08 +02:00
derekpierre 43ea03f022 Add retry middleware for Infura. 2020-09-24 21:45:38 -04:00
derekpierre 96084fb1b9 Remove infura:// scheme for infura specific provider - it isn't used. 2020-09-24 19:32:08 -04:00
derekpierre cc9ea699c9 Use Web3 middleware, instead of modifying web3 provider classes, to automatically retry requests based on response/exception returned.
Add unit test for AlchemyClient
2020-09-24 19:32:09 -04:00
derekpierre 01404bf2ad Improve typing for use of web3 providers. 2020-09-24 19:32:08 -04:00
derekpierre 7f362e0c24 Refactor name of retry callable parameter. 2020-09-24 19:32:08 -04:00
derekpierre 9e8df7509f Initial work for retry functionality with Alchemy providers. 2020-09-24 19:32:08 -04:00
K Prasch 73cb5b9827
Merge pull request #2297 from nucypher/contracts
Update contract registry for StakingInterface and router
2020-09-24 11:35:20 -07:00
David Núñez 47e01d6360 Address RFCs on #1881 2020-09-24 20:28:31 +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
Kieran Prasch 538aa7924e Fix imports 2020-09-24 20:28:31 +02:00
Kieran Prasch 0f63103df8 Handle invalid node cert during availability tracking 2020-09-24 20:28:31 +02:00
Kieran Prasch c0313e8311 Handle invalid node cert during node validation 2020-09-24 20:28:31 +02:00
Kieran Prasch adf1c84c4f Additional checks and handling of invalid node certs; Unify exception class with lower-level crypto.api 2020-09-24 20:28:31 +02:00
David Núñez 4f60c61798 Don't call initialize() at init time for temp file NodeStorages
Co-authored-by: Derek Pierre <derek.pierre@gmail.com>
2020-09-24 20:28:31 +02:00
David Núñez ff10f2ec55 Don't return bool on Storage initialization. It wasn't used anyway. 2020-09-24 20:28:31 +02:00
David Núñez 7d330ead8d Simplify approach to node encoders/decoders in NodeStorage & Sons 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 c897a20d53 When restoring nodes from disk, let's just complain once if there are nodes from other domains 2020-09-24 20:28:31 +02:00
David Núñez 7a1907f0f3 Ignore restored nodes from disk that belong to a different domain 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 fcd7edb76d Improve files organization by TemporaryFileBasedNodeStorage 2020-09-24 20:28:31 +02:00
David Núñez f86eda9e26 When serializing nodes to disk, just use bytes, not hex (the default) 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 0fb2cad64a Relocate keypairs.py from datastore to crypto 2020-09-24 20:28:27 +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 9ee834f328 Fixed length identity evidence doesn't work with federated 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 c223622e2f Bump versions of both Learning Loop and Character Configurations 2020-09-24 20:27:13 +02:00
David Núñez 7189d97093 Use fixed length to encode identity evidence in Ursula's bytes 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
David Núñez 7e21280a12 Include test for hardcoded version 1 node bytestrings. See #1869 2020-09-24 20:27:13 +02:00