derekpierre
7a962146e6
Add dev newsfragment for #3445 .
2024-02-13 10:53:03 -05:00
derekpierre
919e5007ed
Update mainnet contract registry with latest changes deployed to mainnet - getParticipants that allows for paging results.
2024-02-13 10:53:03 -05:00
derekpierre
081a7e818f
Add newsfragment for #3440 .
2024-02-13 10:53:03 -05:00
derekpierre
4c42344785
Update test to use updated name for cache member variable.
2024-02-13 10:53:03 -05:00
derekpierre
755cbd1511
Don't reuse the same SSL context. Use a new SSL context per connection so that the ca data can be updated accordingly.
2024-02-13 10:53:03 -05:00
derekpierre
c4019d165e
Add test that ensures that when ursula restarts and its tls certificate changes, that a P2PSession can reconnect to it and update its cache.
...
Co-authored-by: Kieran Prasch <kieranprasch@gmail.com>
2024-02-13 10:53:03 -05:00
derekpierre
d4b257fc66
Add test regarding already having an invalid cert and it getting refreshed as part of retry.
2024-02-13 10:53:03 -05:00
derekpierre
d6d2f8d80c
Simplify netloc replacement of request url.
2024-02-13 10:53:03 -05:00
derekpierre
29ccc48310
Use built-in ssl function for obtaining ssl certs.
2024-02-13 10:53:03 -05:00
derekpierre
efd39bdc1c
Don't raise when a new teacher cannot be selected from the list of known_nodes.
2024-02-13 10:53:03 -05:00
David Núñez
ed7c0f2525
newfragment for #3436
2024-02-13 10:53:03 -05:00
David Núñez
6b2effe664
The return of simple_cache_middleware
2024-02-13 10:53:03 -05:00
derekpierre
6545dc3e88
Make start chunk size optional and default to min chunk size unless specified otherwise. Having 20 as the default negates the initial use of min chunk size which seems like a waste. I can see a potential usage for not wanting to use the min chunk size for a specific case of scanning a large number of blocks but seems unnecessary otherwise.
2024-02-13 10:53:03 -05:00
derekpierre
f7f9380a74
Add newsfragment for #3435 .
2024-02-13 10:53:03 -05:00
derekpierre
19caae9a2d
Fix SimpleTask to actually use class INTERVAL value instead of its own - caused EventScannerTask to use 60s instead of the 120s it had defined.
2024-02-13 10:53:03 -05:00
KPrasch
0a57326a8e
newsfragments/3387
2024-02-13 10:53:03 -05:00
derekpierre
df5e85b1c9
Add newsfragment for #3434 .
2024-02-13 10:53:03 -05:00
derekpierre
ab738805cb
Re-inforce scanner test that larger chunk sizes do result in lower rpc calls.
2024-02-13 10:53:03 -05:00
derekpierre
7257d4df7e
Move chunk, reorg window settings to ActiveRitualTracker - more applicable there since it has context for the chain being scanned etc.
...
Increase reorg window to 20 since we've noticed that Polygon block reorgs can be that large (sometimes larger).
Increase min chunk size to 60. Using 10 was seemingly too small give Polygon's shorter block time.
2024-02-13 10:53:03 -05:00
derekpierre
a4d759ba7a
Add tests for auto migration scenarios for select_config_file.
2024-02-13 10:53:03 -05:00
derekpierre
c89a5668b6
Allow caller of select_config_file to specify whether to auto-migrate config files with older versions.
...
By default auto migration does not happen, and the user is prompted.
During ursula run auto migration is set to true so that there are no user prompts for migration.
2024-02-13 10:53:03 -05:00
derekpierre
b55c478cfd
Add newsfragment for #3432 .
2024-02-13 10:53:03 -05:00
derekpierre
0b2999421b
Automatically migrate configuration files to latest version.
...
Modify OldVersion exception to include old version number.
2024-02-13 10:53:03 -05:00
derekpierre
b59978e815
Reuse response headers variable instead of using two different variables with the same value for response headers.
2024-02-13 10:53:03 -05:00
derekpierre
98b4c9db34
Clear all ritual data instead of just Ritual object when node observes that ritual is not active.
2024-02-13 10:53:03 -05:00
derekpierre
911609869b
Add newsfragment for #3428 .
2024-02-13 10:53:03 -05:00
derekpierre
61adba7207
Even though the ritual is cached, the node still checks its status on chain on purpose (the endtimestamp could have been extended). Remove active ritual cache entry if ritual is ever deemed to be no longer active by the Coordinator contract.
2024-02-13 10:53:03 -05:00
derekpierre
c5b86572c9
Actor now uses cached Ritual object whenever available which has aggregated transcript bytes on it - this saves more RPC calls for already completed/active Ritual whose values (that we care about) don't change at the moment.
...
Aggregated transcript is no longer cached separately (but as part of cached Ritual object) so update code/tests accordingly.
2024-02-13 10:53:03 -05:00
derekpierre
635238f5a6
Cache an active Ritual object as part of DKGStorage. Now that the ritual object is cached, there is no need to separately cache the aggregated transcript.
2024-02-13 10:53:03 -05:00
derekpierre
abd6549dad
Re-inforce decryption test that relies on caching but raising and exception if a function call is made to not use the cache for validators.
2024-02-13 10:53:03 -05:00
derekpierre
611445f80e
Don't cache derived decryption shares - what in the hell was I thinking, they are ciphertext specific at the moment.
2024-02-13 10:53:03 -05:00
derekpierre
f5eb270e90
Add integration and acceptance test to ensure that cached values work for decryption, and that even without a populated cache decryption can still occur.
2024-02-13 10:53:03 -05:00
derekpierre
0351c7726e
Incorporate caching of validators list into _resolve_validators() method - much simpler set up that cleans up usages of resolve_validators() everywhere else.
2024-02-13 10:53:03 -05:00
derekpierre
31e1c18a69
Add ability to clear the cache values for a specific ritual - for now it beneficial for testing; perhaps can be good for future revoke functionality.
2024-02-13 10:53:03 -05:00
derekpierre
083df6664f
Fix missing return statement for getting decryption share.
2024-02-13 10:53:03 -05:00
derekpierre
b674732f71
Utilize DKGStorage cache more effectively to obtain validators, aggregated transcript, and decryption share for a ritual - this will reduce RPC calls, and additional computations.
2024-02-13 10:53:03 -05:00
derekpierre
0c23e1727f
Update tests now that transcript bytes are no longer stored in dkg storage - it was only used in tests.
2024-02-13 10:53:03 -05:00
derekpierre
f767865131
Remove storage of node's transcript bytes for each ritual - it isn't used
...
Allow caching of list of validators used in round 1 - allows potential reuse for round 2, and during threshold decryption if needed.
Allow caching of node's decryption share for a completed ritual - allows for reuse for the same ritual.
Use named constants as key values for entries in DKGStorage - just simpler.
2024-02-13 10:53:03 -05:00
derekpierre
6fe1a9462c
Update typehint for method to derive decryption share.
2024-02-13 10:53:03 -05:00
derekpierre
ddc1b454e5
Use `nucypher-contracts:main` as the canonical source for contract registries.
...
Add test to ensure github raw path is actually correct.
2024-02-13 10:53:03 -05:00
Kieran Prasch
6e1113aa2d
newsfrag for PR #3420
2024-02-13 10:53:03 -05:00
Kieran Prasch
35845d9185
Updates remote regstry source url to reference the main branch on nucypher/nuypher github.
2024-02-13 10:53:03 -05:00
KPrasch
b50e754c31
Correction of ABI ordering inside the registry for future diff preservation
2024-02-13 10:53:03 -05:00
derekpierre
77c4c3f338
Add dev newsfragment for #3414 .
2024-02-13 10:53:03 -05:00
derekpierre
42e12f2d2f
Ignore lynx providers whose nodes are not running.
2024-02-13 10:53:03 -05:00
KPrasch
972ebd31d0
newsfrag for PR #3410
2024-02-13 10:53:03 -05:00
KPrasch
b9d9119756
removes the /node_metadata GET endpoint.
2024-02-13 10:53:03 -05:00
KPrasch
00e8eff231
Update nucypher/blockchain/eth/agents.py
...
Co-authored-by: piotr-roslaniec <39299780+piotr-roslaniec@users.noreply.github.com>
2024-02-13 10:53:03 -05:00
KPrasch
fed7edcc9d
updates embeded registry to sync with nucypher-contracts v0.19.0
2024-02-13 10:53:03 -05:00
KPrasch
2a4d99cb1f
Update tests/acceptance/ape-config.yaml
2024-02-13 10:53:03 -05:00