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

add codecoverage / codecov integration #199

Closed
wants to merge 71 commits into from

Commits on Jun 10, 2023

  1. coverage

    D-stacks committed Jun 10, 2023
    Configuration menu
    Copy the full SHA
    d1d6226 View commit details
    Browse the repository at this point in the history
  2. pass 2

    D-stacks committed Jun 10, 2023
    Configuration menu
    Copy the full SHA
    59cd903 View commit details
    Browse the repository at this point in the history
  3. pass 3

    D-stacks committed Jun 10, 2023
    Configuration menu
    Copy the full SHA
    d49dd6c View commit details
    Browse the repository at this point in the history
  4. pass4

    D-stacks committed Jun 10, 2023
    Configuration menu
    Copy the full SHA
    a6fd435 View commit details
    Browse the repository at this point in the history
  5. pass5

    D-stacks committed Jun 10, 2023
    Configuration menu
    Copy the full SHA
    186ae2e View commit details
    Browse the repository at this point in the history
  6. pass 6

    D-stacks committed Jun 10, 2023
    Configuration menu
    Copy the full SHA
    588f36b View commit details
    Browse the repository at this point in the history
  7. pass7

    D-stacks committed Jun 10, 2023
    Configuration menu
    Copy the full SHA
    44e77c4 View commit details
    Browse the repository at this point in the history
  8. remove key

    D-stacks committed Jun 10, 2023
    Configuration menu
    Copy the full SHA
    cee9dbb View commit details
    Browse the repository at this point in the history
  9. add windows fix

    D-stacks committed Jun 10, 2023
    Configuration menu
    Copy the full SHA
    00373ce View commit details
    Browse the repository at this point in the history
  10. copy names from kaspad.go

    D-stacks committed Jun 10, 2023
    Configuration menu
    Copy the full SHA
    3f349a7 View commit details
    Browse the repository at this point in the history
  11. make name less verbose

    D-stacks committed Jun 10, 2023
    Configuration menu
    Copy the full SHA
    9ceb72f View commit details
    Browse the repository at this point in the history
  12. copy codecov.yaml from go-kaspad.

    D-stacks committed Jun 10, 2023
    Configuration menu
    Copy the full SHA
    b9d5817 View commit details
    Browse the repository at this point in the history
  13. no need to ignore .pb files.

    D-stacks committed Jun 10, 2023
    Configuration menu
    Copy the full SHA
    45fc9ec View commit details
    Browse the repository at this point in the history

Commits on Jun 11, 2023

  1. Configuration menu
    Copy the full SHA
    c0c74eb View commit details
    Browse the repository at this point in the history
  2. Merge branch 'code-coverage' of https://github.com/D-Stacks/rusty-kaspa

    … into code-coverage
    D-stacks committed Jun 11, 2023
    Configuration menu
    Copy the full SHA
    a9bbfc7 View commit details
    Browse the repository at this point in the history

Commits on Jun 23, 2023

  1. Merge branch 'master' of https://github.com/kaspanet/rusty-kaspa into…

    … code-coverage
    D-stacks committed Jun 23, 2023
    Configuration menu
    Copy the full SHA
    bc67715 View commit details
    Browse the repository at this point in the history

Commits on Jul 19, 2023

  1. Merge branch 'master' of https://github.com/kaspanet/rusty-kaspa into…

    … code-coverage
    D-stacks committed Jul 19, 2023
    Configuration menu
    Copy the full SHA
    1e52830 View commit details
    Browse the repository at this point in the history
  2. ignore flaky test during code cov, & add comment.

    D-stacks committed Jul 19, 2023
    Configuration menu
    Copy the full SHA
    10fe5d3 View commit details
    Browse the repository at this point in the history
  3. fix lints

    D-stacks committed Jul 19, 2023
    Configuration menu
    Copy the full SHA
    fadf2e6 View commit details
    Browse the repository at this point in the history
  4. skip test via --skip instead

    D-stacks committed Jul 19, 2023
    Configuration menu
    Copy the full SHA
    5251068 View commit details
    Browse the repository at this point in the history
  5. revert back to no solution

    D-stacks committed Jul 19, 2023
    Configuration menu
    Copy the full SHA
    39941aa View commit details
    Browse the repository at this point in the history

Commits on Jul 20, 2023

  1. try with feature in lib.rs

    D-stacks committed Jul 20, 2023
    Configuration menu
    Copy the full SHA
    62d4cb1 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'master' of https://github.com/kaspanet/rusty-kaspa into…

    … code-coverage
    D-stacks committed Jul 20, 2023
    Configuration menu
    Copy the full SHA
    1587010 View commit details
    Browse the repository at this point in the history
  3. fix comment

    D-stacks committed Jul 20, 2023
    Configuration menu
    Copy the full SHA
    ec335d0 View commit details
    Browse the repository at this point in the history

Commits on Aug 6, 2023

  1. Configuration menu
    Copy the full SHA
    230934f View commit details
    Browse the repository at this point in the history

Commits on Dec 22, 2023

  1. Configuration menu
    Copy the full SHA
    ac7e496 View commit details
    Browse the repository at this point in the history
  2. change to new format

    Faten848 committed Dec 22, 2023
    Configuration menu
    Copy the full SHA
    fb1f687 View commit details
    Browse the repository at this point in the history
  3. try fix something

    Faten848 committed Dec 22, 2023
    Configuration menu
    Copy the full SHA
    3c7e623 View commit details
    Browse the repository at this point in the history
  4. rebuild cargo,lock

    Faten848 committed Dec 22, 2023
    Configuration menu
    Copy the full SHA
    8188b43 View commit details
    Browse the repository at this point in the history
  5. try again

    Faten848 committed Dec 22, 2023
    Configuration menu
    Copy the full SHA
    ddfafb6 View commit details
    Browse the repository at this point in the history
  6. update

    Faten848 committed Dec 22, 2023
    Configuration menu
    Copy the full SHA
    701ad25 View commit details
    Browse the repository at this point in the history
  7. use only once

    Faten848 committed Dec 22, 2023
    Configuration menu
    Copy the full SHA
    fa18811 View commit details
    Browse the repository at this point in the history

