Jędrzej Stuczyński
9ceae4667a
Fixed comparing dealers addresses to only use ip
2022-05-20 17:21:22 +01:00
Jędrzej Stuczyński
dc2a386cd6
Storing and retrieving epoch dealings commitments
2022-05-19 17:36:49 +01:00
Jędrzej Stuczyński
34b1fc8989
Validator API-side logic for dealing broadcast
2022-05-19 15:11:41 +01:00
Jędrzej Stuczyński
487a3a6cd8
Work on dealing commitments
2022-05-17 17:20:39 +01:00
Jędrzej Stuczyński
b919bd3d35
Recovering assigned node index
2022-05-17 12:42:45 +01:00
Jędrzej Stuczyński
3b14511e16
Fixed condition for pushing new dealers
2022-05-16 17:21:15 +01:00
Jędrzej Stuczyński
11b9e6da43
Fixed dealer remova loging
2022-05-16 17:21:04 +01:00
Jędrzej Stuczyński
aee491173d
Fixed plaintext encoding
2022-05-16 17:08:41 +01:00
Jędrzej Stuczyński
00421c8b06
decoding validator address when validating dealer eligibility
2022-05-16 16:52:28 +01:00
Jędrzej Stuczyński
1165a61ca6
Actually attempting to register dealer keys
2022-05-13 17:29:21 +01:00
Jędrzej Stuczyński
e23f0bb952
Dont push empty dealer set changes
2022-05-13 16:21:29 +01:00
Jędrzej Stuczyński
8bc12bc079
full event propagation and execution of dkg key submission
2022-05-13 16:20:34 +01:00
Jędrzej Stuczyński
0e853e7f32
fixed startup
2022-05-13 12:16:04 +01:00
Jędrzej Stuczyński
691049b85b
Temporary junky setup of all dkg components
2022-05-12 16:03:22 +01:00
Jędrzej Stuczyński
9f4029eb85
Added additional log statements for future debugging purposes
2022-05-12 11:28:42 +01:00
Jędrzej Stuczyński
fb09e97eb6
Logic for processing dealer set changes
2022-05-12 11:12:02 +01:00
Jędrzej Stuczyński
1318b4425d
Initial event emission by the contract watcher
2022-05-11 12:15:28 +01:00
Jędrzej Stuczyński
43f1194268
Parsing of dealer details
2022-05-11 12:14:39 +01:00
Jędrzej Stuczyński
bd216453cc
Querying contract for the current(and past) set of dkg dealers
2022-05-10 15:05:21 +01:00
Jędrzej Stuczyński
7271d19afa
Adding sample ExecuteMsg to DkgClient trait
2022-05-09 12:29:59 +01:00
Jędrzej Stuczyński
f85ac03cda
Stub for DkgClient
2022-05-06 10:19:11 +01:00
Jędrzej Stuczyński
ff9cdba941
Ability to serialize DkgState
2022-05-05 16:20:46 +01:00
Jędrzej Stuczyński
9d84e15a92
Showing better errors for critical failures
2022-05-05 16:12:26 +01:00
Jędrzej Stuczyński
160046b359
Further organising
2022-05-05 14:40:56 +01:00
Jędrzej Stuczyński
72665d3878
Actually handling dkg requests
2022-05-05 12:23:17 +01:00
Jędrzej Stuczyński
5fb7ebeb63
Reorganised accessing state
2022-05-05 12:17:41 +01:00
Jędrzej Stuczyński
3963aebc97
Simplified error response handling
2022-05-05 11:02:26 +01:00
Jędrzej Stuczyński
6554916fae
Merge branch 'develop' into feature/integrated-hybrid-dkg
2022-05-05 10:07:46 +01:00
Jędrzej Stuczyński
945dda0c24
Release/1.0.1 ( #1247 )
...
* Bumped up version numbers to 1.0.1
* Updated changelog attempting to use new format
2022-05-04 16:57:36 +01:00
Jon Häggblad
139e89643c
Endpoints for average mixnode uptime ( #1238 )
2022-05-04 11:28:41 +02:00
Jędrzej Stuczyński
d71f860751
Changes to serialization + playing around with the concept of event dispatcher
2022-05-03 15:30:33 +01:00
Jon Häggblad
4cce235e13
validator-api: disable swagger temporarily
2022-05-03 15:49:44 +02:00
Jon Häggblad
c77ccddcb3
Add swagger for validator-api ( #1239 )
...
* validator-api: add swagger openapi
* Lock file
2022-05-03 14:40:11 +02:00
Drazen Urch
b09db50bba
Fix checkpointing ( #1230 )
...
* Fix checkpoint strategy and order, test
* Debug pending delegation events
* Debug print
* Switch print to log
* Add debug print
* More printing
* Remove problematic checkpoint
* checkpoint mixnodes in separate block
* more debugs
* Removing old migration just in case
* Printing all checkpoint heights at migration
* Purging old checkpoint from storage
* Attempting to load raw storage value
* More printing...
* Removed expect
* deserialization changes
* error handling
* cleanup
* clippy
* dead code
* Reduce minimum age for rewarding to 1 epoch
* Add checkpoint query
* Get checkpoint at height
* Fix delegation compounding, fix undelegate accumulate_rewards
* Fix potential overflow, add debug logging
* Moar logging
* Fix total_delegations + rewards
* Better error for horrible overflow
* fmt
* Fixed unit test assertions in bech32 validation
Co-authored-by: Jędrzej Stuczyński <jedrzej.stuczynski@gmail.com >
2022-05-03 14:36:29 +02:00
Jędrzej Stuczyński
82e6d7335b
Bandwidth credentials disabled by default
2022-05-03 14:36:29 +02:00
Jędrzej Stuczyński
21d19d2447
Renamed testnet mode to disabled credentials mode
2022-05-03 14:36:29 +02:00
Jędrzej Stuczyński
04f633446e
Updated binaries versions to 1.0.0
2022-05-03 14:36:29 +02:00
Jędrzej Stuczyński
6541d4e0d3
WIP
2022-04-28 09:13:43 +01:00
Jędrzej Stuczyński
1efc0847b5
Header deserialization
2022-04-27 10:18:55 +01:00
Jędrzej Stuczyński
1f0360c828
Initial building blocks for the networking part
2022-04-26 17:11:10 +01:00
Drazen Urch
632612eca0
Bucket inclusion probabilities ( #1224 )
...
* Bucket inclusion probabilities
* Make display equal variant name for TS
2022-04-26 16:23:32 +02:00
Jędrzej Stuczyński
8318002b0a
Bugfix/delegation reconcile ( #1219 )
...
* Passing proxy value when attempting to compound delegator reward
* Do not attempt to delegate reward to mixnode if its zero
* Additional guards against sending 0 tokens
* Removed sign of sloppiness
* Fixes to rewards and delegation events storage
* Remove block count check, epoch cannot be advanced while in progress
* Add reward compound ops to vesting contract
* Migration to remove 0 value delegationns
Co-authored-by: durch <durch@users.noreply.github.com >
2022-04-25 12:01:45 +01:00
Jędrzej Stuczyński
dd66697884
Release/1.0.0 rc.2 ( #1214 )
...
* Updated binaries versions to 1.0.0-rc.2
* Update GitHub Action to build nym binaries
* Fix contract bootstraping
* Relax the active_set check
* Cleanup migration
* Fix validator-api mainnet config
* Removed reward estimation ts-files
* Removed old migration tests
Co-authored-by: Mark Sinclair <mmsinclair@gmail.com >
Co-authored-by: durch <durch@users.noreply.github.com >
2022-04-21 10:36:48 +01:00
Bogdan-Ștefan Neacşu
76a61cb3ae
Feature/spend coconut ( #1210 )
...
* Import cw3-flex-multisig and cw4-group contracts
* Add release_funds to coconut-bandwidth-contract
* Create contract.rs file
* Add cw multi test and a test that uses it
* Use mnemonic for coconut mode too
* Stricter access to config file, which contains mnemonic
* Update tests
* Remove signed deposits dir after merging that into sql db
* Clippy nits
* More clippy
* Remove backtraces features to pass clippy tests
* Merge the same mnemonic for rewarding and coconut
* Simplify things, letting network monitor use testnet-mode with gateways
* Unify the nymd clients
* Sqlx common storage for buying/consuming credentials
* Link credential storage to credential client
* Trigger rewarded_set update on bootstrap error
* Fix bug on message signing
* Simplify coconut feature in code and set it in validator-api
* Update some local consts
* Link clients to credential storage
* Simplify sql query and change socks5 too
* Update attr handling such that public ones are usable
* Normalize test addresses
* Fix clippy
* Merge storages for (non)coconut creds
* Fmt miss
* Disable wasm client support for now
Co-authored-by: durch <durch@users.noreply.github.com >
2022-04-14 14:25:21 +02:00
Drazen Urch
485257d29b
Add read and write timeouts ( #1206 )
2022-04-13 11:39:52 +02:00
Drazen Urch
d3372bfc85
Additional, more informative routes ( #1204 )
...
* Have reward set updater run its own timer (#1200 )
* Have reward set updater run its own timer
* Filter rocket log spam
* Take last day of uptime for rewarding (#1202 )
* Take last day of uptime for rewarding
* Rejigger calculations
* Blacklist based on last 24 hr
* Cleanup
* Clippy
* Additional, more informative routes
* Improve blacklist updates
* Fix rewards estimation
2022-04-12 11:55:32 +02:00
Jon Häggblad
be4bc2bdcc
Merge branch 'release/1.0.0-rc.1' into develop
...
Conflicts:
validator-api/Cargo.toml
2022-04-08 12:14:47 +02:00
Drazen Urch
9aa5b98465
Debugging validator ( #1198 )
...
* Checkpoint
* Replace Stream logic with StreamMap
* Ignore blacklisted mixnodes and gateways
* Moar logging
* Remove version checks
* Cleanup
* Some more cleanup
2022-04-07 18:13:29 +02:00
Jon Häggblad
d81967189a
Fix clippy warnings for beta toolchain
2022-04-04 08:55:34 +02:00
Jon Häggblad
58fd40fb8e
Fix clippy warnings
2022-04-03 21:15:50 +02:00