Commit Graph

7778 Commits (372b605f35d7e446ce3c782e3fb75648aad9da5c)

Author SHA1 Message Date
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
David Núñez 2d2a7a7cde Janitorial stuff 2020-09-24 20:27:13 +02:00
David Núñez 5a7678337f Opener for Blue Oyster Mushrooms 🍄 2020-09-24 20:27:13 +02:00
mswilkison e81dea6c48 Update contract registry for StakingInterface and router 2020-09-24 10:56:41 -05:00
K Prasch 1f5407e7d5
Merge pull request #2220 from KPrasch/signer
Trezorlib Transaction Signing
2020-09-24 08:06:54 -07:00
Kieran Prasch 11c8021363 Rework trezor transaction signing so that operations on the tx dictionary are non-mutative 2020-09-23 21:09:59 -07:00
Kieran Prasch c89fa91eef Adjust integration test for trezor signing testnet flag. 2020-09-23 15:37:25 -07:00
Kieran Prasch 7a4eff3842 Removes superfluous transaction signature verification. 2020-09-23 15:36:52 -07:00
Kieran Prasch fbda526cbd Prevent CI from importing libusb1 2020-09-23 13:28:28 -07:00
Kieran Prasch d1966a9451 Lazier evaluation of trezor derivation root 2020-09-23 13:08:23 -07:00
K Prasch da53638dfc
Merge pull request #2276 from fjarri/release-datastores
Make sure datastores are not retained in tests
2020-09-23 10:14:15 -07:00