Skip to content

Commit

Permalink
Fix DB serialization order for Ord types (#4619)
Browse files Browse the repository at this point in the history
* Update cycle db serialization

* Revert to previous cycle handling in get_cycle_history_cycles

(assumes keys are sorted in DB)

* Update ser / deser for cycles and deferred credits slots

* Add comment for AsyncPool behaviour

* Added comments

* Fmt

* Update test comment for pos_cache_recompute

* Address review comment

* Updated deferred_credits test to verify the fix

* Use take_while instead of break

* Update VERSION

* Optimize deferred credits fetch (#4622)

* Optimize deferred credits fetch

* Fix get_addresses test compilation

* Remove test print statements

* Use config for deferred credits delta

* Move to Settings

* minor fixes

* minor fixes 2

* double comment

---------

Co-authored-by: sydhds <sydhds@gmail.com>
Co-authored-by: Damir Vodenicarevic <damipator@gmail.com>

* Add warning for get_deferred_credits_range function and document addr_filter

* Review comment

* Bumped deferred_credits_delta to 3 months by default

* Update initial ledger and README

* Update genesis files + commit_id

---------

Co-authored-by: Sydhds <sylvain.delhomme@gmail.com>
Co-authored-by: sydhds <sydhds@gmail.com>
Co-authored-by: Damir Vodenicarevic <damipator@gmail.com>
  • Loading branch information
4 people committed Jan 10, 2024
1 parent 5697687 commit 4dbac57
Show file tree
Hide file tree
Showing 62 changed files with 800,700 additions and 2,903,362 deletions.
82 changes: 41 additions & 41 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,4 @@ The following initial distribution files:
* `massa-node/base_config/deferred_credits.json`
* `massa-node/base_config/initial_rolls.json`

Are copied from `https://github.com/Massa-Foundation/genesis-ledger/tree/main/node_initial_setup` at commit hash `1633bce34e2c62ca5422fcd202027403d8ad42a9`.
Are copied from `https://github.com/Massa-Foundation/genesis-ledger/tree/main/node_initial_setup` at commit hash `9bb16c286d2bdc830490bd0af70571207d34921c`.
2 changes: 1 addition & 1 deletion massa-api-exports/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "massa_api_exports"
version = "1.0.0"
version = "2.0.0"
authors = ["Massa Labs <info@massa.net>"]
edition = "2021"

Expand Down
2 changes: 2 additions & 0 deletions massa-api-exports/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,6 @@ pub struct APIConfig {
pub last_start_period: u64,
/// chain id
pub chain_id: u64,
/// Delta to compute upper bounds when fetching deferred credits
pub deferred_credits_delta: MassaTime,
}
2 changes: 1 addition & 1 deletion massa-api/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "massa_api"
version = "1.0.0"
version = "2.0.0"
edition = "2021"

[features]
Expand Down
Loading

0 comments on commit 4dbac57

Please sign in to comment.