Edgar Aroutiounian
25938969ca
[node][p2p] Unused fields, exit early on redundant ping, fold p2p constructor, expose topics, remove too much abstraction ( #2818 )
...
* [p2p] Remove unused Method
* [p2p] More dead function
* [node] Unused BCPeers field
* [node] Need to exit early if have ping
* [p2p] Remove unnecessary & confusing abstraction
* [p2p] Expose topics
5 years ago
Edgar Aroutiounian
82b71619d2
[node] Redundant field removed - dead files & scripts , update deprecated libp2p package names, fold p2p code ( #2817 )
...
* [project] Remove unused test script
* [project] Remove stale testplan
* [project] Remove stale test configs
* [internal] Unused code
* [node] Remove redundnat peer count field
* [p2p] Remove leftover idea code, fix deprecated warnings
* [project] Remove .gitmodule
* [internal] Fix travis, update deprecated package usage
* [node] Remove ineffective test
* [p2p] Update deprecated package names & func usage
* [p2p] Make error explicit, remove unidiomatic return signature
* [p2p] Remove dead code, lower max p2p message size max limit
* [project][p2p] Remove dead p2p code, fold all p2p code into one file
* [p2p] Remove unsed function parameter
* [node] Add log in bootstrap
* [node] Unnecessary pointer usage
* [p2p] Unused errors.go
* [node] Log out when next consensus check in bootstrap
5 years ago
Edgar Aroutiounian
2836f0f620
[project] Remove over complicated packages, useless tests, dead functions ( #2780 )
...
* [project] Dead test
* [node] If fields always same, then just use the constant
* [project] Remove overcomplicated ctxerror
* [project] Remove more dead tests, adjust error replacing ctxerror
* [project] More dead tests, fix travis complaint on Errorf
* [node.sh] Remove is-genesis
5 years ago
Edgar Aroutiounian
a1c8156afc
[project] Endless tech debt ( #2777 )
...
* [internal] Remove dead RPC/wallet
* [rpc] Reduce API surface area for dead RPC
* [node] Remove dead flags, unused setters
* [project] Unused logger, too many loggers
* [core] staticcheck fixes, remove unused db keys
* [project] More dead code through, now in param and genesis
* [internal] Useless test
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
d21f68d34d
[go.mod][pubsub][test] Update libp2p, use MaxMessage at p2p level protection, remove dead code ( #2692 )
...
* [project] Update Dockerfile
* [main] Whitespace
* [p2p][go.mod] Update libp2p, pick pubsub from master as of commit now time. Limit max p2p message size
* [go.mod] Unused package
* [project] Remove p2pchat test app
* [project] Remove unused test/txgen
* [project] Remove two one off test programs, unused shell scripts
* [p2p] Temp log out sign of receive p2p message
* [p2p] Use 3 MB as max message size
5 years ago
Edgar Aroutiounian
4e85d7d866
[service][node] Project Tech debt clean up, remove wallet ( #2664 )
...
* [project][p2p] Remove wallet, client roles & associated function calls
* [node][service] Remove unused service types
* [wallet] Remove internal wallet code
* [test] Remove wallet from debug.sh
* [test] More cleanup in debug.sh, deploy.sh
* [test] Adjust duration back into local test script
* [test] Increase duration
* [test] Exit with 0, remove RESULT_FILE as not made anymore
5 years ago
Edgar Aroutiounian
f8cbd880bb
[project] Bls -> BLS & remove dead Stake solidity contract ( #2652 )
5 years ago
Edgar Aroutiounian
935531e5d5
[p2p] Remove incorrect logger usage ( #2646 )
5 years ago
Leo Chen
4580b11eda
[p2p] remove redundant debug log message in getTopic
...
Signed-off-by: Leo Chen <leo@harmony.one>
5 years ago
Leo Chen
e3f8718204
[p2p] support options in pubsub
...
increase peer outbound queue size from default 32 to 64
use P2P_TRACEFILE to control the p2p pubsub tracer
Signed-off-by: Leo Chen <leo@harmony.one>
5 years ago
Leo Chen
af2661022f
Revert "Merge pull request #1978 from LeoHChen/revert-libp2p"
...
This reverts commit 003b6c6ed5
, reversing
changes made to efc0ae111c
.
5 years ago
Eugene Kim
c9febf402a
Emit fatal init error details to stderr w/o panics
5 years ago
Leo Chen
a9a4d624c5
Revert "Merge pull request #1862 from harmony-ek/pubsub_discovery"
...
This reverts commit 93dade6a72
, reversing
changes made to b8456dd83d
.
5 years ago
Eugene Kim
65a066c70b
Break import cycle at ./internal/utils → ./p2p
5 years ago
Eugene Kim
ff2e0072c9
Use topic-based libp2p pubsub interface
...
https://github.com/libp2p/go-libp2p-pubsub/releases/tag/v0.2.0 : “The old
pubsub.Publish and pubsub.Subscribe methods are still usable, but have
been deprecated”
5 years ago
Eugene Kim
f3e268ab2b
Generate mocks in the same package
...
This enables mocking private interfaces.
5 years ago
Leo Chen
2240b8d48f
[p2p] add network type prefix to group id
...
this is solve the problem of validators in different network connected
with each others.
* mainet is still using the original harmony prefix to keep backward
compatibility
* pangaea uses "pangaea" as network prefix
* testnet uses "testnet" as network prefix
All nodes in Pangaea and Testnet need to restart to re-connect with each
other. Mainnet nodes have no changes.
Signed-off-by: Leo Chen <leo@harmony.one>
5 years ago
Leo Chen
591c6fbece
[ping] display blskey in ping message
...
Signed-off-by: Leo Chen <leo@harmony.one>
5 years ago
Rongjian Lan
6ade661f9b
Wire receipts in block proposal; fix lint
5 years ago
Rongjian Lan
5580d0df15
Add receipt local storage and pending list
5 years ago
Kai Lee
d588ce1e4b
Replace all logs in p2p module to use zerolog
5 years ago
Kai Lee
4e35e7d749
Replaced loggers in `p2p/` with custom shared logger
5 years ago
Rongjian Lan
492aac7fdd
more log change
6 years ago
Rongjian Lan
a1f2acb57d
Improve logging readability
6 years ago
Richard Liu
fe217ad2b7
more rpc APIs. ( #863 )
...
* added readme
* more RPC APIs
* update for comments; fix travis issues
* update auto-generated host_mock.go
6 years ago
Leo Chen
a46514120d
[crash] fix nil pointer error #749
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Eugene Kim
ba6f4b24d0
Update p2p/host/hostv2/hostv2.go
...
Co-Authored-By: LeoHChen <leo@harmony.one>
6 years ago
Eugene Kim
11459a4ea0
Add regression test
6 years ago
Leo Chen
a88eb643e6
[crash] fix nil pointer error #749
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Rongjian Lan
f72cb43b83
make 1+3 sharded network work locally with deploy.sh
6 years ago
Leo Chen
313ddac6ca
[utils] move GetAddressHex to utils module
...
* add test cases for GetAddressHex
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Leo Chen
2a3b4bc3ec
[cleanup] remove unused file
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Rongjian Lan
1dbb1a9250
remove validator IDs
6 years ago
animeshg
2064c792a7
Add unit tests in group
6 years ago
animeshg
e5a7c1ba49
Add tests in drand, group & backoff
6 years ago
Minh Doan
ca25ea657a
fix goimports
6 years ago
Minh Doan
9a2cfb9080
change BlsPubKey to ConsensusPubKey and remove unnecessary log
6 years ago
Minh Doan
a4d3c13a18
rename PubKey to BlsPubKey
6 years ago
Leo Chen
7b4e20408d
add global variables to keep all GroupID
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Eugene Kim
b4c69672d4
Regen mocks
...
Apparently mockgen has been updated while we had regen check broken.
6 years ago
Leo Chen
f3ffc65401
[cleanup] remove libp2p unicast support
...
fix test cases after remove libp2p unicast
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Rongjian Lan
562ae5078d
Delete some unused consensus code
6 years ago
chaosma
e66aeb4c57
add beaconchain node state syncing ( #502 )
6 years ago
Rongjian Lan
873e37daac
Move contract code to contract.go
6 years ago
chaosma
02aa3d6477
add beaconchain database support for normal shard nodes ( #480 )
6 years ago
Leo Chen
7a1ac90a5b
add shard client support
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Leo Chen
aad244165f
fix build error of unused variable
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Leo Chen
1436dc19e5
remove excessive log messages
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Leo Chen
dd99219ee3
add NotifyService function in the service interface
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago