Kieran Prasch
381ded5f8a
Second round of improvements for handling invalid passwords.
2021-03-04 13:58:01 -08:00
Bogdan Opanchuk
03bab50289
Minor RFC
2021-03-02 18:20:48 -08:00
Bogdan Opanchuk
c0a303a783
Help nucypher-monitor get the info it needs
2021-03-02 18:20:48 -08:00
Kieran Prasch
06d89fef07
ContractAdministrator is a BaseActor subclass. Respond to RFCs in PR #2572
2021-03-02 10:24:41 -08:00
Kieran Prasch
fd005b3ff7
Relocates CharacterConfiguration to nucypher.config.base
2021-02-26 13:38:37 -08:00
Kieran Prasch
ba464989ba
Actors accept a transacting power or an address but not both + Cleanup.
2021-02-26 13:38:37 -08:00
Kieran Prasch
dcd8c9b12f
Handle CLI-launched character unocking pre-init.
2021-02-26 13:38:37 -08:00
Kieran Prasch
7e07bd267e
Handle injected transacting power in tests.
2021-02-26 13:38:37 -08:00
Kieran Prasch
acfa1cad71
Do not return agents from agency fixture
2021-02-26 13:25:17 -08:00
Kieran Prasch
b91359f3ba
Bulk deprecation of Preallocation tooling.
2021-02-26 13:25:17 -08:00
derekpierre
397e872b1d
Add some tests.
2021-02-26 13:07:26 -05:00
Kieran Prasch
2ac8d276aa
Respond to RFCs for PR #2536 ; Holdover for future work; Post rebase cleanup.
2021-02-18 18:35:56 -08:00
derekpierre
305bf0a7fb
Added unit and integration tests for keyring.
2021-02-18 18:08:40 -08:00
derekpierre
cbe03d9dc1
Add unit tests for (de)serialization if keys from/to files.
2021-02-18 18:08:40 -08:00
derekpierre
bcfbf3e683
Fix failing unit tests.
2021-02-18 18:08:40 -08:00
derekpierre
6f25d57971
Better organize serialization/deserialization functions.
...
Use loopback address functions.
Respond to RFCs for #2536 .
2021-02-18 18:08:40 -08:00
Kieran Prasch
a4885c8fed
Advance tests along with API changes and code touch ups
2021-02-18 18:07:43 -08:00
Kieran Prasch
0b164b6df7
Test adjustments and code touch ups
2021-02-18 18:07:43 -08:00
derekpierre
ab30f1f497
Improve serialization/deserialization logic of private keys.
2021-02-18 18:07:43 -08:00
Kieran Prasch
6574836699
Additional cleanup and commentary
2021-02-18 18:07:43 -08:00
Kieran Prasch
c6e402a12a
Handle Vladimir stamp substantiation and missing asserts in test.
2021-02-18 18:07:41 -08:00
Kieran Prasch
37774897bc
Understand Ursula.run as the coordinated single point of service startup.
2021-02-18 18:06:31 -08:00
Kieran Prasch
212abcc145
Handle power derivation from keyring, or ad-hoc usage of TLSHostingPower.
2021-02-18 18:06:31 -08:00
Bogdan Opanchuk
37929b36a8
Implement changes from the review
2021-02-16 22:45:55 -08:00
Bogdan Opanchuk
4de9b91d2a
Refactor FleetSensor
2021-02-16 22:45:55 -08:00
KPrasch
7c6094f951
Merge pull request #2557 from fjarri/self-destruct-worker-pool
...
Stop the threadpool when all the worker results are processed
2021-02-15 11:47:47 -08:00
Kieran Prasch
9c649c6915
Ensures that banners are only logged when is_me is True for Alice, Bob, and Enrico.
2021-02-13 18:39:20 -08:00
Kieran Prasch
4c0f679c7e
Removes client_password from character init where possible, require signer to init a TransactingPower, removing default web3 signer.
2021-02-13 18:35:31 -08:00
Kieran Prasch
289078191d
Ensure that client password is optional in character's init.
2021-02-13 18:35:31 -08:00
Bogdan Opanchuk
09c476e2da
Propagate the actual exception from the producer thread instead of serializing it into string
2021-02-09 16:01:58 -08:00
Bogdan Opanchuk
7b4ab2a412
Stop the threadpool when all the worker results are processed
2021-02-07 15:11:03 -08:00
Kieran Prasch
d30b162208
Better support for CLI JSON responses and pretty printing.
2021-02-07 09:43:19 -08:00
Kieran Prasch
d4616416e7
Disables probationary period checking in tests.
2021-02-07 09:08:26 -08:00
Kieran Prasch
dc0932ab79
Temporary test skip for regarding issue #2552 ; Cleanup Imports.
2021-02-07 08:42:10 -08:00
K Prasch
0e29a6ab67
Merge pull request #2544 from vzotova/pool
...
Modification of WorkLockPoolingContract (without worklock part)
2021-02-05 14:36:39 -08:00
Victoria
36e47153df
Apply suggestions from code review #2518
...
Co-authored-by: K Prasch <kieranprasch@gmail.com>
Co-authored-by: Derek Pierre <derek.pierre@gmail.com>
2021-02-02 19:24:29 +03:00
vzotova
7c77aa65d0
Remove locking restake flag, throw error when node tries to commit twice in a row
2021-02-02 19:24:28 +03:00
vzotova
61d8dc1ec0
New deployment order: StakingEscrow dispatcher, then PolicyManager+Dispatcher -> Adjudicator+Dispatcher -> WorkLock and only after this StakingEscrow itself
2021-02-02 19:24:28 +03:00
vzotova
9815440464
New order of contracts deployment, StakingEscrow uses other addresses of main contracts in constructor
2021-02-02 19:24:28 +03:00
vzotova
19a2315fbe
Combine setters for linked contracts in StakingEscrow
2021-02-02 19:24:27 +03:00
vzotova
546e84a653
Remove test mode from StakingEscrow
2021-02-02 19:24:27 +03:00
vzotova
b384911e5d
Remove batch deposits
2021-02-02 19:24:27 +03:00
vzotova
08e2098dc2
Solidity 0.7.5 -> 0.7.6
2021-02-02 19:24:27 +03:00
vzotova
436ae0f134
New modification of WorkLockPoolingContract - without worklock part
2021-01-30 16:27:38 +03:00
K Prasch
f0c068eef3
Merge pull request #2534 from derekpierre/one-liner
...
Fixed blocking call waiting for number of known nodes which could infinite loop
2021-01-21 14:29:32 -08:00
K Prasch
6b2a9ecdbb
Merge pull request #2533 from cygnusv/fast-unit
...
Fixes to unit tests. Fix for #2484
2021-01-21 10:26:58 -08:00
derekpierre
9a886fa031
Fix invalid import for grant availability script.
2021-01-20 14:54:16 -05:00
David Núñez
0b2eb927be
We were incorrectly using net_version to identify the EthereumClient chain in certain places
...
Fixes #2484
2021-01-20 13:05:23 +01:00
David Núñez
d7e45d2959
Unskip cards unit tests
2021-01-20 12:36:27 +01:00
David Núñez
d02f0ead7f
Disable solidity compilation for MockBlockchain
2021-01-20 12:36:10 +01:00
Kieran Prasch
bb0f317898
Bigfix: Use Worker HTTP client for fleet-sourced external IP determination (and supporting tests)
2021-01-18 10:48:55 -08:00
Kieran Prasch
3c65c566ae
Expands external IP determination unit testing
2021-01-17 14:36:53 -08:00
Kieran Prasch
eda57b8c60
Force clearance of the mock ursulas cache
2021-01-15 18:20:05 -08:00
Kieran Prasch
9cb7c1979b
Bugfix and supporting tests for automated IP determination
2021-01-15 18:19:39 -08:00
Kieran R. Prasch
30f41b5602
Insert missing license header
2021-01-14 22:10:06 -08:00
damon c
e907a598a2
Merge pull request #2462 from KPrasch/automagic
...
IP address checks on worker startup
2021-01-14 20:47:32 -08:00
Bogdan Opanchuk
bbc4390f68
Generalize NodeEngagementMutex
2021-01-14 11:19:35 -08:00
Bogdan Opanchuk
a2b99daa1d
Merge proposals and enactment into a single method, return EnactedPolicy
2021-01-14 11:19:35 -08:00
Bogdan Opanchuk
de0f933118
Make Arrangement stateless and get rid of BlockchainArrangement
2021-01-14 11:19:35 -08:00
Bogdan Opanchuk
24d5e3a5ec
Remove PolicyCredential
...
It isn't used anywhere
2021-01-14 11:19:35 -08:00
Bogdan Opanchuk
e635825c9e
Remove unused mock classes
2021-01-14 11:19:35 -08:00
Bogdan Opanchuk
e81f285517
Make WeightedSampler behave correctly in case of several consecutive draws
2021-01-14 11:19:35 -08:00
Kieran Prasch
8c9da43d10
Allow for settable rest host in --dev mode.
2021-01-12 13:10:15 -08:00
Kieran Prasch
c7fd63630b
Unskips worker rate limiting test - Fixes unexpee limit test
2021-01-12 13:10:15 -08:00
Kieran Prasch
f35f2fcef3
Accmodate rest_host as a required Ursula init parameter for live nodes in test.
2021-01-12 13:10:15 -08:00
Kieran R. Prasch
2d98971b43
Temp. skip work tracker test for CI runs.
2021-01-12 13:10:15 -08:00
Kieran R. Prasch
86d61b41f1
Test touchups for ursula startup
2021-01-12 13:10:15 -08:00
Kieran R. Prasch
303b476cd4
Startup IP check session mocking; Adjustment for learning loop startup.
2021-01-12 13:10:15 -08:00
Kieran R. Prasch
2daa9b499d
Closes #2424
2021-01-12 13:10:15 -08:00
Kieran Prasch
94bf887364
Soften the impact of unknown IP during checkup
2021-01-12 13:10:14 -08:00
Kieran Prasch
7d6b45a2e0
Advances automatic IP determination: Query known nodes.
2021-01-12 13:09:07 -08:00
Kieran Prasch
5b88afc7c6
localizes card mocking fixture so CLI test modules will propery run.
2021-01-12 11:08:45 -08:00
Kieran Prasch
a9d3b6cf1e
Deprecation of automated deployment series by ContractAdministrator
2021-01-12 11:08:45 -08:00
Kieran Prasch
f2a1443457
Removes interactive commitment via UrsulaCommandProtocol
2021-01-09 16:55:44 -08:00
Bogdan Opanchuk
2e0efe451e
Use in-memory mock LMDB environment for most tests
2021-01-02 17:19:13 -08:00
Kieran Prasch
a9638ea6e1
Mock card save method (neded to run tests as suite).
2020-12-25 01:51:16 +01:00
Kieran Prasch
1cf48ede24
Installs new plumbing for --max-gas-price througout CLI and configuration modules.
2020-12-25 01:51:16 +01:00
David Núñez
568d05ae52
Simplify max_price_gas_strategy: not controlled by an envvar anymore
2020-12-25 01:51:16 +01:00
David Núñez
9cba73bd53
Deprecate datafeed_fallback_gas_strategy
2020-12-25 01:51:16 +01:00
David Núñez
d9d21f7cfb
Adjust some tests to use the free gas strategy by name, instead of a callable
2020-12-25 01:51:16 +01:00
damon
5ed448058c
worktracker: enforce random_interval after one failure
2020-12-25 01:51:16 +01:00
David Núñez
e3f3b65b34
Refine work tracker test
2020-12-25 01:51:16 +01:00
David Núñez
f2818bb5f0
Log test actions to facilitate debugging the worker test
2020-12-25 01:51:16 +01:00
David Núñez
489e7e6c70
Use the 3 gas price datafeeds we have to build a median-based strategy
2020-12-25 01:51:15 +01:00
David Núñez
356cc1ad4a
Include the Zoltu gas price oracle in the datafeed fallback strategy
2020-12-25 01:51:15 +01:00
David Núñez
659c8db947
Added gas price data feed from gas-oracle.zoltu.io
2020-12-25 01:51:15 +01:00
David Núñez
a6a089f76f
Introduce a max price gas strategy wrapper that caps the price of any strategy
...
Controlled by the NUCYPHER_MAX_GAS_PRICE_GWEI envvar
2020-12-25 01:51:15 +01:00
David Núñez
0c3b9c2742
Use canonical speed names internally in gas price datafeeds
2020-12-25 01:51:15 +01:00
David Núñez
6e83b0ffe1
Prioritize Upvest gas price datafeed
2020-12-25 01:51:15 +01:00
David Núñez
a56ce5151d
Construct the datafeed gas strategy based on the speed name
2020-12-25 01:51:15 +01:00
David Núñez
71ad8c2c31
Introduce equivalence classes for gas speed names
2020-12-25 01:50:43 +01:00
K Prasch
01ffaa17c2
Merge pull request #2244 from fjarri/simplify-retrieve
...
Simplify Bob.retrieve()
2020-12-21 14:01:17 -08:00
Bogdan Opanchuk
61253968fc
Simplify the reencryption loop
2020-12-18 15:19:43 -08:00
K Prasch
62ade702c9
Merge pull request #2474 from KPrasch/hello-operator
...
Pretty worker & staker console messages
2020-12-18 10:15:01 -08:00
K Prasch
0d7af8bd60
Apply suggestions from code review
...
Co-authored-by: Derek Pierre <derek.pierre@gmail.com>
2020-12-18 09:49:52 -08:00
David Núñez
5f93a3ae59
Skip card unit tests until qrcode module is added as dependency in 2440
2020-12-17 23:30:51 +01: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 Prasch
89043b3065
Deprecates managed provider/client syncing
2020-12-14 12:01:18 -08:00
K Prasch
5a13d23592
Merge pull request #2466 from KPrasch/mime
...
Deprecation: Internal geth process mode (--geth)
2020-12-14 11:57:17 -08:00
David Núñez
a89cd39e91
Merge pull request #2240 from ronmnm/romak_pooling
...
Worklock pooling contract
2020-12-14 10:34:17 +01:00
Kieran Prasch
fae2c05509
Use constants for cli password collection confirmation
2020-12-11 12:09:04 -08:00
Kieran Prasch
38c441dff0
Improves staker and ursula literature and help texts
2020-12-11 12:07:43 -08:00
Kieran Prasch
c6b3ea31c1
Deprecates embedded geth integration tests and managed process usage.
2020-12-11 11:04:49 -08:00
Kieran Prasch
cd0f9c7b35
Deprecates embedded geth integration tests.
2020-12-11 10:25:09 -08:00
Kieran Prasch
2eefc07d31
Deprecates internal geth process mode.
2020-12-09 17:39:42 -08:00
K Prasch
8875075902
Merge pull request #2115 from KPrasch/card
...
Let me give you my card...
2020-12-09 17:26:03 -08:00
Kieran R. Prasch
735dccce1e
Card CLI acceptance testing for 'alice/bob make-card' and card directory autocreation.
2020-12-09 16:52:15 -08:00
Kieran Prasch
d21d7ee947
Additional help text and accompanying test; Relocate help test to CLI unit.
2020-12-09 14:10:03 -08:00
Kieran Prasch
b342180d89
Additional CLI acceptance tests for non-interactive use cases.
2020-12-09 13:55:45 -08:00
Kieran Prasch
e6af45eb26
CLI acceptance testing for character cards
2020-12-09 12:44:23 -08:00
Kieran R. Prasch
912e2b1c46
Revert signed treasure map changes for federated policies.
2020-12-09 00:13:38 -08:00
Kieran R. Prasch
24f6b4ce5e
Expand alice confguration options to include policy storage and stay current with signed tmaps
2020-12-09 00:11:13 -08:00
vzotova
d58ca9a748
Remove duplicate code
2020-12-09 11:04:22 +03:00
Kieran R. Prasch
c51c4a7f09
Character cards are verifiable
2020-12-08 23:55:10 -08:00
Kieran R. Prasch
1580c5f89c
Extract Identity entities
2020-12-08 23:55:09 -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
91e0accd20
Use ISO8601 for CLI expiration
2020-12-08 10:40:42 -08:00
Kieran Prasch
63d8c3555f
Improves grant CLI: all policy values cascade from flags, to defaults, and interactively. Integrates with probationary period enforcement.
2020-12-08 10:40:42 -08:00
Kieran Prasch
2cecfb3cfd
Rewords keyring decryption console messages.
2020-12-08 10:40:42 -08:00
David Núñez
b0997653ab
Fixes #1704 : CLI asks for confirmation before detaching worker
2020-12-08 10:40:42 -08:00
Kieran Prasch
66ada04432
Relax regex testing for contract versioning.
2020-12-05 08:16:27 -08:00
Kieran R. Prasch
65a41e7f33
Remove imported 'tests' reference from packaged constants.
2020-12-03 19:53:29 -08:00
Kieran Prasch
e8370513f8
Increase maximum acceptable version length in regex test for contracts.
2020-12-03 16:48:04 -08:00
Victoria
a8f0ec5bc5
Apply suggestions from code review #2439
...
Co-authored-by: Derek Pierre <derek.pierre@gmail.com>
Co-authored-by: Kieran Prasch <kieran@nucypher.com>
Co-authored-by: David Núñez <david@nucypher.com>
2020-12-03 18:39:44 +03:00
vzotova
0a518df17a
Refine upgradeability test
2020-12-03 16:48:35 +03:00
vzotova
d221051284
Small touch ups for logs and tests while compilation
2020-12-03 16:48:34 +03:00
vzotova
4ff174eed0
Generate remappings settings based on source bundle
2020-12-03 16:48:34 +03:00
vzotova
c7ec3c7ecb
Fix predefined source bundles
2020-12-03 16:48:34 +03:00
vzotova
bf247bc73f
Take allowed path from source bundle while compilation
2020-12-03 16:48:33 +03:00
vzotova
96e959f60a
Fix after rebasing
2020-12-03 16:48:33 +03:00
Kieran Prasch
a16691bd62
Return of import remappings.
2020-12-03 16:48:33 +03:00
Kieran Prasch
1fe2d91297
Jamming with Viki and Derek.
2020-12-03 16:48:32 +03:00
Kieran Prasch
37f7a20814
All I want for christmas is a working source bundle
2020-12-03 16:48:32 +03:00
Kieran Prasch
b8949a7972
Follow the yellow brick road
2020-12-03 16:48:32 +03:00
Kieran Prasch
6f04cef63d
Rescues a test utility from fixtures and modifies estimate gas metrics to use standard compiler output.
2020-12-03 16:48:31 +03:00
Kieran Prasch
673223cf43
Ignore solc compile and economics from autodoc.
2020-12-03 16:48:31 +03:00
Kieran Prasch
706db66ee5
Compiler test module uses new entry points.
2020-12-03 16:48:30 +03:00
Kieran R. Prasch
e8f42360ec
Moves nonce testing concept to PR #2074
2020-12-03 16:48:30 +03:00
Kieran Prasch
d40c422ceb
Use absoute import paths for nucypher
2020-12-03 16:48:30 +03:00
Kieran Prasch
70cf785c7f
Arrange tests to respect upstream changes; Conventionalize testerchain class attrs; Accept nonce atability testing with delay.
2020-12-03 16:48:30 +03:00
Kieran R. Prasch
faabdb5ac2
Drafts simple nonce stability testing helper contract.
2020-12-03 16:48:29 +03:00
Kieran R. Prasch
7b0896f121
hypothesis validation for devdoc regex. Finish test split.
2020-12-03 16:48:29 +03:00
Kieran R. Prasch
d3e7d70faf
Seperates multiversion compile test into another module.
2020-12-03 16:48:29 +03:00
Kieran R. Prasch
ab71b85be2
Initial discovery of nonce instability.
2020-12-03 16:48:28 +03:00
Kieran R. Prasch
775fe32828
Handle multiversion compiler test source directories and remove old compiler usage from chain interfaces.
2020-12-03 16:48:28 +03:00
Kieran R. Prasch
11a807c096
Simplify solidity compiler module with a more stateless and functional approach; Use the standard compiler method.
2020-12-03 16:48:28 +03:00
David Núñez
066255d22a
Merge pull request #2369 from KPrasch/router
...
Staking interface router ownership transfer
2020-12-03 13:33:32 +01:00
Kieran Prasch
abc24eba8f
Assertion for staking interface router ownership transfer via CLI.
2020-12-03 13:15:32 +01:00
Kieran Prasch
97aff893fb
Hotfix for staking interface router ownership transfer
2020-12-03 13:15:32 +01:00
K Prasch
5873dc4fb1
Merge pull request #2441 from cygnusv/floater
...
Allow arbitrary decimal precision as input to nucypher CLI
2020-12-01 09:58:35 -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
Kieran R. Prasch
3e648673f6
Better support for programatic usage of help paths.
2020-11-23 11:58:05 -08:00
Kieran R. Prasch
9299ab186d
newsfragment for PR #2446
2020-11-18 20:07:19 -08:00
Kieran R. Prasch
1c96c33442
test --config help; Keep help tests in one test module
2020-11-18 19:50:13 -08:00
David Núñez
d0334e029c
Fix bug in test for local keystore caused by an Ursula too eager to work
2020-11-06 17:12:54 +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
2acb8f642e
Add references to issue with initial commitment on make_decentralized_ursulas utility. See 2424
2020-11-06 12:19:34 +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
David Núñez
7f45dedecf
Merge pull request #2412 from cygnusv/llaves
...
Use NuCypher Logger instead of Twisted Logger. Closes #2404
2020-11-06 12:17:14 +01:00
jMyles
ef29bec8e7
Neatening formatting, also pursuant to RFC.
2020-11-04 14:04:32 -07:00
jMyles
158e0ee62b
Ursula needs an explicit domain in this test in order for Bob to be able to retrieve.
2020-11-03 19:11:37 -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
David Núñez
0b2dd001ba
Correct problems when setting the min fee rate. Fix #2390
...
Also, simplifies usage by expressing rates in GWEI
2020-11-03 12:10:59 +01:00
David Núñez
03b7545a92
Additional test cases for loggers
2020-11-03 12:03:09 +01:00
David Núñez
67596a8aec
Change NuCypherLogger behavior to always escape curly braces.
...
The rationale is that it's unclear how to justify the previous behavior with some edge cases like `{{}`, which was `{}`.
Also unit tests are improved even further.
2020-10-30 21:53:14 +01:00
David Núñez
1d750af1f9
Even more detailed tests for NuCypher logger: now with JSON observer
2020-10-30 20:55:56 +01:00
jMyles
38958f69ea
Adding assertions to make sure that the error handler is working and emitting logs.
2020-10-28 08:40:33 -06:00
jMyles
4c17201be2
Moving tests over to unit package.
2020-10-28 07:21:39 -06:00
damon
168b897181
adds test for abort on error
2020-10-28 05:16:18 -07:00
damon
ef53754d39
remove unused code/imports
2020-10-28 05:08:16 -07:00
damon
de47e2d497
working test of restarting worker
2020-10-28 05:03:28 -07:00
damon
7cde519134
restart worker task on fail
2020-10-28 04:08:05 -07:00
K Prasch
78339a70e0
Merge pull request #2383 from KPrasch/grantee
...
Update grant availability script for mainnet usage
2020-10-23 09:09:55 -07:00
Kieran Prasch
5b7668127e
Respond to RFCs in PR #2383
2020-10-22 11:09:21 -07:00
vzotova
d1ede31ebc
CLI method to remove unused sub-stake
2020-10-20 20:33:39 +03:00
vzotova
b443ab7007
Method to remove unused sub-stakes for agent and actor
2020-10-20 20:33:38 +03:00
vzotova
30a06fe37d
StakingEscrow: method to remove unused sub-stakes
2020-10-20 20:33:38 +03:00
Kieran Prasch
52ad36aea3
Use an instance method for replacement commitment transaction fire for easier spy and mock.
2020-10-19 16:27:35 -07:00
Kieran Prasch
ba8cae96eb
Respond to RFCs in PR #2389
2020-10-19 15:56:14 -07:00
Kieran Prasch
250786d469
Expands worker auto commitment testing to cover auto replacement transactions.
2020-10-19 15:46:37 -07:00
David Núñez
7e644b0770
Be sure we're using the MockBlockchain in integration tests
2020-10-19 21:57:45 +02:00
Kieran Prasch
9c5ab2b601
Passing auto-commitment tests: Expand worker auto-commitment to include pending traction management
2020-10-19 12:52:26 -07: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
David Núñez
306333c3e8
Include commitment transaction tracking in worker async task.
...
Co-authored-by: Kieran Prasch <kieranprasch@gmail.com>
2020-10-19 18:59:28 +02:00
David Núñez
32a8d92320
Enriching web3 gas strategies: better error messages; expected confirmation times
2020-10-19 18:59:28 +02:00
David Núñez
9b87786510
Create a gas strategies module in nucypher.utilities
2020-10-19 18:52:22 +02:00
Kieran R. Prasch
5627bc75d1
Update grant availability script for mainnet usage
2020-10-18 01:33:25 -07:00
K Prasch
05bdfde341
Merge pull request #2366 from fjarri/web3-fix
...
Since web3=5.12.2 its methods need positional arguments
2020-10-18 00:52:04 -07:00
K Prasch
c2c9c0c1a2
Merge pull request #2377 from derekpierre/stake-limit
...
Actually allow minimum stake of 15,000 NU
2020-10-18 00:49:00 -07:00
Bogdan Opanchuk
1557617afd
Since web3=5.12.2 some of `eth` methods require positional arguments
2020-10-18 00:16:05 -07:00
derekpierre
4ed221e880
Add unit test for allowing minimum stake when equals available balance.
2020-10-16 16:37:29 -04:00
derekpierre
e27f7ef482
Reduce the frequency of the prometheus metrics collection.
2020-10-16 13:06:28 -04:00
Kieran Prasch
4d86930ffd
Include missing lisence file to avoid precommit hook failures.
2020-10-14 15:33:07 -07:00
jMyles
35988e380f
Checking datastore for fraudulent map.
2020-10-14 11:16:09 -07:00
jMyles
3fce2c2c0b
Unskipping and fixing remaining tests.
2020-10-14 11:16:09 -07:00
jMyles
2c38689984
We were no longer using the ursula passed here; we just use the one on the Arrangement object.
2020-10-14 11:16:09 -07:00
Kieran Prasch
6b98fdac81
Sprinkles a little randomness on work tracker intervals
2020-10-14 10:23:10 -07:00
David Núñez
584865d407
Skip failing availability test
2020-10-13 23:45:54 +02:00
David Núñez
cdb20c6e3f
Move two detached test files to tests/acceptance/blockchain/interfaces
2020-10-13 23:40:27 +02:00
K Prasch
1ae88977aa
Merge pull request #2204 from vzotova/optimize-it
...
One more time: `commitToNextPeriod` gas optimizations
2020-10-13 14:04:09 -07: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
vzotova
e4aa44a10b
Apply suggestions from code review #2204
...
Co-authored-by: David Núñez <david@nucypher.com>
2020-10-13 16:05:35 +03:00
tuxxy
35b10ec62d
Handle 409 response in receive_treasure_map
2020-10-13 10:01:37 +02: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
jMyles
94b489aa77
This test makes more sense if it just shows that no more than one map was saved, because the 'sucker' might already have had the 'legit' map.
2020-10-13 10:01:37 +02:00
jMyles
41b39bfa7b
Amonia performs a pay-in-advance variant of The Wicker Man attack.
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
vzotova
c2f735ed73
StakingEscrow: allow to claim tokens from worklock before initialization
2020-10-13 00:23:37 +03:00
vzotova
76fbdce7f8
Combine two methods called from StakingEscrow -> PolicyManager into one
2020-10-12 14:31:26 +03: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
derekpierre
b4021faffa
Ensure that testnet flag is set correctly for deployer.
2020-10-07 14:42:30 -04:00
K Prasch
4e2391b14b
Merge pull request #2319 from KPrasch/upgrader
...
Bug fixes for upgrade CLI
2020-10-06 08:30:43 -07:00
Kieran Prasch
ac34a79a7f
Accepts --network as a required flags for nucypher-deploy commands.
2020-10-05 15:47:27 -07:00
David Núñez
cd47a3b566
Relocate test/utils/solidity.py to nucypher/utilities/ethereum.py
2020-10-05 12:12:17 +02:00
derekpierre
c979083a81
Handle the inlcusive block range when filtering events.
2020-10-02 09:29:42 -04:00
Kieran Prasch
d2c4d951ac
Fixes off-by-one counter, simplify envvar names and usage.
2020-10-01 09:31:43 -07:00
K Prasch
88d3a309b9
Apply suggestions from code review
...
Co-authored-by: Arjun Hassard <arjunhassard@gmail.com>
2020-10-01 09:18:16 -07:00
K Prasch
48859ed240
Update tests/metrics/grant_availability.py
...
Co-authored-by: Derek Pierre <derek.pierre@gmail.com>
2020-10-01 09:18:16 -07:00
Kieran R. Prasch
f36aa60216
Introduces grant availability metrics script.
2020-10-01 09:18:16 -07:00
Kieran Prasch
c7f39ff484
A home for nucypher deploy CLI tests...
2020-09-30 21:18:43 -07:00
Kieran Prasch
81e401703c
Respond to RFCs for PR #2315 ; Combating CI timeouts for deployer CLI tests.
2020-09-30 08:12:26 -07:00
Kieran Prasch
b3462d2902
Show original and target contract version numbers during interactive upgrade
2020-09-29 21:45:45 -07:00
Kieran Prasch
1e63ce6b2c
Test touch ups
2020-09-29 20:40:15 -07:00
Kieran Prasch
e36d4da5d4
Deployment CLI plumbing adjustments: allow for domain-specefic pre-flight checks on upgrade.
2020-09-29 20:25:21 -07:00
Kieran Prasch
997a481738
Retire nucypher deploy contracts automated series test.
2020-09-29 20:25:21 -07:00
Kieran Prasch
b1da0270c9
--confirmations for manual proxy retargeting
2020-09-29 20:25:21 -07:00
Kieran Prasch
79c360a5b9
Eager pre-flight checks for deployer upgrade CLI.
2020-09-29 20:25:21 -07:00
Kieran Prasch
ea3584656c
Implements --confirmations for deployer transactions, including defaults.
2020-09-29 20:25:21 -07:00
K Prasch
7edcdc4f9e
Merge pull request #2287 from derekpierre/try-retry
...
Add default retry functionality to EthereumClients
2020-09-29 19:11:14 -07:00
K Prasch
0a12d5c4bf
Merge pull request #2307 from cygnusv/champis
...
Blue Oyster Mushrooms aftertaste
2020-09-29 17:03:55 -07:00
jMyles
28c8f87684
Test showing that #1735 was apparently untrue. Fixes #1735 .
2020-09-29 10:23:39 +02:00
vzotova
aca9c65b68
StakingEscrow: check for snapshots in batchDeposit, allow setWindDown before deposit
2020-09-28 14:05:19 +03:00