Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cherry-picked patches from upstream and updated README #3

Merged
merged 21 commits into from
Jan 9, 2024
Merged

Conversation

KashProtocol
Copy link

No description provided.

someone235 and others added 21 commits January 8, 2024 23:02
* fix account derivation index relay in bip32

* fix serializations and sanity checks

* zeroize bip39 mnemonic after bip44 scan

* code formatting
* fix new unused imports warns by running `cargo clippy --fix --all --tests --benches --features devnet-prealloc`
note that all these `pub use` were not really exposed publicly on the crate level

* fix `variant name ends with the enum's name` warnings
- Modified relevant functions and structures to accommodate the calculation of circulating supply for multiple assets.
- Introduced `AssetCirculatingSupply` and `AssetCirculatingSupplyDiffs`.
- Overloaded operators for these classes to streamline calculations and data handling.
* Add a pruning exit point on advance_pruning_utxoset

* Fix log
* Add timestamps to IBD progress

* Add timezone

* Address review comments

* Change error message
* Implement basic tx throttling on high P2P load

When P2P load is high:
1. Limit the number of peers to broadcast to
2. Limit the number of transactions requested when requesting missing
   transactions
3. Reduce the size of the invs channel and allow dropping invs when
   it's full

* Renames and small fixes

* Saturating sub for unknown tx limit

* Some fixes

* Remove redundant collect

* Fix lint

* restore collect

---------

Co-authored-by: Ori Newman <orinewman1@gmail.com>
Co-authored-by: Michael Sutton <msutton@cs.huji.ac.il>
Co-authored-by: Michael Sutton <mikisiton2@gmail.com>
* move frequent logs to debug

* wip storage mass calculation

* use checked add and return Option<u64>

* add mass field

* add mass to all necessary communication structs

* rename `calculated_mass` to `calculated_compute_mass` to make it explicit that storage mass is not included in this field

* apply bew mass as mempool rule

* apply storage mass rule to body processor

* apply storage mass rule to virtual in context validation

* some important prints

* simplify inner hashing condition + add todo

* add low-level storage mass tests

* add future todo

* fix tx hashing for BBT

* fix mass counting in body validation

* set mass in the correct place (in consensus)

* remove spam blocking patch

* fix fee rate (safe bcs fee is unwrapped which happens only for validated txs)

* fix tests

* renames and minor review comments

* fix mass sum

* add storage mass to simpa + activation switch

* prevent rothschild from sending dust

* new genesis

* new dns seeder

* activate storage mass on start

* new db version

* bump version

* make is synced smaller on TNets

* fix min items allocation for GD data

---------

Co-authored-by: Ori Newman <orinewman1@gmail.com>
Co-authored-by: aspect <anton.yemelyanov@gmail.com>
Co-authored-by: Ori Newman <orinewman1@gmail.com>
* Update testnet11.md

* Another update

* Some fixes

* Some fixes

* Some fixes
Removed "first experiment" section
* fix timestamp deviation tolerance for 10 bps (note that the change does not affect 1bps -> target time =1000)

* bump version
@KashProtocol KashProtocol merged commit 33ef503 into master Jan 9, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants