Conversation
|
Seems you are using me but didn't get OPENAI_API_KEY seted in Variables for this repo. you could follow readme for more information |
There was a problem hiding this comment.
Missing changelog in module: build/
Missing changelog in module: persistence/
Missing changelog in module: runtime/
Missing changelog in module: shared/
Missing changelog in module: utility/
Changelog verification failed. See error messages for more detail.
Please update the relevant CHANGELOG.md files and ensure they follow the correct format.
|
AI-Generated Summary: This pull request primarily focuses on updating the handling of pool addresses throughout the codebase. Changes have been made to replace usage of friendly names with hexadecimal addresses, which include modifications to various functions, error messages, test files, configurations, and more. Specific files affected include |
|
Seems you are using me but didn't get OPENAI_API_KEY seted in Variables for this repo. you could follow readme for more information |
The check succeeded, dismissing the review comment.
|
AI-Generated Summary: This pull request primarily focuses on refactoring pool address handling across various files, transitioning from using friendly names (strings) to byte arrays (hexadecimal format) for better organization and consistency. Key changes include updating function signatures and implementations to change the input parameter from |
dylanlott
left a comment
There was a problem hiding this comment.
LGTM. Passed tests locally and produced blocks in Auto & Manual mode. ✅
| AddPoolAmount(address []byte, amount string) error | ||
| SubtractPoolAmount(address []byte, amount string) error | ||
| SetPoolAmount(address []byte, amount string) error | ||
| InsertPool(address []byte, amount string) error |
There was a problem hiding this comment.
[]byte is definitely an improvement here 👍
| uow := newTestingUtilityUnitOfWork(t, 0) | ||
| testPoolName := "TEST_POOL" | ||
|
|
||
| _, _, poolAddr := keygen.GetInstance().Next() |
There was a problem hiding this comment.
Man, whoever designed this interface was thinking ahead
| @@ -1,18 +1,35 @@ | |||
| package types | |||
There was a problem hiding this comment.
Was doing something related in v0 this week: https://github.com/pokt-network/pocket-core/pull/1540/files
Co-authored-by: Daniel Olshansky <[email protected]>
|
Seems you are using me but didn't get OPENAI_API_KEY seted in Variables for this repo. you could follow readme for more information |
|
AI-Generated Summary: This pull request introduces changes focused on refactoring how pools are handled within the code, switching from friendly names to addresses for pool identification. The changes include updating function signatures for pool operations, modifying test cases to use dynamically generated pool addresses, and updating pool addresses in configuration files. Additionally, a new test file, |
|
Seems you are using me but didn't get OPENAI_API_KEY seted in Variables for this repo. you could follow readme for more information |
|
AI-Generated Summary: This pull request includes a variety of changes primarily focused on modifying the way pool addresses are handled, shifting from human-readable string representations to hexadecimal representations. Several methods in different interfaces, such as Additionally, tests and error messages have been updated accordingly. A new test file, Changelogs have also been updated noting various changes, such as replacing string pool names with their hexadecimal address format, incorporating the |
…its_and_bobs1 Signed-off-by: Alessandro De Blasis <[email protected]>
|
Seems you are using me but didn't get OPENAI_API_KEY seted in Variables for this repo. you could follow readme for more information |
|
|
||
| ## [0.0.0.43] - 2023-04-06 | ||
|
|
||
| - Added `SAVEPOINTS_ROLLBACKS.md` design document |
There was a problem hiding this comment.
The code patch you provided includes changes to a project's changelog, mentioning the updates as version 0.0.0.44 on 2023-04-06. Three changes are mentioned:
-
Fixed flag/params keying: This fix implies that there was a problem with how flags or parameters were being handled.
-
Updated pools read/write functions to use a real address, not a string that is named address and obviously is not hexadecimal: This change indicates an improvement in the way addresses are handled. It seems that previously, a string was being used rather than a proper hexadecimal address.
-
Updated tests: This suggests that the tests were updated, presumably to ensure the correctness of the implemented fixes.
While I can't provide specific bug risks or suggestions for improvement without seeing the actual code changes, it appears to be a positive update. Make sure the logic behind these changes is sound, and double-check to confirm that the updated tests effectively cover the fixed issues.
|
AI-Generated Summary: This pull request introduces several changes to the codebase, mainly focused on the persistence module, to replace the |
* pokt/main: [Utility][RPC][CLI] Querying governance parameters (Issue #619) (#622) [Persistence][Utility] Separate all CreateAndApply functions into more functional components - Issue #508 (#652) [Persistence][Utility] Pools Address hack removal + state accessor fix for params and flags (#654) [PERSISTENCE] SavePoints and Rollbacks design document (Issue #493) (#533) Update reviewpad.yml Added ChatGPT-CodeReview workflow (#649) Update reviewpad.yml Added default reviewpad.yml file (#648) [DevNet] tweaks for remote environments (#601) [Documentation] Swap validator and non-validator triggers when finished synching (#646) [Consensus] Configuration entry point state sync (#528)
…p-modules * pokt/main: [Utility][RPC][CLI] Querying governance parameters (Issue pokt-network#619) (pokt-network#622) [Persistence][Utility] Separate all CreateAndApply functions into more functional components - Issue pokt-network#508 (pokt-network#652) [Persistence][Utility] Pools Address hack removal + state accessor fix for params and flags (pokt-network#654) [PERSISTENCE] SavePoints and Rollbacks design document (Issue pokt-network#493) (pokt-network#533) Update reviewpad.yml Added ChatGPT-CodeReview workflow (pokt-network#649) Update reviewpad.yml Added default reviewpad.yml file (pokt-network#648) [DevNet] tweaks for remote environments (pokt-network#601) [Documentation] Swap validator and non-validator triggers when finished synching (pokt-network#646) [Consensus] Configuration entry point state sync (pokt-network#528)
…p-modules * pokt/main: update pocket repo read.me (#667) Update reviewpad.yml [KEYBASE] Add improve comment on keybase config (#665) [E2E] Chore: Doc updates (#663) [E2E] Adds staking, unstaking, and sending tests (#653) [Utility][RPC][CLI] Querying governance parameters (Issue #619) (#622) [Persistence][Utility] Separate all CreateAndApply functions into more functional components - Issue #508 (#652) [Persistence][Utility] Pools Address hack removal + state accessor fix for params and flags (#654) [PERSISTENCE] SavePoints and Rollbacks design document (Issue #493) (#533) Update reviewpad.yml Added ChatGPT-CodeReview workflow (#649) Update reviewpad.yml Added default reviewpad.yml file (#648) [DevNet] tweaks for remote environments (#601) [Documentation] Swap validator and non-validator triggers when finished synching (#646) [Consensus] Configuration entry point state sync (#528)
…p-modules * pokt/main: update pocket repo read.me (#667) Update reviewpad.yml [KEYBASE] Add improve comment on keybase config (#665) [E2E] Chore: Doc updates (#663) [E2E] Adds staking, unstaking, and sending tests (#653) [Utility][RPC][CLI] Querying governance parameters (Issue #619) (#622) [Persistence][Utility] Separate all CreateAndApply functions into more functional components - Issue #508 (#652) [Persistence][Utility] Pools Address hack removal + state accessor fix for params and flags (#654) [PERSISTENCE] SavePoints and Rollbacks design document (Issue #493) (#533) Update reviewpad.yml Added ChatGPT-CodeReview workflow (#649) Update reviewpad.yml Added default reviewpad.yml file (#648) [DevNet] tweaks for remote environments (#601) [Documentation] Swap validator and non-validator triggers when finished synching (#646) [Consensus] Configuration entry point state sync (#528)

Description
While working on #327 (KV Store PR) I realized that the scope was growing and it sounded sensible to create a specific PR with these fixes that I believe are gonna be needed regardless.
Issue
I didn't bother creating an issue since I guess this constitutes bug/techdebt even if it's necessary work for #327 if we move forward with the KV store approach.
Type of change
Please mark the relevant option(s):
List of changes
Pools_POOLS_FISHERMAN_STAKE)Testing
make develop_test; if any code changes were madeRequired Checklist
godocformat comments on touched members (see: tip.golang.org/doc/comment)If Applicable Checklist
shared/docs/*if I updatedshared/*README(s)