Konstantin
97eb8d972f
Go vet fixed.
3 years ago
Leo Chen
463ec55c51
[build] update protoc version ( #4013 )
...
Signed-off-by: Leo Chen <leo@harmony.one>
3 years ago
Leo Chen
908ea1ae2a
[ci] update generated .pb files
...
Signed-off-by: Leo Chen <leo@harmony.one>
3 years ago
Leo Chen
fc4dc9ff73
[ci] fix travis build
...
Signed-off-by: Leo Chen <leo@harmony.one>
3 years ago
Rongjian Lan
dc24b3ad52
Basic multi-sig logic
4 years ago
Rongjian Lan
4452b36ee4
Rollup evm to geth v1.9.9 Muir Glacier ( #3356 )
...
* Rollup evm to geth v1.9.9 Muir Glacier
* fix go gen
* update intrinsic gas for istanbul
* Update statedb.Commit
* revert go gen result
* revert protobuf version
* update protobuf
* update go gen files
* set testnet epoch for evm upgrade
4 years ago
Rongjian Lan
79cf6afd37
revert multi-sig messaging code ( #3361 )
...
* revert multi-sig messaging code
4 years ago
Leo Chen
79d43c2ce8
fix test cases
...
updated protoc version
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Leo Chen
7dcdbe7d2b
fix golint
...
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Rongjian Lan
f42338c30b
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 cbd11331b4
.
* Allow harmony nodes to sign multisig from multiple accounts
4 years ago
Rongjian Lan
a5fa880ae3
Revert "Add multi-sig merged messaging logic ( #3300 )" ( #3326 )
...
This reverts commit ecf151592e
.
4 years ago
Rongjian Lan
ecf151592e
Add multi-sig merged messaging logic ( #3300 )
...
* Revert "[go.mod] version upgrade of libp2p modules"
This reverts commit ce53468e3e
.
* 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 be625b80c0
.
* Resolve comments and fix slashing logic
* fix test
* revert slash logic change
* Add missing field in slash moment
* Fix comment
4 years ago
Leo Chen
b560f88978
[libp2p/consensus] p2p spamming defense
...
This is a big PR merged many small commits together.
We add the message validation function in libp2p layer.
In the validation function, we check the following conditions
1) the p2p message is a valid consensus message
2) the p2p message sender has a valid public key
3) the sender's public key is in the current committee
4) log the number of invalid/valid messages
After the validation, the valid messages will be forward to the network,
while the invalid messages will be filtered out.
The messages intended for the validator will be handled in the consensus layer.
Signed-off-by: Leo Chen <leo@harmony.one>
4 years ago
Rongjian Lan
7c292f64be
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>
5 years ago
Edgar Aroutiounian
bb538ce6e7
[api] Remove discovery service ( #2947 )
...
* [accounts] Remove dead code
* [api][node] Remove discovery service
* [api] Meaningless test
5 years ago
Edgar Aroutiounian
89fe991d59
[go.mod] Bump libraries ( #2824 )
...
* [go.mod] Bump libraries
* [proto] Regen b/c upgrades protoc, now message API changes
5 years ago
Edgar Aroutiounian
6c6006be44
[project][node] bump max message handlers per topic, update deprecated/staticcheck finds ( #2821 )
...
* [rpc] Remove filter code - it is not used
* [node][project] Remove more dead code, bump max message handler to 200
* [rpc] Undo overzealous filter removal
5 years ago
Edgar Aroutiounian
520332931b
[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
5 years ago
Edgar Aroutiounian
a7b79616e2
[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
5 years ago
Leo Chen
3a10a9feeb
[protobuf] update pb.go after protobuf upgrade to v1.3.2
...
Signed-off-by: Leo Chen <leo@harmony.one>
5 years ago
Leo Chen
feceec6e38
[net] only listen to tcp4 address
...
Signed-off-by: Leo Chen <leo@harmony.one>
5 years ago
Dennis Won
5d7445ab4f
run scripts/install_build_tools.sh to make sure build tools are of correct versions
5 years ago
Dennis Won
ebf750a70d
go generate
5 years ago
Nye Liu
1499169d40
[ #1505 ] Log byte arrays as Hex Strings ( #1506 )
5 years ago
Christopher Liu
597e561b46
[Metrics] Fix Travis and undo zerolog changes
...
- Fix Travis problems
- Undo zerolog overwrite
- Fix tab errors
- Add zerolog to node_metrics
5 years ago
flicker-harmony
bbf06f901f
Add generated pb files
5 years ago
flicker-harmony
7806cd25c7
Fix travis
5 years ago
flicker-harmony
d149c0ccb1
Add metrics service
5 years ago
Kai Lee
9e87c928f1
Replace all logs in api module to use zerolog
5 years ago
chao
cad89b0a4e
change viewID from uint32 to uin64 in consensus and to big.Int in header
6 years ago
Chao Ma
4d21380604
change location of consensus message protobuf
6 years ago
chao
4ea2e34af0
move block from announce to prepared message
6 years ago
Rongjian Lan
23cdabc182
Fix consensus stability
6 years ago
Eugene Kim
a7218a999a
Log errors, mostly at warn (or fatal for UT) level
...
Warn level was chosen for the current behavior: Alert about uncaught
failures but do not alter the code path (yet). More proper error
handling will come later.
6 years ago
chao
5e3d4c110d
fix newview message payload crash; defense different sets of prepared messages attack
6 years ago
chao
7cd24dae6c
modify the naming of variables to make code cleaner
...
address pr comments
6 years ago
chao
69cfe9b633
* add view changing logic
...
* add view change message handler
* modify view change message constructor
6 years ago
chaosma
b53d8fb5bf
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
6 years ago
chaosma
e029b7e622
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
6 years ago
Minh Doan
24d36d2bbb
fix comments and cleanup
6 years ago
Minh Doan
f7212e8fe4
wire up client service & rest client service with harmony
6 years ago
Minh Doan
1a15ad0ed4
Fix comments server code & rebase.
6 years ago
Minh Doan
88b2269a1b
Add newclientsupport service.
6 years ago
Minh Doan
da316a88b1
introduce new message.proto to support demo app.
6 years ago
Minh Doan
41dd25e426
add logic of calling getPlayers and enter
6 years ago
Minh Doan
e87c6e7430
setup working pipeline - step 1
6 years ago
Rongjian Lan
64d6ee80d3
add public key into consensus/drand message
6 years ago
Rongjian Lan
1dbb1a9250
remove validator IDs
6 years ago
Minh Doan
573dddaed0
add newclientsupport and fix tests for client&server of new client support
6 years ago
Minh Doan
06945e9e26
fix comments
6 years ago