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 ( main <- dev ) v2024.2.0 #4666

Merged
merged 59 commits into from
Aug 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
cbb62fd
Updated protobuf from outdated github.com/golang/protobuf to google.g…
Frozen Mar 7, 2024
56ad3fa
add hardfork to make testnet external (#4640)
diego1q2w Mar 7, 2024
8d2b36d
Got rid of redundant logic with isBackup. (#4639)
Frozen Mar 7, 2024
fa5efdc
Send sings count from leader to prometheus. (#4638)
Frozen Mar 7, 2024
c32319c
set SnapshotLimit to zero by default for all networks
GheisMohammadi Mar 11, 2024
4bdddf7
Merge pull request #4641 from harmony-one/fix/snapshot_disabled
sophoah Mar 13, 2024
12b84f3
Enable testnet leader rotation and external (#4649)
diego1q2w Mar 28, 2024
eb468b9
bring back the lost maxRate epochs (#4648)
diego1q2w Apr 2, 2024
7a6a801
Additional logging on a block proposing. (#4658)
Frozen Apr 19, 2024
587d2f0
Update devnet internal vote power back to 90%
sophoah Apr 23, 2024
3e66b85
Merge pull request #4662 from sophoah/dev
adsorptionenthalpy Apr 24, 2024
782eb4f
Additional logs and cleanup. (#4656)
Frozen Apr 25, 2024
0e29f52
fix validator state when trying to update the max-rate (#4647)
diego1q2w Apr 30, 2024
a3881d4
Improve staged stream sync (#4660)
GheisMohammadi May 2, 2024
1375a3b
pprof for bootnode (#4664)
Frozen May 9, 2024
5a33e2a
improve logs to reduce OUT of SYNC info logs (#4667)
GheisMohammadi May 14, 2024
b526c3a
Force sync when view change and received message with higher height.
Frozen Apr 21, 2024
2ece5a6
Removed unused method `NthNextHmyExt` (#4670)
Frozen May 21, 2024
3dad825
fix: close file (#4672)
testwill May 21, 2024
3d29596
fix boot node instability issue, refactor p2p host configurations and…
GheisMohammadi May 24, 2024
8abcc74
Fix for crosslink snap db. (#4675)
Frozen May 25, 2024
338ff01
Removed threshold 10 epochs. (#4671)
Frozen May 27, 2024
c148e5f
Extracts `GetAddressForBLSKey` functionality from `Node` struct. (#4642)
Frozen May 27, 2024
a7560fe
Crosslink heartbeat verify through current committee (#4673)
Frozen May 28, 2024
a8a2a13
Update testnet internal vote power back to 90%
sophoah May 29, 2024
905bf58
[testnet] add harmony internal node in sharding config
sophoah May 30, 2024
7233e1f
add muxer flag to bootnode
GheisMohammadi May 29, 2024
7d06fdc
add support for multiple muxers to p2p host (#4682)
GheisMohammadi Jun 3, 2024
434abca
Fix possible panic when the leader is unknown. (#4684)
Frozen Jun 5, 2024
b194d2b
Devnet TopMaxRateEpoch 1976
Frozen Jun 14, 2024
ef74501
Fixed order
Frozen Jun 14, 2024
d748647
Configurable reward frequency. (#4700)
Frozen Jun 25, 2024
d6da9ff
Block proposing moved from Node to Consensus. (#4698)
Frozen Jun 25, 2024
878e75b
Fix: travis CI changed the way how we install docker - travis updated…
mur-me Jun 27, 2024
be65e8c
enables p2p transport security by default (#4705)
GheisMohammadi Jul 3, 2024
74f7b5c
Removed unused parameter disableViewChange. (#4699)
Frozen Jul 3, 2024
d81611e
Fixed condition which is always true. (#4695)
Frozen Jul 3, 2024
1bafc6c
Genesis block hash log. (#4712)
Frozen Jul 15, 2024
6e772e2
small fixes on legacy sync (#4713)
GheisMohammadi Jul 15, 2024
3503972
100% coverage for UpdateMaxCommissionFee. (#4708)
Frozen Jul 18, 2024
8306c60
Fixed PeerStore usage. (#4706)
Frozen Jul 19, 2024
a65cf71
Fixed data race. (#4686)
Frozen Jul 19, 2024
16fe018
fix lock release issue in stream sync (#4714)
GheisMohammadi Jul 19, 2024
73df9c5
update a few of deprecated dependencies (#4715)
GheisMohammadi Jul 19, 2024
252bda9
Removed trailing zeros. (#4709)
Frozen Jul 19, 2024
900529d
add linux static quick command to make file (#4704)
GheisMohammadi Jul 19, 2024
0e74201
Broadcast sign power (#4683)
Frozen Jul 23, 2024
8098b29
Fixed failing tests. (#4721)
Frozen Jul 24, 2024
21f5a80
Revert "Broadcast sign power (#4683)" (#4718)
Frozen Jul 25, 2024
6b25283
fix: make BUILD_BRANCH as a dynamic argument for the Dockerfile inste…
mur-me Jul 26, 2024
ce9ce93
fix boot node invalid address issue (#4724)
GheisMohammadi Aug 7, 2024
051e244
remove unnecessary error message for force deleting of not exsited di…
GheisMohammadi Aug 10, 2024
6e6783b
feat(CI) - add possibility to point harmony-test repo to non-master b…
mur-me Aug 7, 2024
1eb78df
complete make help, add new commands to make help (#4737)
GheisMohammadi Aug 18, 2024
b33cbc3
Refactor NTP, support multiple NTP servers (#4728)
GheisMohammadi Aug 21, 2024
8c40804
Fix Check for Existence of `allowedtxs.txt` File Before Applying Logi…
GheisMohammadi Aug 22, 2024
5ec19bc
default SnapshotLimit to 0 (#4742)
sophoah Aug 26, 2024
c44c2ea
feat/keep tests in separate repo for upgrade to 1.22 (#4736)
mur-me Aug 26, 2024
4e50bbc
fix(localnet) - both RPC nodes now spin up, enable rpc.debug=true to …
mur-me Aug 28, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,15 @@
*
!scripts/docker
harmony_db*
bin
cache
.DS_Store
*.log
log-*
tmp_log
*.rlp
**/*.rlp
.hmykey
db-127.0.0.1-*
db*
.dht
.dht-*
explorer_storage_*
10 changes: 6 additions & 4 deletions .github/workflows/ci-tag.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Manual release harmony (need tag)

on:
on:
workflow_dispatch:
inputs:
tag:
decription: 'tag value to create the release'
tag:
description: 'tag value to create the release'
required: true

jobs:
Expand Down Expand Up @@ -154,7 +154,7 @@ jobs:
run: |
mv $GITHUB_WORKSPACE/harmony-amd64 ./scripts/docker/harmony
working-directory: harmony

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

Expand All @@ -170,6 +170,8 @@ jobs:
context: ./harmony/scripts/docker
file: ./harmony/scripts/docker/Dockerfile
push: true
build-args: |
BUILD_BRANCH=${{ github.ref_name }}
tags: |
harmonyone/harmony:${{ github.event.inputs.tag }}
harmonyone/harmony:${{ env.build_version }}-${{ env.build_release }}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ jobs:
run: |
mv $GITHUB_WORKSPACE/harmony-amd64 ./scripts/docker/harmony
working-directory: harmony

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

Expand All @@ -171,6 +171,8 @@ jobs:
with:
context: ./harmony/scripts/docker
file: ./harmony/scripts/docker/Dockerfile
build-args: |
BUILD_BRANCH=${{ github.ref_name }}
push: true
tags: |
harmonyone/harmony:latest
Expand Down
17 changes: 9 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ os: linux
dist: jammy
language: go
go:
- 1.19.5
- 1.22.5
go_import_path: github.com/harmony-one/harmony
cache:
directories:
Expand All @@ -14,21 +14,22 @@ env:
- TEST="bash ./scripts/travis_rosetta_checker.sh"

# upgrade docker to latest stable version
addons:
apt:
sources:
- sourceline: deb https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable
packages:
- docker.io
before_install:
- echo "deb https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list >/dev/null
- sudo apt-get update
- sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce

install:
# default working directory with source code is automatically set to
# /home/travis/gopath/src/github.com/harmony-one/harmony
# https://docs.travis-ci.com/user/languages/go/#go-import-path
- echo $TRAVIS_PULL_REQUEST_BRANCH
#TODO: return back to master
- TEST_REPO_BRANCH="feature/go1.22"
- git clone https://github.com/harmony-one/mcl.git $GOPATH/src/github.com/harmony-one/mcl
- git clone https://github.com/harmony-one/bls.git $GOPATH/src/github.com/harmony-one/bls
- git clone https://github.com/harmony-one/harmony-test.git $GOPATH/src/github.com/harmony-one/harmony-test
#TODO: return back harmony instead of personal fork
- git clone --branch $TEST_REPO_BRANCH https://github.com/harmony-one/harmony-test.git $GOPATH/src/github.com/harmony-one/harmony-test
- (cd $GOPATH/src/github.com/harmony-one/mcl; make -j4)
- (cd $GOPATH/src/github.com/harmony-one/bls; make BLS_SWAP_G=1 -j4)
# - curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.41.1
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM ubuntu:18.04
FROM ubuntu:22.04

ARG TARGETARCH
ARG GOLANG_VERSION="1.19"
ARG GOLANG_VERSION="1.22.5"

SHELL ["/bin/bash", "-c"]

Expand Down
26 changes: 26 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,25 @@ help:
@echo "test-rosetta - run the rosetta tests"
@echo "test-rosetta-attach - attach onto the rosetta testing docker container for inspection"
@echo "linux_static - static build the harmony binary & bootnode along with the MCL & BLS libs (for linux)"
@echo "linux_static_quick - static build the harmony binary & bootnode more quickly without recompiling dependencies (for linux)"
@echo "rpm_init - prepare the RPM build environment by creating directories, copying files, and generating the spec file and source tarball"
@echo "rpm_build - build an RPM package for x86_64 architecture using the spec file (<RPMBUILD>/SPECS/harmony.spec)"
@echo "rpm - build a harmony RPM pacakge"
@echo "rpmpub_dev - publish harmony RPM package to development repo"
@echo "rpmpub_prod - publish harmony RPM package to production repo"
@echo "deb_init - initialize a Debian package for Harmony, setting up necessary files and configurations in the package structure."
@echo "deb_build - build a Debian package from the <HOME>/debbuild directory"
@echo "deb - build a harmony Debian pacakge"
@echo "debpub_dev - publish harmony Debian package to development repo"
@echo "debpub_prod - publish harmony Debian package to production repo"
@echo "go-vet - run Go vet to examine Go source code in the current project for potential issues"
@echo "go-test - run all Go tests with vet checks and the race detector enabled"
@echo "docker - build a Docker image for Harmony using the project root directory's Dockerfile, pulling the latest base image"
@echo "travis_go_checker - run the Travis Go checker script to validate Go code in the project"
@echo "travis_rpc_checker - run the Travis RPC checker script, defaulting the test branch to 'master' unless overridden by TEST_REPO_BRANCH"
@echo "travis_rosetta_checker - run the Travis Rosetta checker script, defaulting the test branch to 'master' unless overridden by TEST_REPO_BRANCH"
@echo "debug_external - cleans up environment, rebuilds the binary, and deploys with external nodes"
@echo "build_localnet_validator - imports validator keys, funds validator accounts, waits for the epoch, and creates external validators on a local network"

libs:
make -C $(TOP)/mcl -j8
Expand All @@ -57,6 +70,9 @@ trace-pointer:

debug:
rm -rf .dht-127.0.0.1*
# uncomment the following lines to enable debug logging for libp2p, it produces a lot of logs, so disabled by default
#export GOLOG_LOG_LEVEL=debug
#export GOLOG_OUTPUT=stdout
bash ./test/debug.sh

debug-kill:
Expand Down Expand Up @@ -105,6 +121,9 @@ linux_static:
make -C $(TOP)/bls minimised_static BLS_SWAP_G=1 -j8
bash ./scripts/go_executable_build.sh -s

linux_static_quick:
bash ./scripts/go_executable_build.sh -s

deb_init:
rm -rf $(DEBBUILD)
mkdir -p $(DEBBUILD)/$(PKGNAME)-$(VERSION)-$(RELEASE)/{etc/systemd/system,usr/sbin,etc/sysctl.d,etc/harmony}
Expand Down Expand Up @@ -170,13 +189,20 @@ travis_go_checker:
bash ./scripts/travis_go_checker.sh

travis_rpc_checker:
# value from command line will override this value, use point test to non-default
TEST_REPO_BRANCH='master'
bash ./scripts/travis_rpc_checker.sh

travis_rosetta_checker:
# value from command line will override this value, use point test to non-default
TEST_REPO_BRANCH='master'
bash ./scripts/travis_rosetta_checker.sh

debug_external: clean
bash test/debug-external.sh

build_localnet_validator:
bash test/build-localnet-validator.sh

protofiles:
bash ./scripts/gogenerate.sh
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ http://api.hmny.io/

## Requirements

### **Go 1.19**
### **Go 1.22.5**
### **GMP and OpenSSL**

On macOS:
Expand Down
2 changes: 1 addition & 1 deletion api/proto/message/client.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package message
package harmonymessage

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion api/proto/message/gen.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash

docker run --platform linux/amd64 -v ${PWD}:/tmp ${PROTOC_IMAGE} /tmp/message.proto
docker run --platform linux/amd64 -v ${PWD}:/tmp ${PROTOC_IMAGE} /tmp/harmonymessage.proto
Loading