jMyles
05b589121b
It's slow, but it's a start. This test passes in about 9 seconds right now; subsequent commits will tune it.
2020-08-10 12:45:22 -07:00
jMyles
b42f6da1d1
Getting a little crazy - first swing at concurrent Alice-=>Ursula connection.
2020-08-10 12:45:22 -07:00
jMyles
aabc490970
Adding a 'last chance' escape hatch for blocking node learning, so that, if the timeout is reached, we check one last time to see if we've learned about the necessary number of nodes.
2020-08-10 12:45:22 -07:00
jMyles
60b9ad9c2b
Test using the sluggish middleware; this is the one that will require the concurrency from the last commit.
2020-08-10 12:45:21 -07:00
jMyles
1923568166
What happens if we add a little slowness like network latency? (And here's where we'll have to add concurrency).
2020-08-10 12:42:17 -07:00
jMyles
28ac095d15
Further down the optimization adventuref for NodeSprout.
2020-08-10 12:42:17 -07:00
jMyles
fc3e105e54
Decentralized Alice controller test needs, you guessed it, DecentralizedTreasureMap.
2020-08-10 12:42:17 -07:00
jMyles
ec01301cc1
Updated kwarg name.
2020-08-10 12:42:17 -07:00
jMyles
8e4b60e4f1
Separating publishing kwargs: one for blockchain, one for TreasureMap (because you might only want to do the former and not the latter in the decentralized scenario, or not do either one in a federated scenario.
2020-08-10 12:42:17 -07:00
jMyles
8f248100ff
Amonia needs to remember not to publish TreasureMaps, lest her gig being discovered too soon.
2020-08-10 12:42:17 -07:00
jMyles
1a20bbb151
Including a fake signature for the test.
2020-08-10 12:42:17 -07:00
jMyles
bdfa058768
If we try to cast a DecentralizedTreasureMap to bytes without the blockchain signature, we end up with very odd behavior.
2020-08-10 12:42:17 -07:00
jMyles
fcfea5e8af
Bob figures out which type of map he needs.
2020-08-10 12:42:17 -07:00
jMyles
dcce048726
Let PolicyCredential make the decentralized variant of TreasureMap when necessary.
2020-08-10 12:42:17 -07:00
jMyles
ef01dd0ead
We no longer assume that any representation of a decentralized Character has a checksum address. Fixes #1967
2020-08-10 12:42:17 -07:00
jMyles
252a063e63
Docstring update for Character.
2020-08-10 12:42:17 -07:00
jMyles
7a599d2c5c
Evolving the test to show how Bob can find a map much more quickly.
2020-08-10 12:42:17 -07:00
jMyles
73e52ee685
Carving out checksum_address check. A first swing at #1930 .
2020-08-10 12:42:17 -07:00
jMyles
6d60c66ec2
Alice now proposes Arrangements; Ursula considers them. Fixes #1924 .
2020-08-10 12:42:17 -07:00
jMyles
106b60f3f7
Mocking one layer out (setting policy) for these tests.
2020-08-10 12:42:15 -07:00
jMyles
e0491fa743
Now Alice only PUTs the maps on the nodes where Bob will think to look. Fixes #342 .
2020-08-10 12:39:59 -07:00
jMyles
bcd0d77bdf
Bob now waits to learn about new nodes if he can't immediately find the TreasureMap.
2020-08-10 12:39:59 -07:00
jMyles
dd0cc66adf
Facility for Bob (or an acquaintance) to find the nodes which are supposed to have his TreasureMaps.
2020-08-10 12:39:59 -07:00
jMyles
bc99fff628
Major surgery on _set_checksum_address.
2020-08-10 12:39:59 -07:00
jMyles
3e9cf80386
Splitting test logic to show when the problem is with Bob or with Alice.
2020-08-10 12:39:59 -07:00
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