Commit Graph

2682 Commits (7b337c5bee79280f6f543a765a2234ee881fcb1e)

Author SHA1 Message Date
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