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
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
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
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
jMyles
28c8f87684
Test showing that #1735 was apparently untrue. Fixes #1735 .
2020-09-29 10:23:39 +02:00
David Núñez
df06e3e1ee
Pending change to single-domain from the Trezor PR
2020-09-25 11:53:08 +02:00
David Núñez
f96e82d95e
Utility test to obtain versioned Ursulas' metadata hexstrings
2020-09-24 20:28:31 +02:00
David Núñez
3d6502468d
Comment flaky assertion on test_discovery_phases. See #2016
2020-09-24 20:28:31 +02:00
David Núñez
279f07c9e4
Handle invalid metadata bytes in node storage. Unit tests.
2020-09-24 20:28:31 +02:00
David Núñez
d4ac7ce351
Failing test showing that currently we learn about nodes from a different domain
...
Demonstrates #1843
2020-09-24 20:28:31 +02:00
David Núñez
f42de3ae11
Some janitorial stuff
2020-09-24 20:28:31 +02:00
David Núñez
064972e800
Some unit tests reorganization
2020-09-24 20:27:13 +02:00
David Núñez
14c6307645
Include test for hardcoded version 2 node metadata bytestrings
2020-09-24 20:27:13 +02:00
David Núñez
148ba39698
Adapt Learning Loop version 1 test due to new incompatibility with current version.
2020-09-24 20:27:13 +02:00
David Núñez
84a53a790f
Allow to define a sort of "compatibility range" for LL versions: anything outside it's either from the future or the past
2020-09-24 20:27:13 +02:00
jMyles
8d18272d77
Some syntactic cleanup suggested by @michwill in comments on #1868 .
2020-09-24 20:27:13 +02:00
David Núñez
4cf7dcadc3
We're done with multiple domains, for the moment.
...
Closes #2144 . Closes #1580 .
2020-09-24 20:27:13 +02:00
David Núñez
7e21280a12
Include test for hardcoded version 1 node bytestrings. See #1869
2020-09-24 20:27:13 +02:00
David Núñez
2d2a7a7cde
Janitorial stuff
2020-09-24 20:27:13 +02:00
K Prasch
1f5407e7d5
Merge pull request #2220 from KPrasch/signer
...
Trezorlib Transaction Signing
2020-09-24 08:06:54 -07:00
Kieran Prasch
c89fa91eef
Adjust integration test for trezor signing testnet flag.
2020-09-23 15:37:25 -07:00
Kieran Prasch
f526b72790
SLIP44 support and EIP-155 compliance for trezor testnet derivation paths
2020-09-22 21:19:24 -07:00
Bogdan Opanchuk
7be50030aa
Remove the reduced LMDB size fixture
...
It is not the cause of the bug, and it doesn't really test anything.
2020-09-22 16:55:37 -07:00
Kieran R. Prasch
8f6def2851
Respond to RFCs - Returns filesystem integration tests to thier home.
2020-09-17 13:26:38 -07:00
Kieran Prasch
6a0e1eeb17
Accomodate basic trezor signer URI scheme; Fixturize mocked trezorlib components
2020-09-17 13:26:38 -07:00
Kieran Prasch
9677b25fb3
Consolodate web3 signer unit tests; Improvements to trezor method decoration.
2020-09-17 13:26:38 -07:00
Kieran Prasch
148528b24c
Signers is now a package
2020-09-17 13:26:33 -07:00
tuxxy
3ac32cd7ea
Move the thread lock to a class variable
2020-09-15 12:56:33 +02:00
tuxxy
8cd9bccfef
Respond to requests
2020-09-11 16:29:22 +02:00
tuxxy
423ed05a3a
Add thread lock to MockLMDB
2020-09-11 14:42:19 +02:00
Kieran R. Prasch
bee1f7f5f8
Adds missing newline to mainnet registry
2020-09-08 13:09:27 -07:00
jMyles
64d76046ca
Unused blocks, formatting, spelling - responses to the latest batch of RFCs.
2020-09-06 22:37:37 -07:00
jMyles
8dead4d333
In the fixture we trust.
2020-09-05 18:13:01 -07:00
jMyles
ce0684c037
Admist reports from others on the team of having to code these values up... coding these values up.
2020-08-31 14:39:54 -07:00
jMyles
3f07bb8b33
Use default value (5 percent) instead of overriding.
2020-08-31 14:28:47 -07:00
jMyles
670ac3b122
Better to just pass a tuple of nodes here; we don't need the living dict.
2020-08-31 13:48:48 -07:00
jMyles
4269150974
Using signal flag to check queue. Fixes #2190 .
2020-08-31 12:41:44 -07:00
jMyles
d1b2257797
This test actually performs better with random values - when every node takes the same amount of time to return, there's a much more likely chance of all of them returning at the same moment, and thus overshooting the mutex requirement for unblocking.
2020-08-31 10:10:43 -07:00
jMyles
de266be0cf
Resolving import conflicts with main.
2020-08-31 01:07:27 -07:00
David Núñez
7d5646e2f5
Fixing wrong provider URI in an ursula test
2020-08-28 18:00:19 +02:00
David Núñez
920ae58bc3
Setting a free gas strategy in tests that create a new blockchain interface
2020-08-28 18:00:19 +02:00
jMyles
24bc71be6e
Give Bob a chance to hit seednodes before bailing.
2020-08-27 13:16:36 -07:00
jMyles
e63d250597
We'll bring this assertion back later, with more precision.
2020-08-26 01:02:13 -07:00
jMyles
255a4cb67c
Reworking test to assure that assertions are evaluated. While we're at it, also use verified open ports for the other tests.
2020-08-25 22:49:47 -07:00
Kieran R. Prasch
19f438c277
Move the slowest unit test to integration tests since it hits the disk.
2020-08-25 07:09:59 -07:00
jMyles
6498992f61
Deduplicating test; moving json validation utils to utils.
2020-08-24 09:42:15 -07:00
jMyles
0de8e25132
Merge commit from main (and merge candidate into main.)
2020-08-21 20:32:45 -07:00
jMyles
c75519637a
More descriptive name to suit @derekpierre's fancies.
2020-08-20 17:50:53 -07:00
vzotova
bfa2da251f
Apply suggestions from code review #2170
...
Co-authored-by: K Prasch <kieranprasch@gmail.com>
Co-authored-by: David Núñez <david@nucypher.com>
2020-08-20 00:49:20 +03:00
vzotova
434b7c677b
`nucypher stake list`: show sub-stake status, rename `--all` option to `--show-all`
2020-08-20 00:46:04 +03:00
vzotova
bb6cee4613
Removed NO_WORKER_BONDED constant from `Staker.worker_address`, used NULL_ADDRESS instead
2020-08-20 00:46:03 +03:00
Bogdan Opanchuk
6ad9a65d1a
Fix pytest discovery error - make the names of test files different
2020-08-18 22:28:56 -07:00
jMyles
d7b8254b36
Since this doens't block, it's possible that Bob hasn't actually connected to *any* nodes yet.
2020-08-18 12:05:58 -07:00
jMyles
34a5ad910d
Removing stale debugging tooling.
2020-08-18 12:05:55 -07:00
jMyles
0336e4d6e9
Mege commit uniting @fjarri sampling work and the rest of the async branch of TI. Done in order to provide a surface for blocking when sampling. See https://ptb.discordapp.com/channels/411401661714792449/411401661714792451/744248303528575037 .
2020-08-18 05:14:05 -07:00
jMyles
c74bdcb6f8
Prints -=> logs.
2020-08-18 05:10:44 -07:00
jMyles
2a76f5fe2a
Making sure tests block in the right places.
2020-08-18 05:10:44 -07:00
jMyles
8077685df6
Use the completion queue instead of yielding.
2020-08-18 05:10:44 -07:00
jMyles
b18dfd9a69
Evolving test.
2020-08-18 05:10:44 -07:00
Kieran Prasch
e594ff5e8c
Test fixes: another manual tpower activation and attempt to fix tmap reference.
2020-08-18 05:10:43 -07:00
Kieran Prasch
73d1022c94
bifurcate 'network actors' tests.
2020-08-18 05:10:43 -07: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
jMyles
65b3666d67
Couple of fixes on top to get things to run - most notably, 10M lmdb map size (obviously this needs a legit patch or whatever).
2020-08-10 16:38:40 -07: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
jMyles
a4679e6b86
Reversion of 296617131
, yanking autouse from fixtures. See https://ptb.discordapp.com/channels/411401661714792449/411401661714792451/739866441154822234 .
2020-08-10 13:02:11 -07:00
jMyles
a6a873482f
Merging #2128 , #2137 , #2155 into a rebase over main (instead of three separate github-generated merge commits, which caused a conflict).
2020-08-10 13:01:47 -07:00
jMyles
fdb726095a
Some more debug-level logs instead of prints.
2020-08-10 12:55:29 -07:00
jMyles
cf196f2c72
Much more leeway in the number of nodes that have the map when we unblock (as this varies widely just on my laptop, depending on what else I'm running in the background.
2020-08-10 12:55:29 -07:00
jMyles
663b7de3c8
Lots of Character stoppages; these continually running loops went unnoticed before.
2020-08-10 12:55:27 -07:00
jMyles
e0918764d8
Big fixup for the remaining errors blocking integration.learning.
2020-08-10 12:54:35 -07:00
jMyles
a448903bbb
This makes more sense, because you might block the main thread in a test, and then the Ursula can't process the request.
2020-08-10 12:54:05 -07:00
jMyles
3fa81deb00
Loading seednodes here is enough.
2020-08-10 12:54:05 -07:00
jMyles
eaf7fbca37
Some debugging breadcrumbs for Ursula.
2020-08-10 12:54:04 -07:00
jMyles
8cd182e26d
Stopping Bob and Ursula at appropriate times.
2020-08-10 12:53:33 -07:00
jMyles
78eb904c10
Flagging test bob's origins for inspection on other threads.
2020-08-10 12:53:33 -07:00
jMyles
266eea23ca
Yanking some autouses in favor of usefixtures. [skip ci]
2020-08-10 12:53:03 -07:00
Kieran R. Prasch
041622c40d
Allow worker to attempt period commitment as part of it's initialization.
2020-08-10 12:52:31 -07:00
jMyles
16bc34754d
Another test that was passing for the wrong reason. It now works regardless of whether the future Ursula is a hardcoded seednode or a user-specified one.
2020-08-10 12:52:31 -07:00
jMyles
9437009ffd
Add a measure of maturation time; if this increases dramatically, that will represent a breakage.
2020-08-10 12:52:31 -07:00
jMyles
a0db5ffb15
Moving federated tests into their own module to keep the cache cleaner.
2020-08-10 12:52:30 -07:00
jMyles
d6d9fb4b62
This test needs to look for the checksum_address specifically, since this will be a stranger node or sprout now.
2020-08-10 12:51:49 -07:00
jMyles
ea092fd4d3
Using lonely_ursula_maker in all the right places.
2020-08-10 12:51:49 -07:00
jMyles
0b318c2866
Clarify each fleet state (because one of them is the result of the seednode loading).
2020-08-10 12:51:11 -07:00
jMyles
eebf26e334
This test is no longer relevant; the seednode tests cover this logic equally well.
2020-08-10 12:51:11 -07:00
jMyles
cc7e96f671
This entire test (and part of another) is no longer relevant, as Alice and Bob will learn about seednodes form their hardcoded domain list in such a scenario.
2020-08-10 12:51:11 -07:00
jMyles
392d51f711
This is a more acute test with a nonstandard domain, as it assures that the actual seednode logic is used.
2020-08-10 12:51:11 -07:00
jMyles
0a52a8edb7
Longer time allowance for this test; it will still almost certainly pass in the faster times on CI, but it's a pain to have it fail locally.
2020-08-10 12:51:11 -07:00
jMyles
2c4c7a0b15
We no longer need to lower the parameter here; this test can pass in time with all 5000.
2020-08-10 12:51:10 -07:00
jMyles
21ed54097c
We need to fetch the actual Ursula from the cache to get the bytestring; this will be a sprout nowadays.
2020-08-10 12:49:53 -07:00
jMyles
9f117ebc6a
A Character created from blank config will try to connect to seednodes without lonely.
2020-08-10 12:49:26 -07:00