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

Print peers count. #4719

Draft
wants to merge 68 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 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
8070f87
Fixed panic.
Frozen Jul 23, 2024
c126c61
Tests.
Frozen Jun 25, 2024
f2be022
Test.
Frozen Jun 26, 2024
49ead49
1.21.11
Frozen Jun 28, 2024
f204b08
Fixed rosetta
Frozen Jun 30, 2024
b149cdb
Fixed rosetta
Frozen Jul 3, 2024
c643a3c
Fixed bootstrap
Frozen Jul 4, 2024
9cf4cd2
Custom genesis generation for [email protected]+.
Frozen Jul 16, 2024
1939b71
Fixed 1.19 imports.
Frozen Jul 16, 2024
293309c
Fixed 1.19 imports.
Frozen Jul 17, 2024
672a2fe
Replaced 1.20 keys.
Frozen Jul 18, 2024
1412f47
100% coverage.
Frozen Jul 18, 2024
963d519
Fixed trailing zeroes.
Frozen Jul 19, 2024
2bd71bf
Rebased & Fixed protobuf usage.
Frozen Jul 23, 2024
edceca8
PrintPeers
Frozen Jul 23, 2024
c69df17
No security
Frozen Jul 23, 2024
73df3bd
Mplex compability.
Frozen Jul 23, 2024
5d869db
Mplex 6&0 compability.
Frozen Jul 23, 2024
92af759
Fixed failing tests.
Frozen Jul 24, 2024
45c0539
Fixed failing tests.
Frozen Jul 24, 2024
74f8a29
Added logs.
Frozen Jul 24, 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_*
13 changes: 5 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.21.11
go_import_path: github.com/harmony-one/harmony
cache:
directories:
Expand All @@ -14,12 +14,10 @@ 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
Expand All @@ -28,7 +26,6 @@ install:
- echo $TRAVIS_PULL_REQUEST_BRANCH
- 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
- (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
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,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 +108,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 @@ -180,3 +186,6 @@ debug_external: clean

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

protofiles:
bash ./scripts/gogenerate.sh
70 changes: 70 additions & 0 deletions Tests.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
FROM golang:1.21

WORKDIR $GOPATH/src/github.com/harmony-one

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

# These are split into multiple lines to allow debugging the error message that I cannot reproduce locally
# The command `xxx` returned a non-zero code: 100
RUN apt clean > /dev/null 2>1
RUN apt update > /dev/null 2>1
RUN apt upgrade -y > /dev/null 2>1
RUN apt update -y > /dev/null 2>1
RUN apt install -y unzip libgmp-dev libssl-dev curl git jq make gcc g++ bash sudo python3 python3-pip

#RUN #git clone https://github.com/harmony-one/harmony.git > /dev/null 2>1 \
RUN git clone https://github.com/harmony-one/bls.git > /dev/null 2>1
RUN git clone https://github.com/harmony-one/mcl.git > /dev/null 2>1

# Fix complaints about Docker / root / user ownership for Golang "VCS stamping"
# https://github.com/golang/go/blob/3900ba4baf0e3b309a55b5ac4dd25f709df09772/src/cmd/go/internal/vcs/vcs.go
RUN git config --global --add safe.directory $GOPATH/src/github.com/harmony-one/harmony > /dev/null 2>1 \
&& git config --global --add safe.directory $GOPATH/src/github.com/harmony-one/bls > /dev/null 2>1 \
&& git config --global --add safe.directory $GOPATH/src/github.com/harmony-one/mcl > /dev/null 2>1

# Install testing tools
RUN curl -L -o /go/bin/hmy https://harmony.one/hmycli > /dev/null 2>1 && chmod +x /go/bin/hmy > /dev/null 2>1

RUN git clone https://github.com/coinbase/rosetta-cli.git > /dev/null 2>1
RUN cd rosetta-cli && make install > /dev/null 2>1

# Build to fetch all dependencies for faster test builds
WORKDIR $GOPATH/src/github.com/harmony-one/harmony
COPY . .
# Выполняем команду pwd для вывода текущего каталога
RUN echo "Current directory:" && pwd

# Проверяем содержимое каталога
RUN echo "Listing directory contents:" && ls -la

RUN go mod tidy
#RUN go get github.com/pborman/uuid > /dev/null 2>1
#RUN go get github.com/rjeczalik/notify > /dev/null 2>1
#RUN go get github.com/cespare/cp > /dev/null 2>1
#RUN go get github.com/libp2p/go-libp2p-crypto > /dev/null 2>1
#RUN go get github.com/kr/pretty > /dev/null 2>1
#RUN go get github.com/kr/text > /dev/null 2>1
#RUN go get gopkg.in/check.v1 > /dev/null 2>1
RUN bash scripts/install_build_tools.sh > /dev/null 2>1
RUN make
#RUN rm -rf harmony


WORKDIR $GOPATH/src/github.com/coinbase


WORKDIR $GOPATH/src/github.com/harmony-one/harmony/tests

#COPY scripts scripts
#COPY rpc_tests rpc_tests
#COPY configs configs
#COPY requirements.txt requirements.txt

WORKDIR $GOPATH/src/github.com/harmony-one/harmony

# Since we are running as root in Docker, `--break-system-packages` is required
RUN python3 -m pip install -r tests/requirements.txt --break-system-packages
RUN chmod +x tests/scripts/run.sh


ENTRYPOINT ["/go/src/github.com/harmony-one/harmony/tests/scripts/run.sh"]
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