Commit Graph

2708 Commits (04239ba53211e7cb025c72a16fb2a14b2995efbe)

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