-
Notifications
You must be signed in to change notification settings - Fork 291
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
Hip30 balance migration with fix. #4502
Merged
ONECasey
merged 21 commits into
harmony-one:hip30/testing
from
Frozen:hip30-balance-migration-fixed-stuck
Sep 18, 2023
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
9c400ab
flags: set up preimage flags
MaxMustermann2 90c7fdc
hip30: set up preimage import, export, api
MaxMustermann2 57934de
preimages: re-generate them using CLI
MaxMustermann2 bac936b
move from rpc to core
MaxMustermann2 0d28d1e
migrate balance uring epoch T - 1
MaxMustermann2 ae8fe06
test account migration in localnet
sophoah c953560
enable preimages on the whitelist
diego1q2w d6747c1
add the generate method
diego1q2w 577c904
fix cropping log
diego1q2w b058e57
fix cropping log
diego1q2w bf820da
cropping startpoint when bigger than endpoint
diego1q2w a738d5f
add support for the rpcblocknumer type
diego1q2w 095001a
enable import api
diego1q2w a369d8a
Fixed stuck.
Frozen f63dcbc
Additional logs.
Frozen e7f21fc
Cleanup.
Frozen 073e16f
Rebased on harmony-one:hip30/testing.
Frozen 4ceaf1a
Removed code duplicate.
Frozen 1dca854
Fixed stuck.
Frozen 9ff6a69
IsOneEpochBeforeHIP30 for only 1 epoch.
Frozen e86dce9
Merge branch 'hip30/testing' into hip30-balance-migration-fixed-stuck
diego1q2w File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package params | ||
|
||
import ( | ||
"math/big" | ||
"testing" | ||
|
||
"github.com/stretchr/testify/require" | ||
) | ||
|
||
func TestIsOneEpochBeforeHIP30(t *testing.T) { | ||
c := ChainConfig{ | ||
HIP30Epoch: big.NewInt(3), | ||
} | ||
|
||
require.True(t, c.IsOneEpochBeforeHIP30(big.NewInt(2))) | ||
require.False(t, c.IsOneEpochBeforeHIP30(big.NewInt(3))) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reducing to 8 will impact the external external validator
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
16 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
based on testing for external it had to be 64