adm: Make 'morph-init' idempotent #1654

Merged
fyrchik merged 2 commits from achuprov/frostfs-node:bugfix/make_init_ideo into master 2025-02-27 11:57:46 +00:00
Member

Ref: TrueCloudLab/frostfs-dev-env#94
The value of the alphabet balance is unstable. The balance of consensus account appears to be a more reliable indicator.
Signed-off-by: Alexander Chuprov a.chuprov@yadro.com

Ref: https://git.frostfs.info/TrueCloudLab/frostfs-dev-env/issues/94 The value of the alphabet balance is unstable. The balance of consensus account appears to be a more reliable indicator. Signed-off-by: Alexander Chuprov <a.chuprov@yadro.com>
achuprov added 1 commit 2025-02-24 09:28:54 +00:00
[#1654] adm: Make 'morph-init' idempotent
All checks were successful
DCO action / DCO (pull_request) Successful in 34s
Vulncheck / Vulncheck (pull_request) Successful in 53s
Pre-commit hooks / Pre-commit (pull_request) Successful in 1m24s
Build / Build Components (pull_request) Successful in 1m28s
Tests and linters / Run gofumpt (pull_request) Successful in 1m58s
Tests and linters / Staticcheck (pull_request) Successful in 2m11s
Tests and linters / Tests (pull_request) Successful in 2m26s
Tests and linters / Lint (pull_request) Successful in 2m52s
Tests and linters / Tests with -race (pull_request) Successful in 3m2s
Tests and linters / gopls check (pull_request) Successful in 3m39s
1c43fcdda9
Signed-off-by: Alexander Chuprov <a.chuprov@yadro.com>
requested reviews from storage-core-committers, storage-core-developers 2025-02-24 09:28:54 +00:00
fyrchik reviewed 2025-02-24 09:35:18 +00:00
@ -28,2 +28,4 @@
// initialProxyGASAmount represents the amount of GAS given to a proxy contract.
initialProxyGASAmount = 50_000 * native.GASFactor
// InitialGASSupply contains value from https://github.com/nspcc-dev/neo-go/blob/0d8c751e50951ad84cec8b89cf6ea1a9e0f4f878/config/protocol.mainnet.yml#L4
InitialGASSupply = 52000000 * native.GASFactor
Owner

There is also gasInitialTotalSupply, what is the difference?
Also, this value may differ between networks, I think getversion RPC should contain the actual value.

There is also `gasInitialTotalSupply`, what is the difference? Also, this value may differ between networks, I think `getversion` RPC should contain the actual value.
Author
Member

Also, this value may differ between networks, I think getversion RPC should contain the actual value.

You are right. Fixed.

There is also gasInitialTotalSupply, what is the difference?

I believe it's old value of initialGasDistribution. Add commit "get gasInitialTotalSupply from the network". link1 and link2

> Also, this value may differ between networks, I think getversion RPC should contain the actual value. You are right. Fixed. > There is also gasInitialTotalSupply, what is the difference? I believe it's old value of `initialGasDistribution`. Add commit "get `gasInitialTotalSupply` from the network". [link1](https://github.com/neo-project/neo/pull/2544) and [link2](https://github.com/nspcc-dev/neofs-node/pull/707)
achuprov force-pushed bugfix/make_init_ideo from 1c43fcdda9 to e8cb6b30c9 2025-02-24 09:47:30 +00:00 Compare
achuprov added 1 commit 2025-02-24 10:22:46 +00:00
[#1654] adm: Get 'gasInitialTotalSupply' from network
All checks were successful
DCO action / DCO (pull_request) Successful in 42s
Vulncheck / Vulncheck (pull_request) Successful in 50s
Pre-commit hooks / Pre-commit (pull_request) Successful in 1m24s
Build / Build Components (pull_request) Successful in 1m39s
Tests and linters / Tests (pull_request) Successful in 3m9s
Tests and linters / Run gofumpt (pull_request) Successful in 3m10s
Tests and linters / Tests with -race (pull_request) Successful in 3m23s
Tests and linters / Lint (pull_request) Successful in 3m30s
Tests and linters / Staticcheck (pull_request) Successful in 3m26s
Tests and linters / gopls check (pull_request) Successful in 3m56s
8e57d74e38
Signed-off-by: Alexander Chuprov <a.chuprov@yadro.com>
fyrchik approved these changes 2025-02-25 09:11:41 +00:00
aarifullin approved these changes 2025-02-27 11:30:49 +00:00
fyrchik merged commit 2ff032db90 into master 2025-02-27 11:57:46 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-node#1654
No description provided.