jMyles
5e494a9101
Vlad's APIs are consistent with the real deal again.
2020-08-10 12:39:59 -07:00
jMyles
383492ee3e
Since we set _checksum_address in Worker, Vladimir needs to compose his fradulent address after the fact.
2020-08-10 12:39:59 -07:00
jMyles
cdc94cda0d
When Bob joins a policy, he needs to deserialize the proper map class.
2020-08-10 12:39:59 -07:00
jMyles
45b9062257
Test showing that Vladimir's efforts at posting a nonsense TreasureMap will fail.
2020-08-10 12:39:59 -07:00
jMyles
5b21e9fd5b
Separate responses for different bad TreasureMap scenarios.
2020-08-10 12:39:59 -07:00
jMyles
a8f8e61fb9
Vladimir tries to publish a TreasureMap with his own content.
2020-08-10 12:39:59 -07:00
jMyles
f1984d446f
Reactivating Vladimir.
2020-08-10 12:39:59 -07:00
jMyles
0abe1eaa59
Acquiring StakeList only if starting work now.
2020-08-10 12:39:58 -07:00
jMyles
6e163a1ba0
Different map classes for different policy modes.
2020-08-10 12:39:58 -07:00
jMyles
f4fc313a45
Add blockchain signature verification call in do_store logic.
2020-08-10 12:39:58 -07:00
jMyles
358c219b3b
Begining to test to show that blockchain signature prevents duplication.
2020-08-10 12:39:58 -07:00
jMyles
8cd2b9eed3
Sign TreasureMap with wallet keypair... now what?
2020-08-10 12:39:58 -07:00
jMyles
e1cded468f
Get Alice's checksum address for a given Policy.
2020-08-10 12:39:58 -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
tuxxy
17920cd4ca
Add 'DatastoreRecord.delete' method w/ tests
...
Remove the unused '_fields' instance var on DatastoreRecord
2020-08-10 15:37:30 +02:00
tuxxy
662fddbeb7
Add basic skeleton for 'Datastore.query_by' method with tests
...
Ensure that queries only iterate over keys and not values
Query will now only process keys for unique records
2020-08-10 15:37:30 +02:00
tuxxy
cc0ca2ef91
Add a basic first implementation of the datastore with tests
...
Add tests for the datastore models, and change 'NotFound' to 'RecordNotFound'
2020-08-10 15:37:30 +02:00
tuxxy
184b3bf563
Create a base 'DatastoreRecord' class and models with tests
...
Move the base models to base.py and add more datastore tests
Change key structure to 'RecordType:RecordField:RecordID'
Eliminate the db module
2020-08-10 15:37:30 +02:00
tuxxy
4026de543e
Add lmdb and msgpack depends
...
Place ThreadedSession in 'datastore.deprecated'
2020-08-10 15:37:29 +02:00
K Prasch
7545051ad9
Merge pull request #2169 from cygnusv/curly
...
New Logger with automatic escaping of curly braces
2020-08-09 08:26:07 -07:00
David Núñez
23a925759b
Leap of faith
2020-08-08 04:11:32 +02:00
David Núñez
7a043cb80a
Unit tests for new Logger
2020-08-08 04:11:32 +02:00
David Núñez
32e0b12086
Get rid of circular dependency by removing unused constants and import
2020-08-08 04:11:32 +02:00
David Núñez
7ca8ef4661
Fix wrong import for Logger class in nucypher.cli.options
2020-08-08 04:09:51 +02:00
David Núñez
6d42de0f03
Extract default log filenames as a configuration constants
...
sq put dfe
2020-08-08 04:09:51 +02:00
David Núñez
e438f2f944
Use our new Logger replacement everywhere
2020-08-08 03:14:45 +02:00
David Núñez
e9f3b25598
Replacement for Twisted's Logger without the infamous curly braces problem
2020-08-08 03:14:45 +02:00
K Prasch
85b645cf1e
Merge pull request #2166 from vzotova/solidity-0.7
...
Solidity -> 0.7.0
2020-08-06 14:53:43 -07:00
vzotova
1819d5a552
Solidity -> 0.7.0
2020-08-06 13:39:17 +03:00
David Núñez
74f964fd3c
Merge pull request #2162 from cygnusv/main
...
Restore default return values in mock agents
2020-08-04 19:41:17 +02:00
David Núñez
3595f3dae6
Make restoration of default values conditional
2020-08-04 19:01:54 +02:00
David Núñez
460ce4cb08
Restore default return values in mock agents
...
Mock.reset_mock() doesn't do that by default so return values remained between test modules
2020-08-04 18:37:30 +02:00
K Prasch
5ed97e6d44
Merge pull request #2142 from vzotova/more-stakes
...
Command to increase stake and small refactoring for `Stake` class
2020-07-30 14:59:33 -07:00
Victoria
43718a49d5
Apply suggestions from code review #2142
...
Co-authored-by: Derek Pierre <derek.pierre@gmail.com>
Co-authored-by: David Núñez <david@nucypher.com>
2020-07-30 23:50:14 +03:00
vzotova
4670ed0e82
Adds `increase` command in docs
2020-07-30 22:45:58 +03:00
vzotova
f2acc2adda
New command in CLI to increase value of specified sub-stake
2020-07-30 22:45:58 +03:00
vzotova
883f5350e4
Makes `Stake` validation stateless, new methods in `StakingEscrowAgent`, methods for increasing stake in `Staker`
2020-07-30 22:45:58 +03:00
vzotova
53674d7828
Changes `Stake` class to read-only representation of sub-stake
2020-07-30 22:45:57 +03:00