Proto commits in harmony-one/harmony

These 86 commits are when the Protocol Buffers files have changed:

Commit:1d8dfe6
Author:Frozen
Committer:GitHub

Broadcast vote power. (#4748) * Broadcast vote power. * Moved `GetLastSigningPower` from private api to public. * Fix for view change sign power. * Rebased and fixed conflicts. * Fix for broadcasting consensus vote power.

The documentation is generated from this commit.

Commit:f3d3a5f
Author:frozen
Committer:frozen

Broadcast vote power.

The documentation is generated from this commit.

Commit:c44c2ea
Author:Uladzislau Muraveika
Committer:GitHub

feat/keep tests in separate repo for upgrade to 1.22 (#4736) * Test. * 1.21.11 * Fixed rosetta * Fixed bootstrap * Custom genesis generation for go@1.20+. * Fixed 1.19 imports. * Fixed 1.19 imports. * Replaced 1.20 keys. * 100% coverage. * Fixed trailing zeroes. * Rebased & Fixed protobuf usage. * Compatibility with go@1.19. * Regenerated proto files to the latest version. * Disabled transport security. * Go@1.22 * fix: add fetch to the the travis scripts * fix: point travis to the 1.22 golang tests * set p2p NoTransportSecurity default to false * feat(go version) - bump go version in Dockerfiles and README.md * Go 1.22 tags. --------- Co-authored-by: frozen <355847+Frozen@users.noreply.github.com> Co-authored-by: Nita Neou (Soph) <soph@harmony.one>

Commit:f2ced5c
Author:frozen
Committer:Uladzislau Muraveika

Test.

Commit:ba3ee54
Author:frozen

Crosslink v2.

Commit:89ad26e
Author:frozen
Committer:frozen

Test.

Commit:21f5a80
Author:Konstantin
Committer:GitHub

Revert "Broadcast sign power (#4683)" (#4718) This reverts commit 0e74201334b0d253462c2aaa899116fc4b2a743c.

Commit:f2be022
Author:frozen
Committer:frozen

Test.

Commit:5dee56d
Author:Konstantin
Committer:GitHub

Revert "Broadcast sign power (#4683)" This reverts commit 0e74201334b0d253462c2aaa899116fc4b2a743c.

Commit:0e74201
Author:Konstantin
Committer:GitHub

Broadcast sign power (#4683)

Commit:e2043ae
Author:frozen
Committer:frozen

Broadcast sign power

Commit:d49715e
Author:Gheis Mohammadi
Committer:GitHub

add new functions to p2p stream client for sharing the full states (#4540) * add new functions to p2p stream client for sharing the full states * remove extra comments, add bytes checking * add client tests for new p2p stream client functions * rename new client functions * complete tests for new functions of p2p stream client

Commit:a4d6ffc
Author:“GheisMohammadi”

refactor client GetReceipts to be able to fetch array of multiple receipts

Commit:2ca061c
Author:“GheisMohammadi”
Committer:“GheisMohammadi”

initial version of client with required state sync functionalities

Commit:c698ee4
Author:Frozen
Committer:GitHub

Feature get blocks by height. (#4078) * Support getting block by height. * Fix to compile. * Http method. * Generate fix. * Install protoc-gen-go-grpc. * Added limit to avoid abuse, small fixes. Co-authored-by: Konstantin <k.potapov@softpro.com>

Commit:fc4dc9f
Author:Leo Chen

[ci] fix travis build Signed-off-by: Leo Chen <leo@harmony.one>

Commit:e8266f5
Author:Jacky Wang
Committer:Jacky Wang

[sync] ease the verification on dns client side, enable server forward compatibility

Commit:b91db85
Author:Jacky Wang
Committer:Jacky Wang

[sync] add commit signature in peer registeration and new block push

Commit:d4ae4fb
Author:Jacky Wang
Committer:Jacky Wang

[sync] added commit sig verification logic to legacy sync

Commit:c05e150
Author:Jacky Wang
Committer:Jacky Wang

[stream] rename dns syncing package to legacysync

Commit:1158f5a
Author:Jacky Wang

[stream] removed epoch state related experimental code.

Commit:c34f744
Author:Jacky Wang
Committer:Jacky Wang

[stream] added commit sig in sync stream protobuf.

Commit:3dcc92c
Author:Jacky Wang
Committer:GitHub

[stream] added sync stream protobuf message module (#3561) Co-authored-by: Rongjian Lan <rongjian.lan@gmail.com>

Commit:dc24b3a
Author:Rongjian Lan

Basic multi-sig logic

Commit:79cf6af
Author:Rongjian Lan
Committer:GitHub

revert multi-sig messaging code (#3361) * revert multi-sig messaging code

Commit:f42338c
Author:Rongjian Lan
Committer:GitHub

Add back multi-sig support and fix the multi-sig check for harmony nodes (#3337) * Revert "Revert "Add multi-sig merged messaging logic (#3300)"" This reverts commit cbd11331b46d62112f1457a2d1c23c0641451d66. * Allow harmony nodes to sign multisig from multiple accounts

Commit:a5fa880
Author:Rongjian Lan
Committer:GitHub

Revert "Add multi-sig merged messaging logic (#3300)" (#3326) This reverts commit ecf151592e4fa2cc1936c649f9b186a398ceb3bc.

Commit:ecf1515
Author:Rongjian Lan
Committer:GitHub

Add multi-sig merged messaging logic (#3300) * Revert "[go.mod] version upgrade of libp2p modules" This reverts commit ce53468e3e78c81494fb0e99d93e4bf4022c7bd1. * Add multi-sig merged messaging logic * fix view change signature issue * support multi-sig consensus messages * Add multi-sig support for slashing * Fix bls mask issue in looping * Fix multisig aggregation issue * Make multisig bitmap setting atomic * Fix for PR comments * Update pb.go * Revert "Update pb.go" This reverts commit be625b80c0bcb709e0d890109e7e7c9b644184cb. * Resolve comments and fix slashing logic * fix test * revert slash logic change * Add missing field in slash moment * Fix comment

Commit:8a08da6
Author:Rongjian Lan
Committer:GitHub

Remove unused code and add benchmark for consensus msg check (#3211)

Commit:7c292f6
Author:Rongjian Lan
Committer:GitHub

Fix viewID issue on prepared block during view change (#2972) * Fix viewID issue on prepared block during view change * Add more checks and remove comments * Fix lint * update rlp encode pointer * Revert go gen changes * add go gen code * [api] Fix proto to pass travis Co-authored-by: Edgar Aroutiounian <edgar.factorial@gmail.com>

Commit:5203329
Author:Edgar Aroutiounian
Committer:GitHub

[proto] Undo protobuf change, annotate with deprecated (#2773) * [consensus] staticcheck fixes * [proto] Remove unused file * [proto] Undo changes to proto, annotate fields with deprecated for future reference * [api] Make entire dir as was a7b7961~1 * [api] Remove dead tests * [proto] Add deprecate tags * [api] Autogen update since add deprecation tags, it just generated comments * [api] Remove manager test again * [api] Remove dead functions * [api] Whitespace * [api] Whitespace * [api] Whitespace * [p2p] Remove noisy log

Commit:1ca1f0d
Author:Rongjian Lan
Committer:GitHub

Merge master to t3 (#2766) * Squashed commit of the following: commit 70a4272fa3598730eda66a24d0cb5ab704b977bd Author: Rongjian Lan <rongjian.lan@gmail.com> Date: Mon Apr 6 17:06:33 2020 -0700 fix block proposal ordering; other offchain commits change (#2761) * fix block proposal ordering; other offchain commits change * remove div by 0 checks * Fix imports commit 054c3cbb8e798de779a59c87c22877b365b36061 Author: Ganesha Upadhyaya <ganeshrvce@gmail.com> Date: Mon Apr 6 13:42:07 2020 -0700 [consensus][viewchange] fix total power of signers in IsQuorumAchieved for view change (#2758) commit 094a61301da1a363788b3a65c26b20553129c482 Author: Edgar Aroutiounian <edgar.factorial@gmail.com> Date: Mon Apr 6 11:45:50 2020 -0700 [project] Unused yaml files, staticcheck fixes, dead tests that only delay build (#2755) * [project] Unused yaml files * [core] Remove dead tx_cacher.go * [project] Further fixes from staticcheck commit a7b79616e24402ff10f334eec1ea029cd960f9be Author: Edgar Aroutiounian <edgar.factorial@gmail.com> Date: Mon Apr 6 10:04:54 2020 -0700 [project] More Spring Cleaning (#2751) * [project] Remove hmyclient * [drand] Remove dead drand * [drand] Remove dead code in proto, more dead drand things * [project] Remove dead demo tool * [project] Remove dead Lottery solidity * [project] Remove dead hmy client main * [node] Remove unused variable in test code * [project] Remove keygen * [project] Remove not useful test commit ba1c0cd0a3237dcc094266c30253e401b65e3552 Author: Edgar Aroutiounian <edgar.factorial@gmail.com> Date: Sun Apr 5 23:53:03 2020 -0700 [blockchain] Create fresh big int, remove more dead code from static … (#2749) * [blockchain] Create fresh big int, remove more dead code from static analysis * [measure] Remove IzZero/IsNil checks commit 191f1d5ee266d32cf08f243f953925718fdb61c1 Author: Rongjian Lan <rongjian.lan@gmail.com> Date: Sun Apr 5 21:11:21 2020 -0700 Final attempt: Don't div by 0; print out debug info (#2746) * Revert "Revert "fix earned-reward by writing the stats only once, remove from UpdateValdiatorVotingPower (#2737)" (#2742)" This reverts commit 832b01dfff0b2fec3cc647f507a8d105a8dbf4a7. * Don't div by 0; print out debug info commit 832b01dfff0b2fec3cc647f507a8d105a8dbf4a7 Author: Edgar Aroutiounian <edgar.factorial@gmail.com> Date: Sun Apr 5 19:40:37 2020 -0700 Revert "fix earned-reward by writing the stats only once, remove from UpdateValdiatorVotingPower (#2737)" (#2742) This reverts commit dc036e64c7fa9b1bc0e34c0da7c67c541b0317fa. commit dc036e64c7fa9b1bc0e34c0da7c67c541b0317fa Author: Ganesha Upadhyaya <ganeshrvce@gmail.com> Date: Sun Apr 5 17:18:36 2020 -0700 fix earned-reward by writing the stats only once, remove from UpdateValdiatorVotingPower (#2737) commit 66f26e85084d2e5b8385c5e4b9888171c93e664e Author: Rongjian Lan <rongjian.lan@gmail.com> Date: Sun Apr 5 17:06:50 2020 -0700 do snapshot for validators at last block of epoch (#2736) commit f2524a888d6133e7d729ee22031d198695e8ce5f Author: Rongjian Lan <rongjian.lan@gmail.com> Date: Sun Apr 5 12:33:35 2020 -0700 Make validator snapshot on new validator too (#2733) commit 350b7a0bb45c68889547ac5b9521f46dcd97ced8 Author: Rongjian Lan <rongjian.lan@gmail.com> Date: Sat Apr 4 23:41:19 2020 -0700 fix validator snapshot cache commit 8f5f287c749c62209f2dd08bfc0dbfc88df7b225 Author: Leo Chen <leo@harmony.one> Date: Sat Apr 4 19:09:38 2020 -0700 [node.sh] use rclone to fast sync harmony_db_0 (#2709) Signed-off-by: Leo Chen <leo@harmony.one> commit 05f2e20a39e3472ee1ff506aa8b974a988a9a970 Author: Rongjian Lan <rongjian.lan@gmail.com> Date: Sat Apr 4 19:00:28 2020 -0700 make validator snapshot consistent with election (#2726) * make validator snapshot consistent with election * fix condition with only beacon chain * Fix epoch number * Fix stats update nil epoch issue commit 24a17feecdbd91b8bc3c8a758be6e2f0c2e2b973 Author: Edgar Aroutiounian <edgar.factorial@gmail.com> Date: Sat Apr 4 16:38:12 2020 -0700 [state] ValidatorWrapper div zero panic fix - (#2724) * [state] Error on div zero * [state] Do not pay out commit when commit is 0% * [state] Put whole commission in guarded block * [core] Reward cannot be zero * [state] return nil, not hard error commit 1f83ebf6a6f2853d9df2b18fd658a82a32c4f530 Author: Minh Doan <40258599+mikedoan@users.noreply.github.com> Date: Sat Apr 4 14:38:55 2020 -0700 change explorer node storage folder (#2720) commit 3aa08e9e3b4f17423eda01138b2900e0abf6f0c0 Author: Edgar Aroutiounian <edgar.factorial@gmail.com> Date: Sat Apr 4 10:21:51 2020 -0700 [rpc] Show both latest header of beacon chain and shard chain (#2714) commit 1a2c23ada524e4cadc89001bec60f9b5147885b8 Author: Edgar Aroutiounian <edgar.factorial@gmail.com> Date: Fri Apr 3 17:49:24 2020 -0700 [validator] Hide one field from JSON (#2705) # Conflicts: # core/tx_cacher.go * fix merge conflict

Commit:a7b7961
Author:Edgar Aroutiounian
Committer:GitHub

[project] More Spring Cleaning (#2751) * [project] Remove hmyclient * [drand] Remove dead drand * [drand] Remove dead code in proto, more dead drand things * [project] Remove dead demo tool * [project] Remove dead Lottery solidity * [project] Remove dead hmy client main * [node] Remove unused variable in test code * [project] Remove keygen * [project] Remove not useful test

Commit:d659a1b
Author:Rongjian Lan

remove legacy staking code

Commit:518f98e
Author:Dennis Won

add block header download api to grpc

Commit:cad89b0
Author:chao
Committer:chaosma

change viewID from uint32 to uin64 in consensus and to big.Int in header

Commit:1559279
Author:chao
Committer:chaosma

* add hard limit for node syncing request to avoid grpc connection timeout * clean node syncing cache after in sync

Commit:4ea2e34
Author:chao
Committer:chaosma

move block from announce to prepared message

Commit:4d21380
Author:Chao Ma
Committer:chaosma

change location of consensus message protobuf

Commit:23cdabc
Author:Rongjian Lan

Fix consensus stability

Commit:5e3d4c1
Author:chao
Committer:chaosma

fix newview message payload crash; defense different sets of prepared messages attack

Commit:7cd24da
Author:chao
Committer:chaosma

modify the naming of variables to make code cleaner address pr comments

Commit:69cfe9b
Author:chao
Committer:chaosma

* add view changing logic * add view change message handler * modify view change message constructor

Commit:b53d8fb
Author:chaosma
Committer:GitHub

pbft normal path (#851) * PBFT view change framework added * timeout class and pbft_log class added for view change * consensus protocol worked under PBFT normal mode

Commit:7f783e5
Author:Leo Chen

removed accounts/usbwallet Signed-off-by: Leo Chen <leo@harmony.one>

Commit:d794c7b
Author:Leo Chen

import ethereum accounts package copy from the following commit. commit 9b831d74fbee3d59ceca380a40e4a9af1a55cfca Author: Guillaume Ballet <gballet@gmail.com> Date: Tue May 7 18:22:24 2019 +0200 accounts/usbwallet: fix a comment typo in trezor driver (#19535) Signed-off-by: Leo Chen <leo@harmony.one>

Commit:e029b7e
Author:chaosma
Committer:GitHub

basic framework for view change (#827) * factor consensus functions into consensus_utils, make consensus.go cleaner * add minimum pbft view change structure add timeout class for pbft view change * add version to distinguish existing and new consensus

Commit:1a15ad0
Author:Minh Doan
Committer:Minh Doan

Fix comments server code & rebase.

Commit:e87c6e7
Author:Minh Doan
Committer:Minh Doan

setup working pipeline - step 1

Commit:da316a8
Author:Minh Doan
Committer:Minh Doan

introduce new message.proto to support demo app.

Commit:88b2269
Author:Minh Doan
Committer:Minh Doan

Add newclientsupport service.

Commit:b1cbad9
Author:Rongjian Lan
Committer:GitHub

Merge pull request #613 from harmony-one/rj_branch add public key into consensus/drand message

Commit:ebd5b8e
Author:chao
Committer:chaosma

replace consensus blsAddr with new syncID for state syncing

Commit:af8139f
Author:chao
Committer:chaosma

refactor state sync; decouple from consensus

Commit:64d6ee8
Author:Rongjian Lan

add public key into consensus/drand message

Commit:1dbb1a9
Author:Rongjian Lan

remove validator IDs

Commit:04e6509
Author:Minh Doan
Committer:Minh Doan

change message.proto to introduce client service.

Commit:d5bfa93
Author:Minh Doan
Committer:Minh Doan

introduce fields for drand message

Commit:6fc746b
Author:Minh Doan
Committer:Minh Doan

clean up - remove drand.proto

Commit:9981e50
Author:Minh Doan
Committer:Minh Doan

remove consensus proto

Commit:f3ffc65
Author:Leo Chen
Committer:Leo Chen

[cleanup] remove libp2p unicast support fix test cases after remove libp2p unicast Signed-off-by: Leo Chen <leo@harmony.one>

Commit:6d5dd2a
Author:Minh Doan
Committer:Minh Doan

apply new message protocol

Commit:3b5836c
Author:Minh Doan
Committer:Minh Doan

fix typos

Commit:b1ad963
Author:Minh Doan
Committer:Minh Doan

update proto file

Commit:f886b60
Author:Minh Doan
Committer:Minh Doan

modify logic in staking service

Commit:10a88a4
Author:Rongjian Lan

Add drand package for randomness

Commit:86f145f
Author:Minh Doan
Committer:Minh Doan

create staking transaction

Commit:0fb2a43
Author:Minh Doan
Committer:Minh Doan

modify staking proto

Commit:c64b6e8
Author:Minh Doan
Committer:Minh Doan

rename services to service

Commit:4b15b3a
Author:Leo Chen
Committer:Leo Chen

Merge remote-tracking branch 'origin/release1901' Signed-off-by: Leo Chen <leo@harmony.one>

Commit:fe06318
Author:Leo Chen
Committer:Leo Chen

add PeerID in beacon chain RPC message wallet needs to use PeerID to talk to leaders Signed-off-by: Leo Chen <leo@harmony.one>

Commit:191b190
Author:Rongjian Lan

Merge branch 'master' of github.com:harmony-one/harmony into rj_branch

Commit:b09bccb
Author:Minh Doan
Committer:Minh Doan

introduce universal message

Commit:39b941d
Author:Rongjian Lan

Migrate to BLS

Commit:3161a42
Author:chaosma
Committer:GitHub

state syncing integration (#283) * state syncing integration * fix grpc too many sockets issue; fix last mile catch up issue * fix in sync message not updated; modify sync_test with new flag; pass golint test * address issues in the pull request

Commit:7b2d36f
Author:Leo Chen
Committer:Leo Chen

move client to api/client Signed-off-by: Leo Chen <leo@harmony.one>

Commit:3bedff9
Author:ak

moving services folder

Commit:94f8944
Author:ak

beaconchain folder to internal and proto

Commit:4578cc6
Author:Rongjian Lan

move consensus/proto to api/consensus; change refernece package name to consensus_proto

Commit:80e05b8
Author:Rongjian Lan

Migrate consensus message to grpc proto

Commit:97e169f
Author:Rongjian Lan

Implement faucet functionality and sharded transaction for wallet

Commit:bfaa0fd
Author:Rongjian Lan

Add rpc server for beacon chain

Commit:2a8f65d
Author:Rongjian Lan

Add support for account model balance check

Commit:25ca704
Author:Minh Doan
Committer:Minh Doan

move syncing under services

Commit:8b84044
Author:Minh Doan
Committer:Minh Doan

change proto file and its implementation

Commit:ec51aa1
Author:Minh Doan
Committer:Minh Doan

add download proto