Rongjian Lan
987a8a38dc
Merge branch 'master' of github.com:harmony-one/harmony into rj_branch
6 years ago
Leo Chen
e2b0452519
Merge pull request #465 from LeoHChen/libp2p
...
Use Libp2p pubsub to reach consensus
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
3f5841e655
add a readme.md file to explain the ping/pong messages
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Rongjian Lan
c86566b849
Fix linter
6 years ago
Rongjian Lan
499d9125c9
Add a simple hash chain delay function
6 years ago
Rongjian Lan
b0c92961b5
Merge branch 'master' of github.com:harmony-one/harmony into rj_branch
6 years ago
Leo Chen
e727b2c99a
fix some more go test error
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Leo Chen
bd8c13cbf6
fix go test error
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Leo Chen
4fe6e8d1d1
Merge pull request #464 from LeoHChen/walletfix
...
upload lib for wallet on mac/linux
6 years ago
Leo Chen
9628430bdf
slow down the pace of sending ping message after received pong
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Rongjian Lan
1924b6b83f
Merge branch 'master' of github.com:harmony-one/harmony into rj_branch
6 years ago
Rongjian Lan
93380c9769
Merge pull request #458 from harmony-one/rj_branch
...
Change rand seed uint32; Add RandPreimage in block; Add pRnd into new block
6 years ago
Rongjian Lan
edf06d1fda
Add RandPreimage in block; Add pRnd into new block
6 years ago
Rongjian Lan
0418e663a6
Change rand seed uint32
6 years ago
Leo Chen
214ff491e0
check validator to avoid nil pointer access
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Leo Chen
d682064202
set the right GroupID in node
...
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
Leo Chen
464527a99a
fix a nil pointer issue cased program crash
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Leo Chen
57ee1d6018
support multiple groups in discovery service
...
add an action channel to support dynamic pause/resume of discovery
service.
it also enables two stage discovery.
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Leo Chen
a27cff729c
use a channel to signal consensus service to start
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Leo Chen
702e5e2f19
add leader pubkey in pong message
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Leo Chen
81877a149a
add service to regular shard
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Leo Chen
cc5c09ac0c
upload lib for wallet on mac/linux
...
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Eugene Kim
844bb37577
Merge pull request #463 from harmony-ek/fix_stream_leak
...
Fix stream leak
6 years ago
Eugene Kim
f96ad9727b
Fix stream leak
...
Since streams were multiplexed over connections, this wouldn't have
caused file descriptor/socket leaks; however, it would have definitely
caused memory leak (for the stream data structures).
6 years ago
Leo Chen
b875062a61
Merge pull request #461 from LeoHChen/master
...
fix command parameter in wallet
6 years ago
chaosma
8544a90ed2
genesis block binary creation ( #462 )
6 years ago
Rongjian Lan
e64820f2a2
Merge pull request #460 from harmony-one/rj_temp
...
Remove keytransparency and trillian dependency, we actually doesn't necessarily need them.
6 years ago
Eugene Kim
ea0e5a04da
Merge pull request #457 from harmony-ek/go_generate_redux
...
Check if all generated files are up to date in Travis-CI
Beyond this commit, Travis-CI will regenerate all generated and
checked-in source code to see if any of them has changed. If so, it
means that some of the generated files are outdated, so Travis-CI will
fail. This happens mostly when someone touches mocked interfaces or
protobuf source files.
6 years ago
Leo Chen
a3ef1d8a96
fix command parameter in wallet
...
be consistent with the testnet document
Signed-off-by: Leo Chen <leo@harmony.one>
6 years ago
Rongjian Lan
c0741c6af3
Remove testdata
6 years ago
Rongjian Lan
8176fbf511
Remove trillian dependency in p256
6 years ago
Rongjian Lan
213b1c6d82
Remove the extra tests that havev heavy external dependency, we actually don't need them
6 years ago
Rongjian Lan
68a3b99bfe
Add keytransparency and trillian into submodule
6 years ago
Eugene Kim
5b460a986e
Add help
...
Suggested-by: Leo Chen <leo@harmony.one>
6 years ago
Eugene Kim
7615c7bf5a
Refactor for readability
...
Suggested-by: Leo Chen <leo@harmony.one>
6 years ago
Rongjian Lan
afcdb8b63d
Add RandPreimage in block; Add pRnd into new block
6 years ago
Rongjian Lan
f54abebb9a
Change rand seed uint32
6 years ago
Eugene Kim
3034d8c217
Install protoc and gencodec
...
mockgen is installed as part of go get -t ./... (which pulls in gomock).
6 years ago
Rongjian Lan
f6ce924bdf
Merge pull request #449 from harmony-one/rj_branch
...
Add real vrf into drand with validator generating vrf and leader verifying them; Also reduce manager_test.go's delay
6 years ago
Eugene Kim
7d19151be7
Check if generated files are out of date
6 years ago
Eugene Kim
687e01f137
Regenerate
6 years ago
Eugene Kim
59d53cb294
Add //go:generate for mocks and .pb.go files
...
Mocks have their //go:generate line in the corresponding source Go file.
This way, editors can run go generate automatically on save.
.pb.go files have their //go:generate line in the corresponding .go
files (without .pb).
6 years ago
Eugene Kim
1fef4eb5f0
Merge pull request #456 from harmony-ek/clean_up_p2p
...
Clean up p2p
6 years ago
chaosma
3f6bb9e19b
modify deploy with state sync; add more info in debug log ( #450 )
6 years ago
Eugene Kim
05fdaa9197
Introduce and use uniform host logger
...
The host logger includes host ID (libp2p peer ID), and inherits
IP address and port from the one created by utils.GetLogInstance().
6 years ago
Eugene Kim
2680b7cc7d
Fix gometalinter warnings
6 years ago
Eugene Kim
610c02803d
Tag libp2p packages with libp2p_ prefix
...
This is because we are introducing more and more parallel P2P concepts
(libp2p peer versus our own peer, for example). Explicit tagging makes
it easier for untrained eyes to understand which side the code refers
to: If it's prefixed with libp2p_, it's libp2p; if not, it's our p2p.
While we are at this, apply the std → 3rd-party → local import grouping,
and also rename multiaddr to ma (the upstream canonical name of
go-multiaddr) in the affected files.
6 years ago