Commits on Jan 23, 2024

  1. make step 3. of linux installation not fail copy and paste (kaspanet#363

    )
    
    remove the space to escape the newline instead.
    D-Stacks committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    30fac16 View commit details
    Browse the repository at this point in the history
  2. Cumulative PR for Wallet & Metrics Refactoring (kaspanet#360)

    * external access to kaspad core rpc services API
    
    * rename wallet event members for serde serialization
    misc wallet functionality update
    
    * wip - event renaming
    
    * wip - event serialization tuneup
    
    * remove default wrpc listening ports on kaspad Args + fix port mapping bug for automatic JSON RPC port mapping.
    
    * Box wallet events
    
    * introduce RpcCtl + isolate wRPC from DynRpcApi
    
    * debug trait for secret
    
    * de-couple wRPC from the runtiem wallet making RPC bindings generic
    
    * convert wallet_list to return Vec<WalletDescriptor>
    
    * user-friendly error message on decryption error
    
    * UtxoProcessor - ignore task shutdown if not running
    
    * wallet storage data versioning
    
    * wallet - propagate wallet title
    
    * sort traits on WalletDescriptor
    
    * wallet - use precise decimal conversion when parsing strings to sompi
    
    * display kaspa on get-balance-by-address-rpc
    
    * wallet - rename settings fns to have try_ prefixes
    
    * rename library names "kaspad" and "kaspa_cli" to "kaspad_lib" and "kaspa_cli_lib" to prevent build collisions
    
    * no-unsafe-eval feature
    
    * allow for chrome-extension schema in the RPC url
    
    * wallet - expose bip32 wordlist for external access
    
    * wallet - delegate rpc ownership to utxo_processor; reorder rpc disconnect to occur before utxo_processor shutdown;
    
    * wallet - migrate wallet settings loading to cli
    
    * rename RpcCtlOp (Open, Close) to RpcState (Opened, Closed)
    
    * remove automatic RPC disconnect from wallet stop() to allow retention of the RPC channel after closing the wallet
    
    * allow UtxoProcessor to bind to an already existing/connected RPC channel, allow retention of a connected RPC channel past UtxoProcessor shutdown. (API centric defensive functionality)
    
    * code formatting
    
    * fix clippy warnings
    
    * migrate chrome-extension to use ws:// schema by default
    
    * wallet list formatting
    
    * staging for WRS 0.7.0
    
    * add bip32 word list iterator
    
    * update WRS to 0.7.0
    
    * fix rustdoc errors
    
    * wip - initial WalletApi trait implementation
    
    * wallet - macros and account descriptors
    
    * wallet - ping_call
    
    * cleanup
    
    * wip - wallet api cleanup & testing
    
    * kaspa-metrics as a separate crate
    
    * wip - metrics cleanup
    
    * cargo.lock update
    
    * async/sync api  changes for storage
    
    * merge
    
    * master merge
    
    * wip
    
    * wip
    
    * wip
    
    * wallet - (wip) changes to AccountDescriptor and Wallet API
    
    * metrics - make sink future return as optional
    
    * wip - refactor wallet open; improve wallet event ordering; cleanup
    
    * wip (debugging UtxoChanged notifications) - fix issuance during failed tx
    
    * adding workflow-rs as github dependency (allows CI)
    
    * revert github deps for WRS
    
    * metrics
    
    * refactor metrics to include bdi counts and peer counts
    
    * wallet api updates
    refactoring transaction access interface
    misc updates to wallet APIs
    refactor wallet open sequence
    refactor legacy accounts
    
    * wallet framework - fix a but resulting in the early issuane of UTXO maturity events.
    Refactor handling of outgoing transaction UTXOs (sending outgoing tx ACKs on UtxoChange removal), minor fixes in the Transaction file-system storage.  Add "outgoing" property to account balances (to track in-flight transactions being submitted until acceptance). Introduce new Events::Change that gets fired specifically when receiving change of the currently outgoing transaction. Initial steps toward Daa property wrapper.
    
    * npm 0.13.0
    
    * metrics - cleanup after RPC refactoring
    
    * rename rust-side of wasm bindings as naming conventions interfere with rust use (make fns more explicitly named)
    
    * make metrics data formatting fns as pub
    
    * expose log levels in kaspa-core::log
    
    * rename metrics & improve metrics fetch task
    
    * add API calls to pre-configure wallet framework stroage folders
    
    * cumulative updates for Cargo.lock
    
    * Improve address error messages for human readability
    
    * PrvKeyData enumeration, initial account transfer support (wip), wallet descriptor handling
    
    * wallet - change error to retain PrvKeyDataId instead of a String
    
    * propagate bip39 flag to runtime account and it's descriptor
    
    * wip - keydata refactoring
    
    * metrics refactoring (bandwidth)
    
    * wip (cleanup)
    
    * misc improvements to metrics
    
    * code formatting
    
    * wRPC bandwidth monitoring + scaffolding for global bandwidth metrics
    
    * bump WRS to 0.9.0
    
    * metrics - add mempool_size and convert some items to u32/f32
    
    * metrics cleanup
    
    * wallet and account rename, remove "title" from accounts
    
    * add missing mempool size metric
    
    * UTXO "stasis" mode for new coinbase transactions
    
    * remove useless Option from the rpc url parser
    
    * fix daa score in maturity state check
    
    * add name_or_id to PrvKeyDataInfo
    
    * wallet RPC Connect/Disconnect and GetStatus API calls
    
    * cleanup
    
    * support for 12-word bip39 mnemonics
    
    * add a hidden --daemon flag to kaspad
    
    * refactor get_daa_score_timestamp helper to return Vec<u64> instead of Response struct
    
    * Add Scan event
    
    * implement support for unixtime in transactions
    
    * kaspa value formatting functions
    
    * fix a deadlock due to re-entrant mutex lock when loading multiple accounts from storage
    
    * introduce utxo stasis mode + make balance carry utxo counts as well as the totals
    
    * refactor wallet events, replace reset() with close() where appropriate
    
    * manual debug impl for tx components (display script as hex, address as address etc)
    
    * fix incorrect gas assignment in WASM bindings
    
    * updates for wallet event handling
    
    * refactor sign_with_multiple to return Err(tx) when partially signed
    
    * refactor Storage and Wallet descriptors
    
    * fix account derivation index handling in DerivationCapable
    
    * track acceptance DAA stamp in outgoing transaction record
    
    * temporary harness for embedding script engine directly into tx generator (used for debugging)
    
    * convert PendingTransaction Utxo entries into HashSet
    
    * rename pending tx fns
    
    * outgoing tx wrapper around pending tx
    
    * refactor notification events during wallet ops
    
    * as_ref() for PrvKeyData
    
    * wip - initial RpcCoreMocks for wallet framework tests
    
    * wallet api messages update for StorageDescriptor usage
    
    * update AddressDerivationMeta to track addresses from index 0
    
    * add AHash and async_channel to wallet_core crate
    
    * allow Args to be used externally for daemon argument pre-validation
    
    * impl Hash for UtxoEntryReference and rename "fake()" to "simulated()"
    
    * update wallet events
    
    * expose tx validator check_scripts() as pub
    
    * update wallet wasm fns for wallet and storage descriptors
    
    * rename kaspa-metrics to kaspa-metrics-core
    
    * code formatting
    
    * code formatting
    
    * migrate transaction console formatting to cli/extensions
    
    * refactor wallet events
    
    * use ahash for faster processing in wallet hash maps (utxo context)
    
    * wallet - add SendError handling for error::Error
    
    * wallet event refactoring, scan/discovery process refactoring, wallet change secret api handling
    
    * refactoring: transfer and deep derivation scan
    
    * transaction record refactoring
    
    * wallet - support for cross-account transfers in generator
    
    * wallet - outgoing transaction impl
    
    * wallet - refactor maturity handling
    
    * wallet/utxo - initial tests scaffolding
    
    * minor optimization of the discovery/scan process
    
    * wallet - utxo processor outgoing tx and discovery timestamp unixtime handling
    
    * refactor utxo context to use output transactions, refactor transfers, compound and change notifications
    
    * code formatting + Cargo.lock update
    
    * Signed enum to represent Fully or Partially signed tx
    
    * bind p2p and grpc bandwidth metrics
    
    * misc clippy fixes
    
    * cleanup
    
    * remove --daemon as Args::parse() offers external mutations
    
    * remove previously implemented mnemonic variant in favor of client-side mnemonic creation
    
    * remove AccessContextT, convert to wallet_secret, wip WalletApi traits, refactor account args
    
    * code formatting
    
    * separate runtime wallet into multiple modules
    
    * wallet - revert create_accounts to process a single account at a time
    
    * cleanup
    
    * wallet - JSON import and export + preliminary docs
    
    * address - AddressList - fix TryFrom deadlock caused by recursive trait invocation
    
    * wallet - api rustdoc + cleanup, transaction calls
    
    * wallet docs
    
    * change address debug formatting
    
    * adding cli rpc addpeer
    
    * wip - wallet restructuring
    
    * wip - restructure wallet modules
    
    * wip - wallet restructuring - cleanup
    
    * wip - AccountKind refactoring
    
    * wallet - refactoring storage serialization & encryption
    
    * fold in PR kaspanet#349
    
    * wallet framework - misc helper fns and cleanup
    
    * storage unit tests + prv key data module restructuring
    
    * wallet - account factory registrations
    
    * Remove panics caused by sudden loss of connection while submitting transactions.
    
    * cleanup
    
    * cleanup
    
    * cleanup + docs
    
    * docs
    
    * adjust metrics formatting
    
    * cleanup
    
    * bump workflow-rs to 0.10.1
    
    * fix wallet storage unit tests
    
    * fix generator unit tests
    
    * convert missing listener_id panic to error
    
    * docs
    
    * code formatting
    
    * lints
    
    * misc updates following github reviews
    
    * refactor AccountKind to use fixedstr and implement Copy
    
    * refactor AccountKind to use fixedstr (str64) and re-implement Copy, removing clone() where necessary
    
    * change js-bound fn names from *as* to *to* to follow Rust conventions
    
    * replace AssocPrvKeyDataIds iter().any() to contains()
    
    * remove vec![] in MetricsGroup iterator fn; add TODO comment on Metric::group()
    
    * scope magic numbers within their associated structs
    
    * add try_fully_signed() and try_partially_signed() fns to Signed that allow recovery of the tx
    
    * refactor local storage cache to use RwLock instead of a Mutex
    
    * refactor serialization as per github feedback (partial trait impl)
    
    * Optimize AssocPrvKeyDataIds to use Either in the IntoIter impl, removing allocations.
    
    * Refactor to bypass aux buffer creation when storing wallet on native platforms.
    
    * impl custom Debug for storage structs to display data in hex
    
    * adding misc SAFETY comments on unsafe ops
    
    * TODO comments for later SignerT+multisig refactoring
    
    * Change panic!() to unreachable!() to make it clearer that a state should not be reached.
    
    * rename TransactionRecord::unixtime to unixtime_msec
    
    * fix wrong references in comments
    
    * Fix min_cosigner_index handling in multisig fns
    
    * add comments to UtxoContext::insert() error handling
    
    * bind AccountStorable:Storable for AccountStorage, migrate Storable into a separate module, add comments to MAGIC values in some locations
    
    * make framework init functions unsafe
    
    * update workflow-rs to 0.10.2
    
    * fix comments
    
    * fix data cloning when getting collection counts
    
    * adding TODO notes to wasm macros and KAS value decimal parsing
    
    ---------
    
    Co-authored-by: Surinder Singh Matoo <[email protected]>
    2 people authored and D-Stacks committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    65bb6aa View commit details
    Browse the repository at this point in the history
  3. Move to mimalloc (kaspanet#361)

    * mimalloc
    
    * mimalloc disable purge_decommits
    
    * Add to simpa and integration tests
    
    * remove redundant unix and replace with win/linux/mac
    
    * Add comment
    
    * Add comment
    
    * Sort out features
    
    * Get rid of ctor
    
    ---------
    
    Co-authored-by: Michael Sutton <[email protected]>
    2 people authored and D-Stacks committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    1d51e00 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    42ce688 View commit details
    Browse the repository at this point in the history
  5. Minor wallet framework updates (kaspanet#367)

    * fix account derivation index relay in bip32
    
    * fix serializations and sanity checks
    
    * zeroize bip39 mnemonic after bip44 scan
    
    * code formatting
    aspect authored and D-Stacks committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    00c2f54 View commit details
    Browse the repository at this point in the history
  6. Bounding node RAM -- implementing a cache policy which tracks dynamic…

    … data sizes (kaspanet#351)
    
    * cache inner struct: prep for tracking size
    
    * initial cache policy and mem size estimator
    
    * use new cache policies
    
    * fix storage calcs
    
    * update TN11 genesis
    
    * temp: limit max block parents in virtual processor
    
    * use more conservative constants (wip)
    
    * ensure sufficient cache allocs for high level stores
    
    * increase caches related to daa window
    
    * Squashed commit of the following:
    
    commit a4ba784
    Author: Ori Newman <[email protected]>
    Date:   Tue Dec 26 16:22:36 2023 +0200
    
        Add headers first validation to simpa (kaspanet#364)
    
    commit fb1aa5f
    Author: Ori Newman <[email protected]>
    Date:   Tue Dec 26 16:07:19 2023 +0200
    
        Move to mimalloc (kaspanet#361)
    
        * mimalloc
    
        * mimalloc disable purge_decommits
    
        * Add to simpa and integration tests
    
        * remove redundant unix and replace with win/linux/mac
    
        * Add comment
    
        * Add comment
    
        * Sort out features
    
        * Get rid of ctor
    
        ---------
    
        Co-authored-by: Michael Sutton <[email protected]>
    
    commit b6f7e09
    Author: aspect <[email protected]>
    Date:   Tue Dec 26 13:38:24 2023 +0200
    
        Cumulative PR for Wallet & Metrics Refactoring (kaspanet#360)
    
        * external access to kaspad core rpc services API
    
        * rename wallet event members for serde serialization
        misc wallet functionality update
    
        * wip - event renaming
    
        * wip - event serialization tuneup
    
        * remove default wrpc listening ports on kaspad Args + fix port mapping bug for automatic JSON RPC port mapping.
    
        * Box wallet events
    
        * introduce RpcCtl + isolate wRPC from DynRpcApi
    
        * debug trait for secret
    
        * de-couple wRPC from the runtiem wallet making RPC bindings generic
    
        * convert wallet_list to return Vec<WalletDescriptor>
    
        * user-friendly error message on decryption error
    
        * UtxoProcessor - ignore task shutdown if not running
    
        * wallet storage data versioning
    
        * wallet - propagate wallet title
    
        * sort traits on WalletDescriptor
    
        * wallet - use precise decimal conversion when parsing strings to sompi
    
        * display kaspa on get-balance-by-address-rpc
    
        * wallet - rename settings fns to have try_ prefixes
    
        * rename library names "kaspad" and "kaspa_cli" to "kaspad_lib" and "kaspa_cli_lib" to prevent build collisions
    
        * no-unsafe-eval feature
    
        * allow for chrome-extension schema in the RPC url
    
        * wallet - expose bip32 wordlist for external access
    
        * wallet - delegate rpc ownership to utxo_processor; reorder rpc disconnect to occur before utxo_processor shutdown;
    
        * wallet - migrate wallet settings loading to cli
    
        * rename RpcCtlOp (Open, Close) to RpcState (Opened, Closed)
    
        * remove automatic RPC disconnect from wallet stop() to allow retention of the RPC channel after closing the wallet
    
        * allow UtxoProcessor to bind to an already existing/connected RPC channel, allow retention of a connected RPC channel past UtxoProcessor shutdown. (API centric defensive functionality)
    
        * code formatting
    
        * fix clippy warnings
    
        * migrate chrome-extension to use ws:// schema by default
    
        * wallet list formatting
    
        * staging for WRS 0.7.0
    
        * add bip32 word list iterator
    
        * update WRS to 0.7.0
    
        * fix rustdoc errors
    
        * wip - initial WalletApi trait implementation
    
        * wallet - macros and account descriptors
    
        * wallet - ping_call
    
        * cleanup
    
        * wip - wallet api cleanup & testing
    
        * kaspa-metrics as a separate crate
    
        * wip - metrics cleanup
    
        * cargo.lock update
    
        * async/sync api  changes for storage
    
        * merge
    
        * master merge
    
        * wip
    
        * wip
    
        * wip
    
        * wallet - (wip) changes to AccountDescriptor and Wallet API
    
        * metrics - make sink future return as optional
    
        * wip - refactor wallet open; improve wallet event ordering; cleanup
    
        * wip (debugging UtxoChanged notifications) - fix issuance during failed tx
    
        * adding workflow-rs as github dependency (allows CI)
    
        * revert github deps for WRS
    
        * metrics
    
        * refactor metrics to include bdi counts and peer counts
    
        * wallet api updates
        refactoring transaction access interface
        misc updates to wallet APIs
        refactor wallet open sequence
        refactor legacy accounts
    
        * wallet framework - fix a but resulting in the early issuane of UTXO maturity events.
        Refactor handling of outgoing transaction UTXOs (sending outgoing tx ACKs on UtxoChange removal), minor fixes in the Transaction file-system storage.  Add "outgoing" property to account balances (to track in-flight transactions being submitted until acceptance). Introduce new Events::Change that gets fired specifically when receiving change of the currently outgoing transaction. Initial steps toward Daa property wrapper.
    
        * npm 0.13.0
    
        * metrics - cleanup after RPC refactoring
    
        * rename rust-side of wasm bindings as naming conventions interfere with rust use (make fns more explicitly named)
    
        * make metrics data formatting fns as pub
    
        * expose log levels in kaspa-core::log
    
        * rename metrics & improve metrics fetch task
    
        * add API calls to pre-configure wallet framework stroage folders
    
        * cumulative updates for Cargo.lock
    
        * Improve address error messages for human readability
    
        * PrvKeyData enumeration, initial account transfer support (wip), wallet descriptor handling
    
        * wallet - change error to retain PrvKeyDataId instead of a String
    
        * propagate bip39 flag to runtime account and it's descriptor
    
        * wip - keydata refactoring
    
        * metrics refactoring (bandwidth)
    
        * wip (cleanup)
    
        * misc improvements to metrics
    
        * code formatting
    
        * wRPC bandwidth monitoring + scaffolding for global bandwidth metrics
    
        * bump WRS to 0.9.0
    
        * metrics - add mempool_size and convert some items to u32/f32
    
        * metrics cleanup
    
        * wallet and account rename, remove "title" from accounts
    
        * add missing mempool size metric
    
        * UTXO "stasis" mode for new coinbase transactions
    
        * remove useless Option from the rpc url parser
    
        * fix daa score in maturity state check
    
        * add name_or_id to PrvKeyDataInfo
    
        * wallet RPC Connect/Disconnect and GetStatus API calls
    
        * cleanup
    
        * support for 12-word bip39 mnemonics
    
        * add a hidden --daemon flag to kaspad
    
        * refactor get_daa_score_timestamp helper to return Vec<u64> instead of Response struct
    
        * Add Scan event
    
        * implement support for unixtime in transactions
    
        * kaspa value formatting functions
    
        * fix a deadlock due to re-entrant mutex lock when loading multiple accounts from storage
    
        * introduce utxo stasis mode + make balance carry utxo counts as well as the totals
    
        * refactor wallet events, replace reset() with close() where appropriate
    
        * manual debug impl for tx components (display script as hex, address as address etc)
    
        * fix incorrect gas assignment in WASM bindings
    
        * updates for wallet event handling
    
        * refactor sign_with_multiple to return Err(tx) when partially signed
    
        * refactor Storage and Wallet descriptors
    
        * fix account derivation index handling in DerivationCapable
    
        * track acceptance DAA stamp in outgoing transaction record
    
        * temporary harness for embedding script engine directly into tx generator (used for debugging)
    
        * convert PendingTransaction Utxo entries into HashSet
    
        * rename pending tx fns
    
        * outgoing tx wrapper around pending tx
    
        * refactor notification events during wallet ops
    
        * as_ref() for PrvKeyData
    
        * wip - initial RpcCoreMocks for wallet framework tests
    
        * wallet api messages update for StorageDescriptor usage
    
        * update AddressDerivationMeta to track addresses from index 0
    
        * add AHash and async_channel to wallet_core crate
    
        * allow Args to be used externally for daemon argument pre-validation
    
        * impl Hash for UtxoEntryReference and rename "fake()" to "simulated()"
    
        * update wallet events
    
        * expose tx validator check_scripts() as pub
    
        * update wallet wasm fns for wallet and storage descriptors
    
        * rename kaspa-metrics to kaspa-metrics-core
    
        * code formatting
    
        * code formatting
    
        * migrate transaction console formatting to cli/extensions
    
        * refactor wallet events
    
        * use ahash for faster processing in wallet hash maps (utxo context)
    
        * wallet - add SendError handling for error::Error
    
        * wallet event refactoring, scan/discovery process refactoring, wallet change secret api handling
    
        * refactoring: transfer and deep derivation scan
    
        * transaction record refactoring
    
        * wallet - support for cross-account transfers in generator
    
        * wallet - outgoing transaction impl
    
        * wallet - refactor maturity handling
    
        * wallet/utxo - initial tests scaffolding
    
        * minor optimization of the discovery/scan process
    
        * wallet - utxo processor outgoing tx and discovery timestamp unixtime handling
    
        * refactor utxo context to use output transactions, refactor transfers, compound and change notifications
    
        * code formatting + Cargo.lock update
    
        * Signed enum to represent Fully or Partially signed tx
    
        * bind p2p and grpc bandwidth metrics
    
        * misc clippy fixes
    
        * cleanup
    
        * remove --daemon as Args::parse() offers external mutations
    
        * remove previously implemented mnemonic variant in favor of client-side mnemonic creation
    
        * remove AccessContextT, convert to wallet_secret, wip WalletApi traits, refactor account args
    
        * code formatting
    
        * separate runtime wallet into multiple modules
    
        * wallet - revert create_accounts to process a single account at a time
    
        * cleanup
    
        * wallet - JSON import and export + preliminary docs
    
        * address - AddressList - fix TryFrom deadlock caused by recursive trait invocation
    
        * wallet - api rustdoc + cleanup, transaction calls
    
        * wallet docs
    
        * change address debug formatting
    
        * adding cli rpc addpeer
    
        * wip - wallet restructuring
    
        * wip - restructure wallet modules
    
        * wip - wallet restructuring - cleanup
    
        * wip - AccountKind refactoring
    
        * wallet - refactoring storage serialization & encryption
    
        * fold in PR kaspanet#349
    
        * wallet framework - misc helper fns and cleanup
    
        * storage unit tests + prv key data module restructuring
    
        * wallet - account factory registrations
    
        * Remove panics caused by sudden loss of connection while submitting transactions.
    
        * cleanup
    
        * cleanup
    
        * cleanup + docs
    
        * docs
    
        * adjust metrics formatting
    
        * cleanup
    
        * bump workflow-rs to 0.10.1
    
        * fix wallet storage unit tests
    
        * fix generator unit tests
    
        * convert missing listener_id panic to error
    
        * docs
    
        * code formatting
    
        * lints
    
        * misc updates following github reviews
    
        * refactor AccountKind to use fixedstr and implement Copy
    
        * refactor AccountKind to use fixedstr (str64) and re-implement Copy, removing clone() where necessary
    
        * change js-bound fn names from *as* to *to* to follow Rust conventions
    
        * replace AssocPrvKeyDataIds iter().any() to contains()
    
        * remove vec![] in MetricsGroup iterator fn; add TODO comment on Metric::group()
    
        * scope magic numbers within their associated structs
    
        * add try_fully_signed() and try_partially_signed() fns to Signed that allow recovery of the tx
    
        * refactor local storage cache to use RwLock instead of a Mutex
    
        * refactor serialization as per github feedback (partial trait impl)
    
        * Optimize AssocPrvKeyDataIds to use Either in the IntoIter impl, removing allocations.
    
        * Refactor to bypass aux buffer creation when storing wallet on native platforms.
    
        * impl custom Debug for storage structs to display data in hex
    
        * adding misc SAFETY comments on unsafe ops
    
        * TODO comments for later SignerT+multisig refactoring
    
        * Change panic!() to unreachable!() to make it clearer that a state should not be reached.
    
        * rename TransactionRecord::unixtime to unixtime_msec
    
        * fix wrong references in comments
    
        * Fix min_cosigner_index handling in multisig fns
    
        * add comments to UtxoContext::insert() error handling
    
        * bind AccountStorable:Storable for AccountStorage, migrate Storable into a separate module, add comments to MAGIC values in some locations
    
        * make framework init functions unsafe
    
        * update workflow-rs to 0.10.2
    
        * fix comments
    
        * fix data cloning when getting collection counts
    
        * adding TODO notes to wasm macros and KAS value decimal parsing
    
        ---------
    
        Co-authored-by: Surinder Singh Matoo <[email protected]>
    
    commit 10d0ebf
    Author: D-Stacks <[email protected]>
    Date:   Tue Dec 26 10:43:59 2023 +0100
    
        make step 3. of linux installation not fail copy and paste (kaspanet#363)
    
        remove the space to escape the newline instead.
    
    * reduce children cache policy
    
    * reduce caches 25%
    
    * increase tx cache
    
    * fix gd alloc and slightly increase other numbers
    
    * fix a cache alloc bug by redesigning the cache and adding a min units option + fix bps constants
    
    * fix simpa short cmd op name colision
    
    * move impls to inner struct
    
    * comments, docs and technical refactoring
    
    * refactor MemSizeEstimator
    
    * refactor bool to MemMode
    
    * memsize docs
    
    * remove unneeded min limits
    
    * comments and name enhancements
    
    * rename `CachePolicy::Units` to `CachePolicy::Count` to avoid confusion with `MemMode`
    
    * use estimated num of unique headers in validate pruning point headers cache
    
    * cache policy builder
    
    * add todos
    
    * median window has different size + comments
    
    * read ghostdag data from compact access if possible
    
    * remove wrong upper bound for reachability sets
    michaelsutton authored and D-Stacks committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    2856df6 View commit details
    Browse the repository at this point in the history
  7. Adds missing logs and other minor convenient additions (kaspanet#362)

    * p2p connmanager - log the connect err
    
    * IBD with headers proof logs
    
    * log if search for missing bodies is taking too long
    
    * Exit early on pruning processor when exit signal is received
    
    * Exit early on pruning point validation when process exit is initiated
    
    * Rename is_process_exiting to is_consensus_exiting
    
    * Change atomic ordering for exit signal to relaxed
    
    * Split logging of performance metrics into better readable lines (#4)
    
    * Split logging of performance metrics
    
    Affects:
    - daemon.rs
    - simpa
    
    * Make daemon.rs log perf metrics if enabled
    
    * Log perf metrics via impl Display
    
    * Remove loglevel default changes
    
    With impl Display, we don't need to change loglevels
    to display perf metrics
    
    * use 2 sub-structs for metrics display
    
    * print precision + relocate fd
    
    * use RAM (over RES/RSS) + optimize and fix edge case in `to_human_readable`
    
    ---------
    
    Co-authored-by: coderofstuff <[email protected]>
    2 people authored and D-Stacks committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    1305638 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    d0eec52 View commit details
    Browse the repository at this point in the history
  9. Fix Rust 1.75 warnings (kaspanet#372)

    * 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
    michaelsutton authored and D-Stacks committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    2082253 View commit details
    Browse the repository at this point in the history
  10. Optimized Rothschild performance on high TPS (kaspanet#371)

    * Add rothschild tx benchmark
    
    So we can compare the performance difference between serial generation and parallel generation
    
    * Optimize high TPS generation
    
    1. Parallelize TX generation - hashing is a bottleneck so generating TXs seriallize will slow
    the entire loop down significantly
    2. Optimize UTXO selection - previously it was running at O(UTXO) due to filtering logic
    
    * Move criterion to dev-dependency
    
    * Some more rothschild improvements
    
    * Fix from_fmillis typo
    
    * Add flags
    
    * Parallelize txid hashing in simpa
    
    * Moving ClientPool to grpc/client
    
    * Fix rothschild sending less than 100 txs
    
    Due to integer divide, when tps is < 100, we end up creating no tx
    
    * Remove obsolete temp init comment
    
    ---------
    
    Co-authored-by: Ori Newman <[email protected]>
    2 people authored and D-Stacks committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    6d93644 View commit details
    Browse the repository at this point in the history
  11. Orphans improvements part 2 (kaspanet#373)

    * track avg mergesets
    
    * unorphan ancestors if they exist w/o roots
    
    * refactor processing batch object + test fix
    
    * use warn
    
    * improve log
    
    * comment
    
    * orphan eviction policy
    
    * oops: use the correct len
    
    * review comments
    michaelsutton authored and D-Stacks committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    8cd1f0c View commit details
    Browse the repository at this point in the history
  12. Add a RAM usage scale factor configurable from the command line (kasp…

    …anet#374)
    
    * track block txs by approx bytes
    
    * 0.5 scale factor on byte budgets
    
    * fix obsolete comment (unrelated to this pr)
    
    * reduce orphan block flood
    
    * use tracked bytes mode for acceptance data cache
    
    * impl `estimate_mem_units` only when actually used
    
    * propagate ram scale arg from the command line
    
    * add to simpa as well
    
    * make it clear that mass is an average
    
    * fix cpu usage stat
    michaelsutton authored and D-Stacks committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    b4e9ac0 View commit details
    Browse the repository at this point in the history
  13. check_subscription_before_vccn (kaspanet#375)

    * check_subscription_before_vccn
    
    * simplfy to root notifer only
    
    * simplify one last time. no need to be in notify trait at all.
    D-Stacks committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    e0da96e View commit details
    Browse the repository at this point in the history
  14. Add a pruning exit point on advance_pruning_utxoset (kaspanet#378)

    * Add a pruning exit point on advance_pruning_utxoset
    
    * Fix log
    someone235 authored and D-Stacks committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    36b5149 View commit details
    Browse the repository at this point in the history
  15. Add timestamps to IBD progress (kaspanet#376)

    * Add timestamps to IBD progress
    
    * Add timezone
    
    * Address review comments
    
    * Change error message
    someone235 authored and D-Stacks committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    f745255 View commit details
    Browse the repository at this point in the history
  16. Implement basic tx throttling on high P2P load (kaspanet#377)

    * 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 <[email protected]>
    Co-authored-by: Michael Sutton <[email protected]>
    Co-authored-by: Michael Sutton <[email protected]>
    4 people authored and D-Stacks committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    105fa53 View commit details
    Browse the repository at this point in the history
  17. Implement Storage Mass KIP and apply to TN11 (kaspanet#379)

    * 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 <[email protected]>
    2 people authored and D-Stacks committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    7e94778 View commit details
    Browse the repository at this point in the history
  18. Add curl and git as general linux build prerequisites (kaspanet#370)

    Co-authored-by: aspect <[email protected]>
    Co-authored-by: Ori Newman <[email protected]>
    3 people authored and D-Stacks committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    f637952 View commit details
    Browse the repository at this point in the history
  19. Update testnet11.md (kaspanet#380)

    * Update testnet11.md
    
    * Another update
    
    * Some fixes
    
    * Some fixes
    
    * Some fixes
    someone235 authored and D-Stacks committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    76dfd49 View commit details
    Browse the repository at this point in the history
  20. Update testnet11.md (kaspanet#381)

    Removed "first experiment" section
    ShaiW authored and D-Stacks committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    fae2958 View commit details
    Browse the repository at this point in the history
  21. Fix timestamp deviation tolerance for 10 bps (kaspanet#383)

    * fix timestamp deviation tolerance for 10 bps (note that the change does not affect 1bps -> target time =1000)
    
    * bump version
    michaelsutton authored and D-Stacks committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    d3302ef View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    6b42d98 View commit details
    Browse the repository at this point in the history
  23. Implement "nogrpc" flag and change default rpc listen ip (kaspanet#387)

    * Add nogrpc flag
    
    When set, the gRPC service is not initialized
    
    * Set default grpc listen to 127.0.0.1
    
    * Preserve rpc registration order
    coderofstuff authored and D-Stacks committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    333f939 View commit details
    Browse the repository at this point in the history
  24. Convert settings to global consts and fix TN11 conbase maturity times (

    …kaspanet#394)
    
    * migrate settings to network params containing consts
    
    * fix unit tests
    aspect authored and D-Stacks committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    c176177 View commit details
    Browse the repository at this point in the history
  25. Fix an overflow during balance calculation when waiting for compound …

    …transaction acceptance. (kaspanet#393)
    
    * Fix balance calculation overflow when waiting for compound transaction acceptance.
    
    * account for fees in compound transactions
    aspect authored and D-Stacks committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    0f95a66 View commit details
    Browse the repository at this point in the history
  26. Update port handling in wRPC URL parser (kaspanet#391)

    * cleanup
    
    * do not inject port based on network type in wRPC URL when using SSL or have path
    
    * update URL port injection logic
    aspect authored and D-Stacks committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    72e5229 View commit details
    Browse the repository at this point in the history
  27. Remove mimalloc override feature for macos (kaspanet#388)

    * Remove mimalloc "override" feature for macos only
    
    * Move mimalloc dependency fully in utils/alloc
    coderofstuff authored and D-Stacks committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    c5364b0 View commit details
    Browse the repository at this point in the history
  28. Refactor wallet event handling (kaspanet#395)

    * Refactor sync event emission order and UtxoProcessor cleanup. Remove legacy RPC support.
    
    * Refactor sync event emission order and UtxoProcessor cleanup. Remove legacy RPC support.
    
    * update comments
    
    * externalize wallet.reload() to the wallet API as wallet_reload_call()
    aspect authored and D-Stacks committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    98e7302 View commit details
    Browse the repository at this point in the history
  29. Update workflow-rs to 0.10.3 and fix JS data encryption bindings (kas…

    …panet#396)
    
    * Update workflow-rs to 0.10.3
    
    * add encryption example
    
    * fix decrypt_xchacha20poly1305 JS bindings
    
    ---------
    
    Co-authored-by: Michael Sutton <[email protected]>
    2 people authored and D-Stacks committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    db3ea5c View commit details
    Browse the repository at this point in the history
  30. TX Throttled Relay refactors (kaspanet#389)

    * When tx throttled, preferrentially relay to outbound peers
    
    * Convert check tx throttling to be easily testable
    
    * Fix TPS logic; Refactor rpc tx counter snapshot
    
    * Optimize hub peer selection logic
    
    Co-authored-by: Michael Sutton <[email protected]>
    
    * Fix rpc -> p2p tx throttling typo
    
    * Further optimize hub peer selection to avoid alloc
    
    Co-authored-by: Michael Sutton <[email protected]>
    
    ---------
    
    Co-authored-by: Michael Sutton <[email protected]>
    2 people authored and D-Stacks committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    2430946 View commit details
    Browse the repository at this point in the history
  31. Feat/indexed db transaction store (kaspanet#392)

    * Add indexed db dependencies
    
    * Implementation progress for load_single
    
    * progress idb transaction store
    
    * use `Arc<Inner>` pattern
    
    * implementing try from jsvalue for types to be stored in idb
    
    * try from js value for utxo record
    
    * remove manual parsing and use borsh data to deserialize
    
    * indexdb progress
    
    * indexdb store and load multiple
    
    * indexdb remove, store tx note, store tx metadata
    
    * Add encryptable to transaction record for jsvalue
    
    * Remove logs
    
    * unnecessary import removed
    
    * Move from/to js value to idb implementation itself
    
    * fix some of the clippy warnings
    
    * fix all clippy warnings
    
    ---------
    
    Co-authored-by: aspect <[email protected]>
    2 people authored and D-Stacks committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    863afee View commit details
    Browse the repository at this point in the history
  32. fix kaspanet#330 (kaspanet#397)

    Co-authored-by: aspect <[email protected]>
    2 people authored and D-Stacks committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    f204e0a View commit details
    Browse the repository at this point in the history
  33. Add "last known good" cache for virtual state (kaspanet#399)

    * make a better estimation of header count (during IBD this will now count for the headers phase)
    
    * rpc service responsiveness: use `transaction_count_sample` for inferring mempool size
    
    * use counters snapshot
    
    * introduce last known good virtual state cache
    
    * move processing counters to consensus core and remove rpc service crate dep on consensus
    
    * extract consensus stats to a single call
    
    * turn some consensus session calls into non-async + fix get_block_dag_info_call
    
    * use saturating_sub instead of checked_sub + unwrap_or_default
    
    * use join over all async calls
    
    ---------
    
    Co-authored-by: coderofstuff <[email protected]>
    
    ---------
    
    Co-authored-by: coderofstuff <[email protected]>
    2 people authored and D-Stacks committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    a7264d3 View commit details
    Browse the repository at this point in the history
  34. Configuration menu
    Copy the full SHA
    4b46db4 View commit details
    Browse the repository at this point in the history
  35. Cargo.toml update for 0.13.4 release (kaspanet#404)

    * bump to 0.13.4
    
    * bump to 0.13.4
    
    * fix incorrect version due to a toolchain issue
    aspect authored and D-Stacks committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    bba9a2c View commit details
    Browse the repository at this point in the history
  36. Wallet subsystem transaction generator updates (kaspanet#400)

    * replace NetworkType with NetworkId in the tx generator and related APIs
    
    * fix url path rendering in format_url
    
    * Improve mass related errors
    
    * refactor fee handling
    
    * renaming fee variants
    
    * mass combination strategy
    
    * wip - storage mass
    
    * additional unit tests and limit checks
    
    * Introduce per-network configurable additional compound transaction compute mass (currently set to 100 on tn10 and tn11)
    
    * expand sanity checks to handle 0 value outputs
    
    * documentation updates
    
    * code formatting
    
    * Set new input sequence to 0
    
    * change aggregate input value check to use saturating_sub() to prevent potential overflows (re github feedback)
    
    * change storage mass fee calc to return u64::MAX if the resulting mass is None (re GitHub feedback)
    aspect authored and D-Stacks committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    7fa6bb3 View commit details
    Browse the repository at this point in the history
  37. Misc rustdoc updates (kaspanet#405)

    aspect authored and D-Stacks committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    860feba View commit details
    Browse the repository at this point in the history
  38. Fix yield duration of readers-preferred rwlock (kaspanet#406)

    * increase semaphore yield duration to 30 micros + tighten the test (so that w/o this fix it would fail certianly)
    
    * allow the test 2 read capture attempts + add macos experiment results
    michaelsutton authored and D-Stacks committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    77e94a4 View commit details
    Browse the repository at this point in the history
  39. Configuration menu
    Copy the full SHA
    64a033e View commit details
    Browse the repository at this point in the history