Skip to content

Commit

Permalink
fix: Catapult 1.0.2.0 upgrade. TotalVotingBalanceCalculationFix fork (
Browse files Browse the repository at this point in the history
#292)

fix: Catapult `1.0.2.0` upgrade. TotalVotingBalanceCalculationFix fork
fix: Updated `minPartnerNodeVersion` to `1.0.1.0`.
fix: Updated testnet fork height to 398520
  • Loading branch information
fboucquez authored Sep 15, 2021
1 parent 83fcaf3 commit 03cd88a
Show file tree
Hide file tree
Showing 41 changed files with 184 additions and 122 deletions.
8 changes: 5 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ All notable changes to this project will be documented in this file.

The changelog format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [1.0.8] - Sep-13-2021
## [1.0.8] - Sep-14-2021

**Milestone**: Mainnet(1.0.1.0)
**Milestone**: Mainnet(1.0.2.0)

- Fixed `updateVotingKeys` command when upgrading from 1.0.6.
- Fixed `updateVotingKeys` command when upgrading from `1.0.6`.
- Catapult `1.0.2.0` upgrade.
- Updated `minPartnerNodeVersion` to `1.0.1.0`. Older Catapult clients will be rejected.

| Package | Version | Link |
| ---------------- | ------- | ------------------------------------------------------------------ |
Expand Down
4 changes: 4 additions & 0 deletions config/node/resources/config-network.properties.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ harvestNetworkFeeSinkAddress = {{{harvestNetworkFeeSinkAddress}}}

maxTransactionsPerBlock = {{{toAmount maxTransactionsPerBlock}}}

[fork_heights]

totalVotingBalanceCalculationFix = {{{toAmount totalVotingBalanceCalculationFix}}}

[plugin:catapult.plugins.accountlink]

dummy = to trigger plugin load
Expand Down
3 changes: 3 additions & 0 deletions presets/descriptions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,9 @@ blockPruneInterval:
maxTransactionsPerBlock:
type: uint32_t
description: Maximum number of transactions per block.
totalVotingBalanceCalculationFix:
type: uint32_t
description: Height of fork to fix TotalVotingBalance calculation.
maxTransactionsPerAggregate:
type: uint32_t
description: Maximum number of transactions per aggregate.
Expand Down
1 change: 1 addition & 0 deletions presets/mainnet/network.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ blockGenerationTargetTime: 30s
defaultDynamicFeeMultiplier: 100
rootNamespaceRentalFeePerBlock: 2
childNamespaceRentalFee: 100000
totalVotingBalanceCalculationFix: 528000
mosaicRentalFee: 500000
throttlingBurst: 80
throttlingRate: 60
Expand Down
9 changes: 5 additions & 4 deletions presets/shared.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ maxNameSize: 64
maxChildNamespaces: 256
maxNamespaceDepth: 3
batchVerificationRandomSource:
symbolServerImage: symbolplatform/symbol-server:gcc-10-1.0.1.0
symbolServerImage: symbolplatform/symbol-server:gcc-10-1.0.2.0
symbolRestImage: symbolplatform/symbol-rest:2.3.6
symbolExplorerImage: symbolplatform/symbol-explorer:0.6.3-alpha
symbolWalletImage: symbolplatform/symbol-desktop-wallet:1.0.1
Expand All @@ -86,6 +86,7 @@ enableDelegatedHarvestersAutoDetection: true
catapultAppFolder: /usr/catapult
rewardProgramAgentPort: 7881
enableRevoteOnBoot: true
totalVotingBalanceCalculationFix: 0

# config database
databaseName: catapult
Expand All @@ -101,7 +102,7 @@ peersApiListLimit: 10
shortLivedCacheMessageDuration: 10m
messageSynchronizationMaxResponseSize: 20MB
finalizationSize: 10000
finalizationThreshold: 7000
finalizationThreshold: 6700
maxHashesPerPoint: 256
prevoteBlocksMultiple: 4
nonVotingUnfinalizedBlocksDuration: 8m
Expand Down Expand Up @@ -163,9 +164,9 @@ delegatePrioritizationPolicy: Importance
dockerComposeVersion: '2.4'
dockerComposeServiceRestart: 'on-failure:2'
dockerComposeDebugMode: false
minPartnerNodeVersion: 1.0.0.0
minPartnerNodeVersion: 1.0.1.0
maxPartnerNodeVersion: 1.0.255.255
serverVersion: 1.0.1.0
serverVersion: 1.0.2.0
outgoing_connections_maxConnections: 10
outgoing_connections_maxConnectionAge: 200
outgoing_connections_maxConnectionBanAge: 20
Expand Down
1 change: 1 addition & 0 deletions presets/testnet/network.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ blockGenerationTargetTime: 30s
defaultDynamicFeeMultiplier: 100
rootNamespaceRentalFeePerBlock: 2
childNamespaceRentalFee: 100000
totalVotingBalanceCalculationFix: 398520
mosaicRentalFee: 500000
throttlingBurst: 80
throttlingRate: 60
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ services:
peer-node-0:
user: '1000:1000'
container_name: peer-node-0
image: 'symbolplatform/symbol-server:gcc-10-1.0.1.0'
image: 'symbolplatform/symbol-server:gcc-10-1.0.2.0'
command: /bin/bash /symbol-commands/start.sh /usr/catapult ./data server broker peer-node-0 NORMAL false
stop_signal: SIGINT
working_dir: /symbol-workdir
Expand All @@ -47,7 +47,7 @@ services:
peer-node-1:
user: '1000:1000'
container_name: peer-node-1
image: 'symbolplatform/symbol-server:gcc-10-1.0.1.0'
image: 'symbolplatform/symbol-server:gcc-10-1.0.2.0'
command: /bin/bash /symbol-commands/start.sh /usr/catapult ./data server broker peer-node-1 NORMAL false
stop_signal: SIGINT
working_dir: /symbol-workdir
Expand All @@ -71,7 +71,7 @@ services:
api-node-0:
user: '1000:1000'
container_name: api-node-0
image: 'symbolplatform/symbol-server:gcc-10-1.0.1.0'
image: 'symbolplatform/symbol-server:gcc-10-1.0.2.0'
command: /bin/bash /symbol-commands/start.sh /usr/catapult ./data server broker api-node-0 NORMAL true
stop_signal: SIGINT
working_dir: /symbol-workdir
Expand All @@ -90,7 +90,7 @@ services:
api-node-broker-0:
user: '1000:1000'
container_name: api-node-broker-0
image: 'symbolplatform/symbol-server:gcc-10-1.0.1.0'
image: 'symbolplatform/symbol-server:gcc-10-1.0.2.0'
working_dir: /symbol-workdir
command: /bin/bash /symbol-commands/start.sh /usr/catapult ./data broker server api-node-broker-0 NORMAL
ports:
Expand Down
8 changes: 4 additions & 4 deletions test/composes/expected-docker-compose-bootstrap-custom.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ services:
- '../databases/db-0:/dbdata:rw'
peer-node-0:
container_name: peer-node-0
image: 'symbolplatform/symbol-server:gcc-10-1.0.1.0'
image: 'symbolplatform/symbol-server:gcc-10-1.0.2.0'
command: /bin/bash /symbol-commands/start.sh /usr/catapult ./data server broker peer-node-0 DEBUG false
stop_signal: SIGINT
working_dir: /symbol-workdir
Expand All @@ -38,7 +38,7 @@ services:
hostname: peer-node-0
peer-node-1:
container_name: peer-node-1
image: 'symbolplatform/symbol-server:gcc-10-1.0.1.0'
image: 'symbolplatform/symbol-server:gcc-10-1.0.2.0'
command: /bin/bash /symbol-commands/start.sh /usr/catapult ./data server broker peer-node-1 DEBUG false
stop_signal: SIGINT
working_dir: /symbol-workdir
Expand All @@ -60,7 +60,7 @@ services:
hostname: peer-node-1
api-node-0:
container_name: api-node-0
image: 'symbolplatform/symbol-server:gcc-10-1.0.1.0'
image: 'symbolplatform/symbol-server:gcc-10-1.0.2.0'
command: /bin/bash /symbol-commands/start.sh /usr/catapult ./data server broker api-node-0 DEBUG true
stop_signal: SIGINT
working_dir: /symbol-workdir
Expand All @@ -83,7 +83,7 @@ services:
hostname: api-node-0
api-node-broker-0:
container_name: api-node-broker-0
image: 'symbolplatform/symbol-server:gcc-10-1.0.1.0'
image: 'symbolplatform/symbol-server:gcc-10-1.0.2.0'
working_dir: /symbol-workdir
command: /bin/bash /symbol-commands/start.sh /usr/catapult ./data broker server api-node-broker-0 DEBUG
ports:
Expand Down
8 changes: 4 additions & 4 deletions test/composes/expected-docker-compose-bootstrap-full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ services:
privileged: true
peer-node-0:
container_name: peer-node-0
image: 'symbolplatform/symbol-server:gcc-10-1.0.1.0'
image: 'symbolplatform/symbol-server:gcc-10-1.0.2.0'
command: /bin/bash /symbol-commands/start.sh /usr/catapult ./data server broker peer-node-0 DEBUG false
stop_signal: SIGINT
working_dir: /symbol-workdir
Expand All @@ -43,7 +43,7 @@ services:
hostname: peer-node-0
peer-node-1:
container_name: peer-node-1
image: 'symbolplatform/symbol-server:gcc-10-1.0.1.0'
image: 'symbolplatform/symbol-server:gcc-10-1.0.2.0'
command: /bin/bash /symbol-commands/start.sh /usr/catapult ./data server broker peer-node-1 DEBUG false
stop_signal: SIGINT
working_dir: /symbol-workdir
Expand All @@ -65,7 +65,7 @@ services:
hostname: peer-node-1
api-node-0:
container_name: api-node-0
image: 'symbolplatform/symbol-server:gcc-10-1.0.1.0'
image: 'symbolplatform/symbol-server:gcc-10-1.0.2.0'
command: /bin/bash /symbol-commands/start.sh /usr/catapult ./data server broker api-node-0 DEBUG true
stop_signal: SIGINT
working_dir: /symbol-workdir
Expand All @@ -88,7 +88,7 @@ services:
hostname: api-node-0
api-node-broker-0:
container_name: api-node-broker-0
image: 'symbolplatform/symbol-server:gcc-10-1.0.1.0'
image: 'symbolplatform/symbol-server:gcc-10-1.0.2.0'
working_dir: /symbol-workdir
command: /bin/bash /symbol-commands/start.sh /usr/catapult ./data broker server api-node-broker-0 DEBUG
ports:
Expand Down
22 changes: 11 additions & 11 deletions test/composes/expected-docker-compose-bootstrap-repeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ services:
peer-node-0:
user: '1000:1000'
container_name: peer-node-0
image: 'symbolplatform/symbol-server:gcc-10-1.0.1.0'
image: 'symbolplatform/symbol-server:gcc-10-1.0.2.0'
command: /bin/bash /symbol-commands/start.sh /usr/catapult ./data server broker peer-node-0 NORMAL false
stop_signal: SIGINT
working_dir: /symbol-workdir
Expand All @@ -77,7 +77,7 @@ services:
peer-node-1:
user: '1000:1000'
container_name: peer-node-1
image: 'symbolplatform/symbol-server:gcc-10-1.0.1.0'
image: 'symbolplatform/symbol-server:gcc-10-1.0.2.0'
command: /bin/bash /symbol-commands/start.sh /usr/catapult ./data server broker peer-node-1 NORMAL false
stop_signal: SIGINT
working_dir: /symbol-workdir
Expand All @@ -95,7 +95,7 @@ services:
peer-node-2:
user: '1000:1000'
container_name: peer-node-2
image: 'symbolplatform/symbol-server:gcc-10-1.0.1.0'
image: 'symbolplatform/symbol-server:gcc-10-1.0.2.0'
command: /bin/bash /symbol-commands/start.sh /usr/catapult ./data server broker peer-node-2 NORMAL false
stop_signal: SIGINT
working_dir: /symbol-workdir
Expand All @@ -113,7 +113,7 @@ services:
api-node-0:
user: '1000:1000'
container_name: api-node-0
image: 'symbolplatform/symbol-server:gcc-10-1.0.1.0'
image: 'symbolplatform/symbol-server:gcc-10-1.0.2.0'
command: /bin/bash /symbol-commands/start.sh /usr/catapult ./data server broker api-node-0 NORMAL true
stop_signal: SIGINT
working_dir: /symbol-workdir
Expand All @@ -132,7 +132,7 @@ services:
api-node-1:
user: '1000:1000'
container_name: api-node-1
image: 'symbolplatform/symbol-server:gcc-10-1.0.1.0'
image: 'symbolplatform/symbol-server:gcc-10-1.0.2.0'
command: /bin/bash /symbol-commands/start.sh /usr/catapult ./data server broker api-node-1 NORMAL true
stop_signal: SIGINT
working_dir: /symbol-workdir
Expand All @@ -151,7 +151,7 @@ services:
api-node-2:
user: '1000:1000'
container_name: api-node-2
image: 'symbolplatform/symbol-server:gcc-10-1.0.1.0'
image: 'symbolplatform/symbol-server:gcc-10-1.0.2.0'
command: /bin/bash /symbol-commands/start.sh /usr/catapult ./data server broker api-node-2 NORMAL true
stop_signal: SIGINT
working_dir: /symbol-workdir
Expand All @@ -170,7 +170,7 @@ services:
api-node-3:
user: '1000:1000'
container_name: api-node-3
image: 'symbolplatform/symbol-server:gcc-10-1.0.1.0'
image: 'symbolplatform/symbol-server:gcc-10-1.0.2.0'
command: /bin/bash /symbol-commands/start.sh /usr/catapult ./data server broker api-node-3 NORMAL true
stop_signal: SIGINT
working_dir: /symbol-workdir
Expand All @@ -189,7 +189,7 @@ services:
api-node-broker-0:
user: '1000:1000'
container_name: api-node-broker-0
image: 'symbolplatform/symbol-server:gcc-10-1.0.1.0'
image: 'symbolplatform/symbol-server:gcc-10-1.0.2.0'
working_dir: /symbol-workdir
command: /bin/bash /symbol-commands/start.sh /usr/catapult ./data broker server api-node-broker-0 NORMAL
ports:
Expand All @@ -204,7 +204,7 @@ services:
api-node-broker-1:
user: '1000:1000'
container_name: api-node-broker-1
image: 'symbolplatform/symbol-server:gcc-10-1.0.1.0'
image: 'symbolplatform/symbol-server:gcc-10-1.0.2.0'
working_dir: /symbol-workdir
command: /bin/bash /symbol-commands/start.sh /usr/catapult ./data broker server api-node-broker-1 NORMAL
ports:
Expand All @@ -219,7 +219,7 @@ services:
api-node-broker-2:
user: '1000:1000'
container_name: api-node-broker-2
image: 'symbolplatform/symbol-server:gcc-10-1.0.1.0'
image: 'symbolplatform/symbol-server:gcc-10-1.0.2.0'
working_dir: /symbol-workdir
command: /bin/bash /symbol-commands/start.sh /usr/catapult ./data broker server api-node-broker-2 NORMAL
ports:
Expand All @@ -234,7 +234,7 @@ services:
api-node-broker-3:
user: '1000:1000'
container_name: api-node-broker-3
image: 'symbolplatform/symbol-server:gcc-10-1.0.1.0'
image: 'symbolplatform/symbol-server:gcc-10-1.0.2.0'
working_dir: /symbol-workdir
command: /bin/bash /symbol-commands/start.sh /usr/catapult ./data broker server api-node-broker-3 NORMAL
ports:
Expand Down
8 changes: 4 additions & 4 deletions test/composes/expected-docker-compose-bootstrap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ services:
peer-node-0:
user: '1000:1000'
container_name: peer-node-0
image: 'symbolplatform/symbol-server:gcc-10-1.0.1.0'
image: 'symbolplatform/symbol-server:gcc-10-1.0.2.0'
command: /bin/bash /symbol-commands/start.sh /usr/catapult ./data server broker peer-node-0 NORMAL false
stop_signal: SIGINT
working_dir: /symbol-workdir
Expand All @@ -35,7 +35,7 @@ services:
peer-node-1:
user: '1000:1000'
container_name: peer-node-1
image: 'symbolplatform/symbol-server:gcc-10-1.0.1.0'
image: 'symbolplatform/symbol-server:gcc-10-1.0.2.0'
command: /bin/bash /symbol-commands/start.sh /usr/catapult ./data server broker peer-node-1 NORMAL false
stop_signal: SIGINT
working_dir: /symbol-workdir
Expand All @@ -53,7 +53,7 @@ services:
api-node-0:
user: '1000:1000'
container_name: api-node-0
image: 'symbolplatform/symbol-server:gcc-10-1.0.1.0'
image: 'symbolplatform/symbol-server:gcc-10-1.0.2.0'
command: /bin/bash /symbol-commands/start.sh /usr/catapult ./data server broker api-node-0 NORMAL true
stop_signal: SIGINT
working_dir: /symbol-workdir
Expand All @@ -72,7 +72,7 @@ services:
api-node-broker-0:
user: '1000:1000'
container_name: api-node-broker-0
image: 'symbolplatform/symbol-server:gcc-10-1.0.1.0'
image: 'symbolplatform/symbol-server:gcc-10-1.0.2.0'
working_dir: /symbol-workdir
command: /bin/bash /symbol-commands/start.sh /usr/catapult ./data broker server api-node-broker-0 NORMAL
ports:
Expand Down
4 changes: 2 additions & 2 deletions test/composes/expected-mainnet-api-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ services:
node:
user: '1000:1000'
container_name: node
image: 'symbolplatform/symbol-server:gcc-10-1.0.1.0'
image: 'symbolplatform/symbol-server:gcc-10-1.0.2.0'
command: /bin/bash /symbol-commands/start.sh /usr/catapult ./data server broker node NORMAL true
stop_signal: SIGINT
working_dir: /symbol-workdir
Expand All @@ -31,7 +31,7 @@ services:
broker:
user: '1000:1000'
container_name: broker
image: 'symbolplatform/symbol-server:gcc-10-1.0.1.0'
image: 'symbolplatform/symbol-server:gcc-10-1.0.2.0'
working_dir: /symbol-workdir
command: /bin/bash /symbol-commands/start.sh /usr/catapult ./data broker server broker NORMAL
stop_signal: SIGINT
Expand Down
4 changes: 2 additions & 2 deletions test/composes/expected-mainnet-dual-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ services:
node:
user: '1000:1000'
container_name: node
image: 'symbolplatform/symbol-server:gcc-10-1.0.1.0'
image: 'symbolplatform/symbol-server:gcc-10-1.0.2.0'
command: /bin/bash /symbol-commands/start.sh /usr/catapult ./data server broker node NORMAL true
stop_signal: SIGINT
working_dir: /symbol-workdir
Expand All @@ -31,7 +31,7 @@ services:
broker:
user: '1000:1000'
container_name: broker
image: 'symbolplatform/symbol-server:gcc-10-1.0.1.0'
image: 'symbolplatform/symbol-server:gcc-10-1.0.2.0'
working_dir: /symbol-workdir
command: /bin/bash /symbol-commands/start.sh /usr/catapult ./data broker server broker NORMAL
stop_signal: SIGINT
Expand Down
2 changes: 1 addition & 1 deletion test/composes/expected-mainnet-peer-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ services:
node:
user: '1000:1000'
container_name: node
image: 'symbolplatform/symbol-server:gcc-10-1.0.1.0'
image: 'symbolplatform/symbol-server:gcc-10-1.0.2.0'
command: /bin/bash /symbol-commands/start.sh /usr/catapult ./data server broker node NORMAL false
stop_signal: SIGINT
working_dir: /symbol-workdir
Expand Down
4 changes: 2 additions & 2 deletions test/composes/expected-testnet-api-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ services:
node:
user: '1000:1000'
container_name: node
image: 'symbolplatform/symbol-server:gcc-10-1.0.1.0'
image: 'symbolplatform/symbol-server:gcc-10-1.0.2.0'
command: /bin/bash /symbol-commands/start.sh /usr/catapult ./data server broker node NORMAL true
stop_signal: SIGINT
working_dir: /symbol-workdir
Expand All @@ -31,7 +31,7 @@ services:
broker:
user: '1000:1000'
container_name: broker
image: 'symbolplatform/symbol-server:gcc-10-1.0.1.0'
image: 'symbolplatform/symbol-server:gcc-10-1.0.2.0'
working_dir: /symbol-workdir
command: /bin/bash /symbol-commands/start.sh /usr/catapult ./data broker server broker NORMAL
stop_signal: SIGINT
Expand Down
Loading

0 comments on commit 03cd88a

Please sign in to comment.