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

Release Candidate v2023.3.0/v2023.3.1 - HIP30 Hard Fork #4500

Merged
merged 66 commits into from
Oct 18, 2023
Merged

Release Candidate v2023.3.0/v2023.3.1 - HIP30 Hard Fork #4500

merged 66 commits into from
Oct 18, 2023

Commits on Aug 22, 2023

  1. Fixed debug run for mac. (#4484)

    * Fix debug run for mac.
    Frozen committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    9f1576f View commit details
    Browse the repository at this point in the history

Commits on Aug 30, 2023

  1. Next validator in view change. (#4492)

    * NthNextValidatorHmy
    
    * Test.
    
    * Fixed func usage.
    
    * Additional checks.
    Frozen committed Aug 30, 2023
    Configuration menu
    Copy the full SHA
    8c20652 View commit details
    Browse the repository at this point in the history
  2. HIP-30 Boilerplate (#4495)

    * HIP-30: sharding configuration boilerplate
    
    * update comments
    
    * goimports
    
    * update test
    
    * update comment
    
    ---------
    
    Co-authored-by: Nita Neou (Soph) <soph@harmony.one>
    MaxMustermann2 and sophoah committed Aug 30, 2023
    Configuration menu
    Copy the full SHA
    083eef4 View commit details
    Browse the repository at this point in the history

Commits on Sep 1, 2023

  1. HIP-30: minimum validator commission of 7% (#4496)

    * HIP-30: sharding configuration boilerplate
    
    * update comments
    
    * goimports
    
    * HIP-30: minimum validator commission of 7%
    
    Based on #4495, which must be merged before this PR. This PR should be
    rebased with dev after #4495 is merged to retain atomicity of changes by
    pull request.
    
    * goimports
    
    * update test
    
    * update test
    
    ---------
    
    Co-authored-by: Casey Gardiner <117784577+ONECasey@users.noreply.github.com>
    MaxMustermann2 and ONECasey committed Sep 1, 2023
    Configuration menu
    Copy the full SHA
    62feec9 View commit details
    Browse the repository at this point in the history

Commits on Sep 2, 2023

  1. HIP-30: Emission split (#4497)

    * HIP-30: sharding configuration boilerplate
    
    * update comments
    
    * goimports
    
    * HIP-30: minimum validator commission of 7%
    
    Based on #4495, which must be merged before this PR. This PR should be
    rebased with dev after #4495 is merged to retain atomicity of changes by
    pull request.
    
    * goimports
    
    * HIP-30: Emission split implementation
    
    Note that the allocated split of the emission goes directly to the
    recipient (and not via the Reward). This is because rewards are indexed
    by validator and not by delegator, and the recipient may/may not have
    any delegations which we can reward. Even if one was guaranteed to
    exist, it would mess up the math of the validator.
    
    * set up mainnet recipient of emission split
    
    * HIP-30: Emission split addresses for non mainnet
    
    * update test
    
    * update test
    
    * Update mainnet.go
    
    ---------
    
    Co-authored-by: Casey Gardiner <117784577+ONECasey@users.noreply.github.com>
    MaxMustermann2 and ONECasey committed Sep 2, 2023
    Configuration menu
    Copy the full SHA
    0c981ff View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2023

  1. HIP-30: Set up pre-image generation, recording, export and import (#4494

    )
    
    * flags: set up preimage flags
    
    * hip30: set up preimage import, export, api
    
    * save pre-images by default
    
    * add pre images api
    
    * goimports
    
    * commit rpc preimages file
    
    * preimages: re-generate them using CLI
    
    * add metrics and numbers for pre-images
    
    * automate generation after import
    
    * move from rpc to core
    
    * goimports
    
    * add back core/preimages.go file
    
    * goimports
    
    * goimports
    
    * export prometheus metric when no error importing preimage
    
    * add preimages flags to rootflags
    
    ---------
    
    Co-authored-by: Nita Neou (Soph) <soph@harmony.one>
    MaxMustermann2 and sophoah committed Sep 11, 2023
    Configuration menu
    Copy the full SHA
    14eba6e View commit details
    Browse the repository at this point in the history
  2. HIP-30: Shard reduction (#4498)

    * HIP-30: sharding configuration boilerplate
    
    * update comments
    
    * goimports
    
    * HIP-30: minimum validator commission of 7%
    
    Based on #4495, which must be merged before this PR. This PR should be
    rebased with dev after #4495 is merged to retain atomicity of changes by
    pull request.
    
    * goimports
    
    * HIP-30: Emission split implementation
    
    Note that the allocated split of the emission goes directly to the
    recipient (and not via the Reward). This is because rewards are indexed
    by validator and not by delegator, and the recipient may/may not have
    any delegations which we can reward. Even if one was guaranteed to
    exist, it would mess up the math of the validator.
    
    * set up mainnet recipient of emission split
    
    * HIP-30: Emission split addresses for non mainnet
    
    * HIP-30: deactivate shard 2 and 3 validators
    
    * update test
    
    * update test
    
    * shard reduction: update block reward
    
    ---------
    
    Co-authored-by: Casey Gardiner <117784577+ONECasey@users.noreply.github.com>
    MaxMustermann2 and ONECasey committed Sep 11, 2023
    Configuration menu
    Copy the full SHA
    115e434 View commit details
    Browse the repository at this point in the history

Commits on Sep 18, 2023

  1. Fix for index. (#4504)

    Frozen committed Sep 18, 2023
    Configuration menu
    Copy the full SHA
    b798df0 View commit details
    Browse the repository at this point in the history
  2. Small improvements. (#4477)

    Frozen committed Sep 18, 2023
    Configuration menu
    Copy the full SHA
    6d65d11 View commit details
    Browse the repository at this point in the history
  3. HIP-30: Balance migration (#4499)

    * flags: set up preimage flags
    
    * hip30: set up preimage import, export, api
    
    * save pre-images by default
    
    * add pre images api
    
    * goimports
    
    * commit rpc preimages file
    
    * preimages: re-generate them using CLI
    
    * add metrics and numbers for pre-images
    
    * automate generation after import
    
    * move from rpc to core
    
    * goimports
    
    * add back core/preimages.go file
    
    * HIP-30: sharding configuration boilerplate
    
    * update comments
    
    * goimports
    
    * HIP-30: minimum validator commission of 7%
    
    Based on #4495, which must be merged before this PR. This PR should be
    rebased with dev after #4495 is merged to retain atomicity of changes by
    pull request.
    
    * goimports
    
    * HIP-30: Emission split implementation
    
    Note that the allocated split of the emission goes directly to the
    recipient (and not via the Reward). This is because rewards are indexed
    by validator and not by delegator, and the recipient may/may not have
    any delegations which we can reward. Even if one was guaranteed to
    exist, it would mess up the math of the validator.
    
    * set up mainnet recipient of emission split
    
    * HIP-30: Emission split addresses for non mainnet
    
    * HIP-30: deactivate shard 2 and 3 validators
    
    * goimports
    
    * update test
    
    * goimports
    
    * migrate balance uring epoch T - 1
    
    highly untested code. also missing is the ability to generate a
    pre-migration report for future verification.
    
    * update test
    
    * export prometheus metric when no error importing preimage
    
    * add comment
    
    * test account migration in localnet
    
    * add preimages flags to rootflags
    
    * enable preimages on the whitelist
    
    * add the generate method
    
    * fix cropping log
    
    * fix cropping log
    
    * cropping startpoint when bigger than endpoint
    
    * add support for the rpcblocknumer type
    
    * enable import api
    
    * use earlies block
    
    * debug logs
    
    * debug logs
    
    * debug logs
    
    * debug logs
    
    * fix error catching
    
    * fix error catching
    
    * make end optional for the comand line
    
    * fix cropping logic
    
    * improve error when apply message fails
    
    * add balance on the error
    
    * fix importing
    
    * remove unused imports
    
    ---------
    
    Co-authored-by: Nita Neou (Soph) <soph@harmony.one>
    Co-authored-by: Soph <35721420+sophoah@users.noreply.github.com>
    Co-authored-by: Diego Nava <diego.nava77@hotmail.com>
    Co-authored-by: Diego Nava <8563843+diego1q2w@users.noreply.github.com>
    5 people committed Sep 18, 2023
    Configuration menu
    Copy the full SHA
    688b933 View commit details
    Browse the repository at this point in the history
  4. Hip30 balance migration with fix. (#4502)

    * flags: set up preimage flags
    
    * hip30: set up preimage import, export, api
    
    * preimages: re-generate them using CLI
    
    * move from rpc to core
    
    * migrate balance uring epoch T - 1
    
    highly untested code. also missing is the ability to generate a
    pre-migration report for future verification.
    
    * test account migration in localnet
    
    * enable preimages on the whitelist
    
    * add the generate method
    
    * fix cropping log
    
    * fix cropping log
    
    * cropping startpoint when bigger than endpoint
    
    * add support for the rpcblocknumer type
    
    * enable import api
    
    * Fixed stuck.
    
    * Additional logs.
    
    * Cleanup.
    
    * Rebased on harmony-one:hip30/testing.
    
    * Removed code duplicate.
    
    * Fixed stuck.
    
    * IsOneEpochBeforeHIP30 for only 1 epoch.
    
    ---------
    
    Co-authored-by: MaxMustermann2 <82761650+MaxMustermann2@users.noreply.github.com>
    Co-authored-by: Nita Neou (Soph) <soph@harmony.one>
    Co-authored-by: Diego Nava <diego.nava77@hotmail.com>
    Co-authored-by: Diego Nava <8563843+diego1q2w@users.noreply.github.com>
    5 people committed Sep 18, 2023
    Configuration menu
    Copy the full SHA
    c2bf8de View commit details
    Browse the repository at this point in the history

Commits on Sep 19, 2023

  1. remove double import

    diego1q2w committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    343058a View commit details
    Browse the repository at this point in the history
  2. rename variable

    diego1q2w committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    445d8e3 View commit details
    Browse the repository at this point in the history
  3. remove unused fmt

    diego1q2w committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    2890d84 View commit details
    Browse the repository at this point in the history
  4. Fixed imports. (#4507)

    Frozen committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    29d46b9 View commit details
    Browse the repository at this point in the history
  5. Block gas 30m. (#4501)

    * Fixed gas 30m.
    
    * BlockGas30M renamed to BlockGas30MEpoch.
    
    * Removed redundant code.
    Frozen committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    74ede04 View commit details
    Browse the repository at this point in the history
  6. Hip30 : localnet account migration fix (#4508)

    * flags: set up preimage flags
    
    * hip30: set up preimage import, export, api
    
    * save pre-images by default
    
    * add pre images api
    
    * goimports
    
    * commit rpc preimages file
    
    * preimages: re-generate them using CLI
    
    * add metrics and numbers for pre-images
    
    * automate generation after import
    
    * move from rpc to core
    
    * goimports
    
    * add back core/preimages.go file
    
    * HIP-30: sharding configuration boilerplate
    
    * update comments
    
    * goimports
    
    * HIP-30: minimum validator commission of 7%
    
    Based on #4495, which must be merged before this PR. This PR should be
    rebased with dev after #4495 is merged to retain atomicity of changes by
    pull request.
    
    * goimports
    
    * HIP-30: Emission split implementation
    
    Note that the allocated split of the emission goes directly to the
    recipient (and not via the Reward). This is because rewards are indexed
    by validator and not by delegator, and the recipient may/may not have
    any delegations which we can reward. Even if one was guaranteed to
    exist, it would mess up the math of the validator.
    
    * set up mainnet recipient of emission split
    
    * HIP-30: Emission split addresses for non mainnet
    
    * HIP-30: deactivate shard 2 and 3 validators
    
    * goimports
    
    * update test
    
    * goimports
    
    * migrate balance uring epoch T - 1
    
    highly untested code. also missing is the ability to generate a
    pre-migration report for future verification.
    
    * update test
    
    * export prometheus metric when no error importing preimage
    
    * add comment
    
    * test account migration in localnet
    
    * add preimages flags to rootflags
    
    * enable preimages on the whitelist
    
    * add the generate method
    
    * fix cropping log
    
    * fix cropping log
    
    * cropping startpoint when bigger than endpoint
    
    * add support for the rpcblocknumer type
    
    * enable import api
    
    * use earlies block
    
    * debug logs
    
    * debug logs
    
    * debug logs
    
    * debug logs
    
    * fix error catching
    
    * fix error catching
    
    * make end optional for the comand line
    
    * fix cropping logic
    
    * improve error when apply message fails
    
    * add balance on the error
    
    * fix importing
    
    * remove unused imports
    
    * create preimage for genesis block
    
    * fix consensus with No Migration Possible
    
    * use correct header for migration
    
    * process all tx in all block for non shard 0
    
    ---------
    
    Co-authored-by: MaxMustermann2 <82761650+MaxMustermann2@users.noreply.github.com>
    Co-authored-by: Diego Nava <diego.nava77@hotmail.com>
    Co-authored-by: Diego Nava <8563843+diego1q2w@users.noreply.github.com>
    4 people committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    ed08ff3 View commit details
    Browse the repository at this point in the history

Commits on Sep 21, 2023

  1. Configuration menu
    Copy the full SHA
    9a5900d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0130436 View commit details
    Browse the repository at this point in the history
  3. roll back changes

    diego1q2w committed Sep 21, 2023
    Configuration menu
    Copy the full SHA
    310b4cd View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    924d133 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6428430 View commit details
    Browse the repository at this point in the history
  6. add testing fmt

    diego1q2w committed Sep 21, 2023
    Configuration menu
    Copy the full SHA
    aa0ad97 View commit details
    Browse the repository at this point in the history

Commits on Sep 22, 2023

  1. Configuration menu
    Copy the full SHA
    018c336 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    51ed6b6 View commit details
    Browse the repository at this point in the history
  3. merge fixes

    diego1q2w committed Sep 22, 2023
    Configuration menu
    Copy the full SHA
    68cb005 View commit details
    Browse the repository at this point in the history
  4. pass the correct config

    diego1q2w committed Sep 22, 2023
    Configuration menu
    Copy the full SHA
    ff86c57 View commit details
    Browse the repository at this point in the history
  5. pass the correct config

    diego1q2w committed Sep 22, 2023
    Configuration menu
    Copy the full SHA
    1eb1cc4 View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2023

  1. Fixes.

    Frozen committed Sep 23, 2023
    1 Configuration menu
    Copy the full SHA
    ccc9252 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    cdcae9a View commit details
    Browse the repository at this point in the history

Commits on Sep 25, 2023

  1. Configuration menu
    Copy the full SHA
    9586553 View commit details
    Browse the repository at this point in the history
  2. write preimages on process

    diego1q2w committed Sep 25, 2023
    Configuration menu
    Copy the full SHA
    2706451 View commit details
    Browse the repository at this point in the history
  3. commit preimages

    diego1q2w committed Sep 25, 2023
    Configuration menu
    Copy the full SHA
    9c84d1c View commit details
    Browse the repository at this point in the history
  4. commit preimages

    diego1q2w committed Sep 25, 2023
    Configuration menu
    Copy the full SHA
    fcbe6c9 View commit details
    Browse the repository at this point in the history

Commits on Sep 26, 2023

  1. Merge pull request #4510 from Frozen/hip30/testing-minor-fixes

    Hip30/testing minor fixes.
    Frozen committed Sep 26, 2023
    Configuration menu
    Copy the full SHA
    e205242 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8b6df6b View commit details
    Browse the repository at this point in the history

Commits on Sep 27, 2023

  1. send metrics on node start

    diego1q2w committed Sep 27, 2023
    Configuration menu
    Copy the full SHA
    8824e42 View commit details
    Browse the repository at this point in the history
  2. send the verified preimages

    diego1q2w committed Sep 27, 2023
    Configuration menu
    Copy the full SHA
    0fadfe3 View commit details
    Browse the repository at this point in the history
  3. correct the starting block

    diego1q2w committed Sep 27, 2023
    Configuration menu
    Copy the full SHA
    6b476a1 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8335523 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    83d5104 View commit details
    Browse the repository at this point in the history
  6. add shard label

    diego1q2w committed Sep 27, 2023
    Configuration menu
    Copy the full SHA
    5e1f482 View commit details
    Browse the repository at this point in the history
  7. minnor fixes

    diego1q2w committed Sep 27, 2023
    Configuration menu
    Copy the full SHA
    215bb10 View commit details
    Browse the repository at this point in the history

Commits on Sep 28, 2023

  1. Merge pull request #4513 from harmony-one/hip30/add-prometheus-metrics

    send metrics on node start
    diego1q2w committed Sep 28, 2023
    Configuration menu
    Copy the full SHA
    a9077c9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7111b92 View commit details
    Browse the repository at this point in the history
  3. 1) Removed unused worker (#4512)

    2) Proper error checking
    3) Tests for gas 30m
    Frozen committed Sep 28, 2023
    Configuration menu
    Copy the full SHA
    d8f1225 View commit details
    Browse the repository at this point in the history

Commits on Sep 29, 2023

  1. Improvements of streamsync to deploy on mainnet (#4493)

    * add faultRecoveryThreshold to reset stream failures
    
    * increase MaxStreamFailures to let stream be longer in the list
    
    * set Concurrency to 2 for devnet to be same as MinStreams, otherwise it will rewrite MinStreams
    
    * stream sync loop checks for ErrNotEnoughStreamsand waits for enough streams in case there are not enough connected streams in list
    
    * fix fault recovery issue
    
    * improve checkPrerequisites to be able to continue with minimum streams
    
    * refactor fixValues function, put priority on MinStreams rather than Concurrency
    
    * drop remote peer if sending empty blocks array
    
    * goimports to fix build issue
    
    * fix getReceipts array assignments
    
    * fix getReceipts and add tests for it
    GheisMohammadi committed Sep 29, 2023
    Configuration menu
    Copy the full SHA
    fa99cd1 View commit details
    Browse the repository at this point in the history

Commits on Oct 3, 2023

  1. Configuration menu
    Copy the full SHA
    0252bd7 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #4518 from harmony-one/fix/duplicate_def

    fix duplicate function def
    adsorptionenthalpy committed Oct 3, 2023
    Configuration menu
    Copy the full SHA
    532e28f View commit details
    Browse the repository at this point in the history

Commits on Oct 5, 2023

  1. reset devnet and set 30M epoch for all network except mainnet/testnet (

    …#4517)
    
    * enable on devnet hip28 and hip30 together at hip30
    * enable 30M epoch for all except mainnet/testnet, update devnet for restart
    * remove unused var
    * update partner/devnet feature activation
    * Remove old devnet/partner instance config
    sophoah committed Oct 5, 2023
    Configuration menu
    Copy the full SHA
    171e612 View commit details
    Browse the repository at this point in the history

Commits on Oct 6, 2023

  1. Configuration menu
    Copy the full SHA
    abf9dba View commit details
    Browse the repository at this point in the history
  2. add GetNodeData tests for stream client, increase nodes and receipts …

    …cap (#4519)
    
    * add tests for GetNodeData in stream protocol
    
    * increase client cap for nodes and receipts requests
    GheisMohammadi committed Oct 6, 2023
    Configuration menu
    Copy the full SHA
    ce0f483 View commit details
    Browse the repository at this point in the history

Commits on Oct 9, 2023

  1. Merge pull request #4503 from harmony-one/hip30/testing

    HIP-30 Shard Reduction Process
    sophoah committed Oct 9, 2023
    Configuration menu
    Copy the full SHA
    2378b2d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3f6a0db View commit details
    Browse the repository at this point in the history

Commits on Oct 10, 2023

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

Commits on Oct 11, 2023

  1. enable hip30 epoch for testnet (#4526)

    * enable hip30 epoch for testnet
    * fix date comment
    * set blockgas30M epoch
    diego1q2w committed Oct 11, 2023
    Configuration menu
    Copy the full SHA
    d2743d9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    88e033a View commit details
    Browse the repository at this point in the history

Commits on Oct 12, 2023

  1. fix preimage import bugs (#4529)

    * fix preimage import bugs
    * fix typo
    diego1q2w committed Oct 12, 2023
    Configuration menu
    Copy the full SHA
    b143085 View commit details
    Browse the repository at this point in the history

Commits on Oct 15, 2023

  1. Fixed lru cache size. (#4535)

    Frozen committed Oct 15, 2023
    Configuration menu
    Copy the full SHA
    1adea06 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ce2c057 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ae578ba View commit details
    Browse the repository at this point in the history

Commits on Oct 16, 2023

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

Commits on Oct 17, 2023

  1. Revert improvements. (#4520)

    Frozen committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    cf5dd8b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0d402e4 View commit details
    Browse the repository at this point in the history
  3. Flush data. (#4536)

    Frozen committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    9f5768a View commit details
    Browse the repository at this point in the history
  4. Rotation fix and update. (#4516)

    * fixed memory
    
    * error on existed block
    
    * Fixed config to pass tests.
    
    * Cleanup
    
    * Cleanup
    
    * Condition to pass tests.
    Frozen committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    1633656 View commit details
    Browse the repository at this point in the history