Kieran R. Prasch
65e88975ed
hardcode felix eth transfer transaction gas limit
2020-08-18 09:27:29 -07:00
Kieran R. Prasch
307d9ba073
Generalize transaction build logic for Felix.
2020-08-18 09:27:29 -07:00
Kieran R. Prasch
f46850643b
Felix uses sign-and-broadcast API.
2020-08-18 09:27:29 -07:00
Kieran R. Prasch
8a34a781b3
Signer support for Felix.
2020-08-18 09:27:29 -07:00
David Núñez
b1b3c933bf
Merge pull request #2181 from fjarri/fixed-rng-in-sampling-test
...
Fix RNG seed in the sampling test to avoid low-probability random fails
2020-08-18 12:21:03 +02:00
Bogdan Opanchuk
1a08b90294
Fix RNG seed in the sampling test to avoid low-probability random fails
2020-08-17 17:22:37 -07:00
K Prasch
226e49a217
Merge pull request #2164 from KPrasch/pizza-factory
...
Improves workorder serialization (Follow up for datastore)
2020-08-15 16:48:51 -07:00
damon
833530f581
import PolicyArrangement for metrics collection
2020-08-14 13:20:30 -07:00
Kieran Prasch
c9b4f0de5d
Use exception chaining duing transaction failed handling
2020-08-14 12:18:02 -07:00
Kieran Prasch
e1d53f1230
Improve transaction failed console error reporting.
2020-08-14 12:15:55 -07:00
David Núñez
622aff5ced
Some improved log messages when retrieving
2020-08-14 12:15:16 -07:00
David Núñez
42ae161122
WorkOrder.tasks is a dict keyed by capsules. This was working by coincidence
2020-08-14 12:15:16 -07:00
David Núñez
0d9f95ee85
Unit tests for WorkOrder
2020-08-14 12:15:16 -07:00
David Núñez
52e21bbb65
Fix mock_ursula_reencrypts so it produces expected output types
2020-08-14 12:15:16 -07:00
David Núñez
57d976c4da
Get rid of unnecessary digest of capsules in WorkOrder generation
2020-08-14 12:15:16 -07:00
David Núñez
5f4cfe9f0d
Fix wrong logic for error messages in Teacher.verify_node(). Code cleaning in lawful.py
2020-08-14 12:15:16 -07:00
David Núñez
13c636f26a
Improve input validation of PRETask.get_specification() and add test
2020-08-14 12:15:16 -07:00
David Núñez
74757a9ab9
Fixed size for decentralized identity evidence (it's 65, btw)
2020-08-14 12:15:16 -07:00
David Núñez
6dd02d270b
Minor face-lifting for WorkOrder
2020-08-14 12:15:16 -07:00
David Núñez
52dec3203c
Continue formalization of PRETask splitters
2020-08-14 12:15:16 -07:00
David Núñez
ef692f3474
Basic unit tests for PRETask
2020-08-14 12:15:16 -07:00
David Núñez
4797476ad7
When serializing CFrags in PRETask, use a VariableLengthBytestring, as it may contain arbitrary metadata
2020-08-14 12:15:16 -07:00
David Núñez
6290814181
Fix wrong kwarg name in PRETask
2020-08-14 12:15:16 -07:00
damon
83f44fda0a
rework capsule/signature serialization to avoid using msgpack
2020-08-14 12:15:16 -07:00
Kieran Prasch
1b93ca47f2
Add Snetry SDK to ursula's pip extra.
2020-08-14 12:15:16 -07:00
K Prasch
697a6d3d02
Merge pull request #2056 from fjarri/sampling
...
Simplify staker sampling
2020-08-13 13:51:48 -07:00
Bogdan Opanchuk
449139e0a1
Fix a logical mistake in sample()
2020-08-12 15:40:17 -07:00
Victoria
ae371611ed
Merge pull request #2158 from vzotova/even-more-stakes
...
`create`/`increase`: flag to use unlocked tokens, `merge` command in `stake`
2020-08-12 23:05:56 +03:00
Victoria
21cf902764
Apply suggestions from code review #2158
...
Co-authored-by: Derek Pierre <derek.pierre@gmail.com>
Co-authored-by: K Prasch <kieranprasch@gmail.com>
Co-authored-by: David Núñez <david@nucypher.com>
2020-08-12 22:51:30 +03:00
Bogdan Opanchuk
32371761e4
Implement RFCs, part 3
2020-08-11 22:27:13 -07:00
vzotova
a74bb794d9
Updates docs with `merge` command
2020-08-10 23:22:13 +03:00
vzotova
ada6824739
Command to merge stakes in agent, actor and CLI
2020-08-10 23:22:13 +03:00
vzotova
0d39b8a7b0
Flag to create and increase sub-stakes without deposit (using unlocked tokens)
2020-08-10 23:21:19 +03:00
Bogdan Opanchuk
f8c562ac57
Implement RFCs, part 2
2020-08-10 12:36:28 -07:00
Bogdan Opanchuk
c76b8f59b5
Implement RFCs
2020-08-10 12:36:28 -07:00
Bogdan Opanchuk
9ca6c6d8fa
Expose staker sampling as an iterator (ish)
2020-08-10 12:36:26 -07:00
Bogdan Opanchuk
31715e55e4
Simplify staker sampling and add unit tests for proper sampling distribution
2020-08-10 12:33:45 -07:00
K Prasch
76eea579a3
Merge pull request #2099 from tuxxy/datastore-more-like-history-store
...
Datastore Roundup
2020-08-10 09:38:24 -07:00
tuxxy
d033c0b318
Respond to review changes
2020-08-10 15:38:59 +02:00
tuxxy
fe04ef26ba
Fix prometheus collector
2020-08-10 15:38:59 +02:00
tuxxy
c6d229c2bf
Fix typo in comment (thanks @fjarri)
2020-08-10 15:38:59 +02:00
tuxxy
530dc3439a
Respond to change requests
2020-08-10 15:38:59 +02:00
tuxxy
a470e9b213
Fix replicated codeblock from rebase (thanks @derekpierre)
2020-08-10 15:38:59 +02:00
tuxxy
1b1c2c4c28
Add comments about matching specific keys to partial keys
2020-08-10 15:38:59 +02:00
tuxxy
71f8b914e0
Instead of mocking a LMDB env, we just manage them appropriately
2020-08-10 15:38:59 +02:00
tuxxy
f5a7577290
Fix tests with new datastore changes
...
Use a unique temp directory for each blockchain_ursula and fix the flunky test query
Fix test_decentralized_grant test
Catch RecordNotFound errors in test_freerider_attacks
Provide a db_filepath for the test_collect_rewards_integration Ursula
Add unique temp directory for Ursula in test_collect_rewards_integration
2020-08-10 15:38:58 +02:00
tuxxy
cced32aa71
Store Workorders under a random ID, and catch DatastoreTransactionError in revoke
...
Fix typo in __prune_arrangements and catch RecordNotFound
Fix typo in docstring for build_docs
Remove reference to old datastore in test_freerider_attacks
2020-08-10 15:38:13 +02:00
tuxxy
b1817cc9f2
Remove Ursula.work_orders and replace its use with queries to the datastore
2020-08-10 15:38:13 +02:00
tuxxy
52038e36dc
Create a MockLMDBEnv w/ fixture and fix up some tests
...
Patch the PolicyArrangement model to fix discovery phase tests
2020-08-10 15:38:12 +02:00
tuxxy
846625d917
Replace as much old datastore logic as possible
2020-08-10 15:37:30 +02:00