Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
556 commits
Select commit Hold shift + click to select a range
5e926c1
Merge pull request #239 from cheng762/feature/rand-grouped-consensus
benbaley Dec 20, 2021
ccbd3af
Merge pull request #240 from WeiLoy/pubsub
benbaley Dec 20, 2021
576cb79
Merge pull request #241 from benbaley/feature/rand-grouped-consensus
benbaley Dec 20, 2021
cf547d1
Clean up redundant data
WeiLoy Dec 20, 2021
301eee5
Increase security check
WeiLoy Dec 20, 2021
1e4c75d
Merge pull request #242 from WeiLoy/pubsub
benbaley Dec 20, 2021
598cfb6
fix test TestServerListen
cheng762 Dec 20, 2021
d455fc0
fix test
cheng762 Dec 20, 2021
fa8170f
Merge pull request #243 from cheng762/feature/rand-grouped-consensus
benbaley Dec 20, 2021
d6c5a2c
Merge pull request #32 from AlayaNetwork/feature/rand-grouped-consensus
niuxiaojie81 Dec 21, 2021
4d0d23c
fix bug
niuxiaojie81 Dec 21, 2021
79326c4
Merge branch 'feature/rand-grouped-consensus' of https://github.com/n…
niuxiaojie81 Dec 21, 2021
c7edb4b
Merge pull request #244 from niuxiaojie-Alaya/feature/rand-grouped-co…
benbaley Dec 21, 2021
fae9c67
rm redundant log
benbaley Dec 21, 2021
a0de00c
fix bug
niuxiaojie81 Dec 22, 2021
cb16f5c
Merge pull request #33 from AlayaNetwork/feature/rand-grouped-consensus
niuxiaojie81 Dec 22, 2021
0df95c8
Merge branch 'feature/rand-grouped-consensus' of https://github.com/n…
niuxiaojie81 Dec 22, 2021
c0f96c5
Merge pull request #245 from niuxiaojie-Alaya/feature/rand-grouped-co…
benbaley Dec 22, 2021
546f7ca
fix dialing bug
cheng762 Dec 23, 2021
050e9ab
Merge branch 'feature/rand-grouped-consensus' of https://github.com/A…
cheng762 Dec 23, 2021
940c7a6
Merge pull request #246 from cheng762/feature/rand-grouped-consensus
benbaley Dec 23, 2021
51f2e3b
refactor validatorpool -> Update
benbaley Dec 23, 2021
e33905f
Merge pull request #247 from benbaley/feature/rand-grouped-consensus
benbaley Dec 23, 2021
d7b8d35
Merge pull request #34 from AlayaNetwork/feature/rand-grouped-consensus
niuxiaojie81 Dec 23, 2021
899ed3b
fix discover dial
cheng762 Dec 23, 2021
d68ebe5
Merge pull request #248 from cheng762/feature/rand-grouped-consensus
benbaley Dec 23, 2021
732567c
remove checkReadyToDial
cheng762 Dec 23, 2021
8029d5f
fix self is consensus node
cheng762 Dec 23, 2021
2f24fac
update
cheng762 Dec 23, 2021
c7a601b
Merge pull request #250 from cheng762/feature/rand-grouped-consensus
benbaley Dec 23, 2021
57f9a68
Merge pull request #35 from AlayaNetwork/feature/rand-grouped-consensus
niuxiaojie81 Dec 24, 2021
b82b78b
fix p2p consensus status
cheng762 Dec 24, 2021
5bec578
fix p2p discover task not done
cheng762 Dec 24, 2021
602cf7c
Merge pull request #251 from cheng762/feature/rand-grouped-consensus
benbaley Dec 24, 2021
968ff5a
Merge pull request #36 from AlayaNetwork/feature/rand-grouped-consensus
niuxiaojie81 Dec 24, 2021
bf67dc1
fix updateConsensusStatus map read
cheng762 Dec 27, 2021
72af9d2
Merge pull request #252 from cheng762/feature/rand-grouped-consensus
benbaley Dec 27, 2021
85ef99e
Parameter support configuration
WeiLoy Dec 27, 2021
925d8c4
Merge pull request #254 from WeiLoy/pubsub
benbaley Dec 27, 2021
68b2ab9
tagTracer adds checks
WeiLoy Dec 27, 2021
2c2c913
Merge pull request #255 from WeiLoy/pubsub
WeiLoy Dec 27, 2021
93ddc11
Merge pull request #37 from AlayaNetwork/feature/rand-grouped-consensus
niuxiaojie81 Dec 28, 2021
301f2dc
fix ExpiredTopicEvent
cheng762 Dec 28, 2021
89aa7de
fix
cheng762 Dec 28, 2021
df77636
Merge pull request #256 from cheng762/feature/rand-grouped-consensus
benbaley Dec 28, 2021
84f7798
change log level
benbaley Dec 29, 2021
e0922fd
Merge branch 'feature/rand-grouped-consensus' of github.com:Alayanetw…
benbaley Dec 29, 2021
6f1c70d
Merge pull request #38 from AlayaNetwork/feature/rand-grouped-consensus
niuxiaojie81 Dec 29, 2021
6da960f
Clear empty data
WeiLoy Dec 29, 2021
285a6bd
add wal for rgmsg
niuxiaojie81 Dec 29, 2021
b326e04
add wal for rgmsg
niuxiaojie81 Dec 29, 2021
58ac9f3
Merge pull request #257 from WeiLoy/pubsub
benbaley Dec 29, 2021
a848110
Merge pull request #258 from niuxiaojie-Alaya/feature/rand-grouped-co…
benbaley Dec 29, 2021
2c284dc
Merge pull request #39 from AlayaNetwork/feature/rand-grouped-consensus
niuxiaojie81 Dec 30, 2021
03ef49b
Fix that too many consensus nodes under other topics cause new consen…
cheng762 Dec 30, 2021
cc4710c
Merge pull request #260 from cheng762/feature/rand-grouped-consensus
benbaley Dec 30, 2021
d5e8f32
Merge pull request #40 from AlayaNetwork/feature/rand-grouped-consensus
niuxiaojie81 Jan 4, 2022
32cd4ba
fix remove consensus peer
cheng762 Jan 4, 2022
e78b68e
Merge pull request #261 from cheng762/feature/rand-grouped-consensus
benbaley Jan 4, 2022
4b074cb
Compatible with previous versions of group consensus
niuxiaojie81 Jan 4, 2022
42e7aae
remove MinimumPeersInTopicSearch and update max consensus discover
cheng762 Jan 4, 2022
4739175
update
cheng762 Jan 4, 2022
5d67717
Compatible with previous versions of group consensus
niuxiaojie81 Jan 4, 2022
7c7088b
Merge pull request #262 from cheng762/feature/rand-grouped-consensus
benbaley Jan 4, 2022
77e3b7f
Merge pull request #263 from niuxiaojie-Alaya/feature/rand-grouped-co…
benbaley Jan 4, 2022
e3fd281
fix remove consensus peer
cheng762 Jan 5, 2022
85573d7
fix
cheng762 Jan 5, 2022
f99ed57
add log
cheng762 Jan 5, 2022
2f42e1f
Merge pull request #41 from AlayaNetwork/feature/rand-grouped-consensus
niuxiaojie81 Jan 5, 2022
f7c0117
fix bug
niuxiaojie81 Jan 5, 2022
2df53f3
Merge branch 'feature/rand-grouped-consensus' of https://github.com/n…
niuxiaojie81 Jan 5, 2022
4aef51b
change algorithm of group from index to distance
benbaley Jan 6, 2022
f00d725
Merge pull request #267 from niuxiaojie-Alaya/feature/rand-grouped-co…
benbaley Jan 6, 2022
9b97198
fix panic bug
benbaley Jan 6, 2022
c1814f1
Merge pull request #268 from benbaley/feature/rand-grouped-consensus
benbaley Jan 6, 2022
7e2a0b0
Merge pull request #265 from cheng762/feature/rand-grouped-consensus
benbaley Jan 6, 2022
f750287
Merge pull request #42 from AlayaNetwork/feature/rand-grouped-consensus
niuxiaojie81 Jan 6, 2022
8a54941
fix index error
benbaley Jan 6, 2022
7d71e00
Merge pull request #269 from benbaley/feature/rand-grouped-consensus
benbaley Jan 6, 2022
9cff9c7
Randomly connect nodes
WeiLoy Jan 7, 2022
a5b5c16
fix disconnect
cheng762 Jan 7, 2022
b2b208f
Merge pull request #272 from cheng762/feature/rand-grouped-consensus
benbaley Jan 7, 2022
5c7b6e3
Merge pull request #271 from WeiLoy/grouped-consensus
benbaley Jan 7, 2022
873dddf
Change Id to Node object for delivery
WeiLoy Jan 7, 2022
260fb2c
Merge pull request #273 from WeiLoy/grouped-consensus
benbaley Jan 7, 2022
870333d
Modify the number of initial connections
WeiLoy Jan 7, 2022
9a2b471
Merge pull request #274 from WeiLoy/grouped-consensus
benbaley Jan 7, 2022
a43c4c0
Minimum number of connections
WeiLoy Jan 7, 2022
8e93072
Merge pull request #43 from AlayaNetwork/feature/rand-grouped-consensus
niuxiaojie81 Jan 7, 2022
c86de8d
fix panic error
benbaley Jan 10, 2022
2ff5975
Merge pull request #276 from benbaley/feature/rand-grouped-consensus
benbaley Jan 10, 2022
ed32a31
Merge pull request #275 from WeiLoy/grouped-consensus
benbaley Jan 10, 2022
abd72df
update version to 0.17.0
benbaley Jan 10, 2022
24acc6d
Merge pull request #278 from benbaley/feature/rand-grouped-consensus
benbaley Jan 10, 2022
0c629d6
fix disconect when consensus peer too much
cheng762 Jan 11, 2022
6e8a674
Merge pull request #281 from cheng762/feature/rand-grouped-consensus
benbaley Jan 11, 2022
0417ea3
Merge pull request #44 from AlayaNetwork/feature/rand-grouped-consensus
niuxiaojie81 Jan 11, 2022
c97e7ec
fix GetActiveBlock
niuxiaojie81 Jan 11, 2022
d90eb16
Merge pull request #282 from niuxiaojie-Alaya/feature/rand-grouped-co…
niuxiaojie81 Jan 11, 2022
8528368
fix index error
benbaley Jan 11, 2022
34b3d12
fix index - 1 error
benbaley Jan 11, 2022
d1a6f60
update Adjust0170RoundValidators logic
benbaley Jan 11, 2022
74ccfbd
Merge pull request #283 from benbaley/feature/rand-grouped-consensus
benbaley Jan 11, 2022
3faa94b
Update
WeiLoy Jan 11, 2022
a8eeac3
Merge pull request #284 from WeiLoy/grouped-consensus
WeiLoy Jan 11, 2022
fee9e4b
update discover
cheng762 Jan 11, 2022
f5b092c
fix
cheng762 Jan 11, 2022
a683331
update for discover
cheng762 Jan 12, 2022
f801a3f
update discover
cheng762 Jan 12, 2022
9a8895a
Merge branch 'feature/rand-grouped-consensus' of https://github.com/A…
cheng762 Jan 12, 2022
740f736
更新验证人切换时的逻辑
benbaley Jan 12, 2022
578c9fb
更新验证人切换时的逻辑
benbaley Jan 12, 2022
0aa7d34
Merge pull request #285 from cheng762/feature/rand-grouped-consensus
benbaley Jan 12, 2022
5391a42
Merge pull request #286 from benbaley/feature/rand-grouped-consensus
benbaley Jan 12, 2022
2eea914
Merge pull request #45 from AlayaNetwork/feature/rand-grouped-consensus
niuxiaojie81 Jan 12, 2022
28ff92b
If publishTopicMsg fails, the local consensus message is still saved
niuxiaojie81 Jan 12, 2022
aa92a60
Merge pull request #287 from niuxiaojie-Alaya/feature/rand-grouped-co…
niuxiaojie81 Jan 12, 2022
52dc077
fix discover
cheng762 Jan 12, 2022
b77b45e
update log
cheng762 Jan 12, 2022
dc2c5c9
Merge pull request #288 from cheng762/feature/rand-grouped-consensus
cheng762 Jan 12, 2022
bcc5407
fix dial
cheng762 Jan 12, 2022
2aabf4d
fix
cheng762 Jan 12, 2022
7876a0c
Merge pull request #289 from cheng762/feature/rand-grouped-consensus
cheng762 Jan 12, 2022
eddb2a9
fix
cheng762 Jan 12, 2022
c4acb14
Merge pull request #290 from cheng762/feature/rand-grouped-consensus
cheng762 Jan 12, 2022
0075e8e
add GroupTopicEvent.PubSub
benbaley Jan 13, 2022
b0c4d69
update for conseunes topic
cheng762 Jan 13, 2022
a521bc5
Merge pull request #291 from benbaley/feature/rand-grouped-consensus
benbaley Jan 13, 2022
33b1384
Merge pull request #292 from cheng762/feature/rand-grouped-consensus
benbaley Jan 13, 2022
42dd884
change the name
WeiLoy Jan 13, 2022
3bf8bd8
change the name
WeiLoy Jan 13, 2022
8d11213
Merge pull request #293 from WeiLoy/grouped-consensus
benbaley Jan 13, 2022
16035e1
Merge pull request #46 from AlayaNetwork/feature/rand-grouped-consensus
niuxiaojie81 Jan 14, 2022
6a12941
private chain supprot 0.16.0 update to 0.17.0
cheng762 Jan 17, 2022
b79a4da
Merge pull request #294 from cheng762/feature/rand-grouped-consensus
benbaley Jan 17, 2022
7284e28
Merge pull request #47 from AlayaNetwork/feature/rand-grouped-consensus
niuxiaojie81 Jan 17, 2022
8526be9
Modify the function to get the PubSub status
WeiLoy Jan 18, 2022
881af4e
update MinimumPeersPerTopic
cheng762 Jan 18, 2022
ec2cfd2
update log
cheng762 Jan 18, 2022
081f25a
fix bug and refine unit testing
niuxiaojie81 Jan 18, 2022
0196c67
Merge pull request #296 from WeiLoy/grouped-consensus
WeiLoy Jan 18, 2022
faa9ff9
Added RPC interface for obtaining staking nodes
WeiLoy Jan 18, 2022
2809082
Merge pull request #297 from cheng762/feature/rand-grouped-consensus
benbaley Jan 18, 2022
04141ca
Merge pull request #298 from niuxiaojie-Alaya/feature/rand-grouped-co…
benbaley Jan 18, 2022
0ab6d43
Merge branch 'feature/rand-grouped-consensus' of https://github.com/A…
WeiLoy Jan 18, 2022
834f2bb
fix epoch wrong err
benbaley Jan 18, 2022
6e0fec6
update tests
benbaley Jan 19, 2022
c8fca93
fix mainnet MaxValidators
cheng762 Jan 19, 2022
6320767
Merge pull request #300 from benbaley/feature/rand-grouped-consensus
niuxiaojie81 Jan 19, 2022
82bc25f
Merge pull request #301 from cheng762/feature/rand-grouped-consensus
niuxiaojie81 Jan 19, 2022
247bf7c
Merge pull request #48 from AlayaNetwork/feature/rand-grouped-consensus
niuxiaojie81 Jan 19, 2022
ffad50a
Fix unit tests for gov
WeiLoy Jan 19, 2022
958539d
Merge branch 'feature/rand-grouped-consensus' of https://github.com/A…
WeiLoy Jan 19, 2022
73b8a79
Merge pull request #299 from WeiLoy/grouped-consensus
benbaley Jan 19, 2022
6ad5b26
Modify PeerInfo information
WeiLoy Jan 19, 2022
0deac2a
Modify PeerInfo information
WeiLoy Jan 19, 2022
c479d87
Modify PeerInfo information
WeiLoy Jan 20, 2022
a48d759
Modify PeerInfo information
WeiLoy Jan 20, 2022
9d5b366
Modify the GetAllPubSubStatus function
WeiLoy Jan 20, 2022
bb78b92
Merge pull request #302 from WeiLoy/grouped-consensus
benbaley Jan 20, 2022
110d148
Merge pull request #49 from AlayaNetwork/feature/rand-grouped-consensus
niuxiaojie81 Jan 21, 2022
c8ace82
Improve the log
niuxiaojie81 Jan 21, 2022
69d4e77
Merge pull request #304 from niuxiaojie-Alaya/feature/rand-grouped-co…
benbaley Jan 21, 2022
689803d
Improve the log
niuxiaojie81 Jan 24, 2022
1630472
Merge pull request #305 from niuxiaojie-Alaya/feature/rand-grouped-co…
niuxiaojie81 Jan 24, 2022
26d2c08
Improve the log
niuxiaojie81 Jan 24, 2022
17a858a
Merge pull request #307 from niuxiaojie-Alaya/feature/rand-grouped-co…
niuxiaojie81 Jan 24, 2022
b9656dc
Add GetLastNumberByHash interface
WeiLoy Jan 24, 2022
5df2161
Merge branch 'feature/rand-grouped-consensus' of https://github.com/A…
WeiLoy Jan 24, 2022
099e5c8
Merge pull request #308 from WeiLoy/grouped-consensus
benbaley Jan 24, 2022
432f4bb
Merge pull request #50 from AlayaNetwork/feature/rand-grouped-consensus
niuxiaojie81 Jan 25, 2022
10aa0a0
fix topicSubscriber copy
cheng762 Jan 25, 2022
2038fc5
Merge pull request #309 from cheng762/feature/rand-grouped-consensus
benbaley Jan 25, 2022
e8a2d0d
Merge pull request #51 from AlayaNetwork/feature/rand-grouped-consensus
niuxiaojie81 Jan 26, 2022
2f2f07b
update ut
benbaley Feb 9, 2022
8d79277
Merge pull request #312 from benbaley/feature/rand-grouped-consensus
benbaley Feb 9, 2022
7ceab47
fix bug and refine unit testing
niuxiaojie81 Feb 10, 2022
7f34750
fix bug and refine unit testing
niuxiaojie81 Feb 10, 2022
5cea195
Merge pull request #315 from niuxiaojie-Alaya/feature/rand-grouped-co…
benbaley Feb 14, 2022
d518e85
Merge branch 'feature/compatible-with-graphql' into feature/rand-grou…
cheng762 Feb 14, 2022
f434029
update
cheng762 Feb 14, 2022
1d0e0f5
fix sync bug and refine sync unit testing
niuxiaojie81 Feb 14, 2022
4d5a051
merge
cheng762 Feb 14, 2022
a26069c
update
cheng762 Feb 15, 2022
f7ff83a
update
cheng762 Feb 15, 2022
173861a
fix enode
cheng762 Feb 15, 2022
95d75ce
fix test
cheng762 Feb 15, 2022
07b3444
Merge pull request #316 from niuxiaojie-Alaya/feature/rand-grouped-co…
benbaley Feb 16, 2022
40c59ac
Merge pull request #317 from cheng762/feature/rand-grouped-consensus
benbaley Feb 18, 2022
14c80be
Merge pull request #53 from AlayaNetwork/feature/rand-grouped-consensus
niuxiaojie81 Feb 18, 2022
1c26cbc
Code standardisation
Feb 21, 2022
04d6026
Code standardisation
Feb 21, 2022
b82480c
Code standardisation
Feb 21, 2022
53d11cb
Fix topicSubscriber deadlock issue
Feb 22, 2022
978f065
Merge pull request #323 from WeiLoy/deadlock
benbaley Feb 22, 2022
c65ec0f
fix pubsub node start
cheng762 Feb 22, 2022
fb0be88
fix localnode init
cheng762 Feb 23, 2022
ff54a34
refine unit testing
niuxiaojie81 Feb 23, 2022
1a80014
Merge pull request #325 from niuxiaojie-Alaya/feature/rand-grouped-co…
benbaley Feb 23, 2022
24b2543
Merge pull request #324 from cheng762/feature/rand-grouped-consensus
benbaley Feb 23, 2022
e0dff88
Merge remote-tracking branch 'alaya/feature/rand-grouped-consensus' i…
Feb 23, 2022
0856902
Merge remote-tracking branch 'alaya/feature/rand-grouped-consensus' i…
Feb 23, 2022
e7d5067
fix pubsub path
cheng762 Feb 23, 2022
f558f08
remove no use log
cheng762 Feb 23, 2022
6a85232
Modify the way the test is executed
Feb 23, 2022
fcb5622
Merge pull request #326 from cheng762/feature/rand-grouped-consensus
benbaley Feb 23, 2022
b4a49b9
remove part of env
Feb 23, 2022
4000f74
Merge pull request #321 from WeiLoy/handling_vet
benbaley Feb 23, 2022
7224a22
fix disconnect topic
cheng762 Feb 24, 2022
269cd06
Merge pull request #327 from cheng762/feature/rand-grouped-consensus
benbaley Feb 24, 2022
49c3b14
Merge pull request #54 from AlayaNetwork/feature/rand-grouped-consensus
niuxiaojie81 Feb 25, 2022
5c9e975
1.add metrics
niuxiaojie81 Feb 25, 2022
63b7c46
Add metrics
Feb 28, 2022
7e27b38
add api GroupInfo
cheng762 Mar 1, 2022
5a9649d
Add RemoteTracer
Mar 1, 2022
31a0564
Merge pull request #328 from cheng762/feature/rand-grouped-consensus
benbaley Mar 1, 2022
20ba472
Merge remote-tracking branch 'alaya/feature/rand-grouped-consensus' i…
Mar 1, 2022
0cd8eab
Add BytesID function
Mar 2, 2022
c46ad65
1.Remove redundant metrics
niuxiaojie81 Mar 2, 2022
6244e88
Modify the output information of consensus messages to avoid too many…
niuxiaojie81 Mar 2, 2022
7e43c66
The messages in the group after the unit also calculate the advanced …
niuxiaojie81 Mar 2, 2022
83c4912
Merge pull request #329 from niuxiaojie-Alaya/feature/rand-grouped-co…
benbaley Mar 4, 2022
27d52f0
Merge pull request #55 from AlayaNetwork/feature/rand-grouped-consensus
niuxiaojie81 Mar 4, 2022
c1b31ab
Merge remote-tracking branch 'alaya/feature/rand-grouped-consensus' i…
Mar 7, 2022
46b0a5e
Adjust the order of topic events notified to the p2pserver when the n…
niuxiaojie81 Mar 8, 2022
41c65bd
Merge pull request #331 from niuxiaojie-Alaya/feature/rand-grouped-co…
benbaley Mar 8, 2022
2cd1b03
Merge remote-tracking branch 'alaya/feature/rand-grouped-consensus' i…
Mar 9, 2022
f014f38
Remove validation
Mar 9, 2022
ff0f49b
fix validation
Mar 9, 2022
e88012b
Merge pull request #332 from WeiLoy/rand-grouped-consensus
benbaley Mar 9, 2022
3a1bb0d
Merge branch 'develop' into feature/rand-grouped-consensus
benbaley Mar 10, 2022
7ced69a
Merge remote-tracking branch 'alaya/feature/rand-grouped-consensus' i…
Mar 10, 2022
82a42f0
Support remote trace
Mar 10, 2022
702c7e3
Modified the sending logic of group aggregation signatures
niuxiaojie81 Mar 11, 2022
9197b9c
fix unittest
niuxiaojie81 Mar 11, 2022
f768583
Merge pull request #334 from niuxiaojie-Alaya/feature/rand-grouped-co…
benbaley Mar 14, 2022
426f2b2
only self dial conn can remove peers
cheng762 Mar 14, 2022
ba28d3d
Merge pull request #335 from cheng762/feature/rand-grouped-consensus
benbaley Mar 14, 2022
5461b79
Merge remote-tracking branch 'alaya/feature/rand-grouped-consensus' i…
Mar 14, 2022
8080287
Merge pull request #56 from AlayaNetwork/feature/rand-grouped-consensus
niuxiaojie81 Mar 14, 2022
41b8b1f
Adjust the order of topic events notified to the p2pserver when the n…
niuxiaojie81 Mar 14, 2022
2692dfd
Merge branch 'feature/rand-grouped-consensus' of https://github.com/n…
niuxiaojie81 Mar 14, 2022
8d639cc
Adjust the order of topic events notified to the p2pserver when the n…
niuxiaojie81 Mar 14, 2022
c718204
Adjust the order of topic events notified to the p2pserver when the n…
niuxiaojie81 Mar 14, 2022
818406d
Adjust the order of topic events notified to the p2pserver when the n…
niuxiaojie81 Mar 15, 2022
1c7e276
Adjust the order of topic events notified to the p2pserver when the n…
niuxiaojie81 Mar 15, 2022
84cee74
resolve composite literal uses unkeyed fields
niuxiaojie81 Mar 15, 2022
5a367bb
Merge pull request #336 from niuxiaojie-Alaya/feature/rand-grouped-co…
benbaley Mar 15, 2022
3944dc8
Merge remote-tracking branch 'alaya/feature/rand-grouped-consensus' i…
Mar 15, 2022
042d11d
Merge pull request #333 from WeiLoy/stats
benbaley Mar 15, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/workflows/unit_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
run: make all

- name: Test
run: go test -tags=test -covermode=count -coverprofile=coverage.txt `go list ./...`
run: go run build/ci.go test -coverage

- name: Upload coverage report
uses: codecov/codecov-action@v1
Expand Down
4 changes: 2 additions & 2 deletions build/ci.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ func goTool(subcmd string, args ...string) *exec.Cmd {

func goToolArch(arch string, cc string, subcmd string, args ...string) *exec.Cmd {
cmd := build.GoTool(subcmd, args...)
cmd.Env = []string{"GOPATH=" + build.GOPATH()}
cmd.Env = make([]string, 0)
if arch == "" || arch == runtime.GOARCH {
cmd.Env = append(cmd.Env, "GOBIN="+GOBIN)
} else {
Expand Down Expand Up @@ -354,7 +354,7 @@ func doTest(cmdline []string) {
// and some tests run into timeouts under load.
gotest.Args = append(gotest.Args, "-p", "1")
if *coverage {
gotest.Args = append(gotest.Args, "-covermode=atomic", "-cover")
gotest.Args = append(gotest.Args, "-covermode=count", "-coverprofile=coverage.txt")
}
gotest.Args = append(gotest.Args, "-tags=test")
gotest.Args = append(gotest.Args, packages...)
Expand Down
5 changes: 0 additions & 5 deletions build/deb/ethereum-swarm/deb.changelog

This file was deleted.

19 changes: 0 additions & 19 deletions build/deb/ethereum-swarm/deb.control

This file was deleted.

14 changes: 0 additions & 14 deletions build/deb/ethereum-swarm/deb.copyright

This file was deleted.

1 change: 0 additions & 1 deletion build/deb/ethereum-swarm/deb.docs

This file was deleted.

1 change: 0 additions & 1 deletion build/deb/ethereum-swarm/deb.install

This file was deleted.

13 changes: 0 additions & 13 deletions build/deb/ethereum-swarm/deb.rules

This file was deleted.

4 changes: 2 additions & 2 deletions build/deb/ethereum/deb.control
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ Vcs-Browser: https://github.com/ethereum/go-ethereum
Package: {{.Name}}
Architecture: any
Depends: ${misc:Depends}, {{.ExeList}}
Description: Meta-package to install geth, swarm, and other tools
Meta-package to install geth, swarm and other tools
Description: Meta-package to install geth, and other tools
Meta-package to install geth and other tools

{{range .Executables}}
Package: {{$.ExeName .}}
Expand Down
3 changes: 1 addition & 2 deletions build/update-license.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build none
// +build none

/*
Expand Down Expand Up @@ -56,8 +57,6 @@ var (
"internal/jsre/deps",
"log/",
"common/bitutil/bitutil",
// don't license generated files
"contracts/chequebook/contract/code.go",
}

// paths with this prefix are licensed as GPL. all other files are LGPL.
Expand Down
2 changes: 2 additions & 0 deletions cmd/alaya/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ var (
utils.MaxPeersFlag,
utils.MaxConsensusPeersFlag,
utils.MaxPendingPeersFlag,
utils.MinimumPeersPerTopic,
utils.PubSubTraceHost,
utils.MinerGasPriceFlag,
utils.NATFlag,
utils.NoDiscoverFlag,
Expand Down
2 changes: 2 additions & 0 deletions cmd/alaya/usage.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ var AppHelpFlagGroups = []flagGroup{
utils.MaxPeersFlag,
utils.MaxConsensusPeersFlag,
utils.MaxPendingPeersFlag,
utils.MinimumPeersPerTopic,
utils.PubSubTraceHost,
utils.NATFlag,
utils.NoDiscoverFlag,
// utils.DiscoveryV5Flag,
Expand Down
21 changes: 12 additions & 9 deletions cmd/bootnode/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,12 @@ import (
"net"
"os"

"github.com/AlayaNetwork/Alaya-Go/p2p/enode"

"github.com/AlayaNetwork/Alaya-Go/cmd/utils"
"github.com/AlayaNetwork/Alaya-Go/crypto"
"github.com/AlayaNetwork/Alaya-Go/log"
"github.com/AlayaNetwork/Alaya-Go/p2p/discover"
"github.com/AlayaNetwork/Alaya-Go/p2p/discv5"
"github.com/AlayaNetwork/Alaya-Go/p2p/nat"
"github.com/AlayaNetwork/Alaya-Go/p2p/netutil"
)
Expand Down Expand Up @@ -85,7 +86,7 @@ func main() {
}

if *writeAddr {
fmt.Printf("%v\n", discover.PubkeyID(&nodeKey.PublicKey))
fmt.Printf("%v\n", enode.PubkeyToIDV4(&nodeKey.PublicKey))
os.Exit(0)
}

Expand Down Expand Up @@ -116,18 +117,20 @@ func main() {
realaddr = &net.UDPAddr{IP: ext, Port: realaddr.Port}
}
}
db, _ := enode.OpenDB("")
ln := enode.NewLocalNode(db, nodeKey)
cfg := discover.Config{
PrivateKey: nodeKey,
NetRestrict: restrictList,
}

if *runv5 {
if _, err := discv5.ListenUDP(nodeKey, conn, realaddr, "", restrictList); err != nil {
if _, err := discover.ListenV5(conn, ln, cfg); err != nil {
utils.Fatalf("%v", err)
}
} else {
cfg := discover.Config{
PrivateKey: nodeKey,
AnnounceAddr: realaddr,
NetRestrict: restrictList,
}
if _, err := discover.ListenUDP(conn, cfg); err != nil {

if _, err := discover.ListenUDP(conn, ln, cfg); err != nil {
utils.Fatalf("%v", err)
}
}
Expand Down
6 changes: 3 additions & 3 deletions cmd/ctool/ppos/reward.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package ppos
import (
"gopkg.in/urfave/cli.v1"

"github.com/AlayaNetwork/Alaya-Go/p2p/discover"
"github.com/AlayaNetwork/Alaya-Go/p2p/enode"
)

var (
Expand All @@ -45,9 +45,9 @@ var (

func getDelegateReward(c *cli.Context) error {
nodeIDlist := c.StringSlice(nodeList.Name)
idlist := make([]discover.NodeID, 0)
idlist := make([]enode.IDv0, 0)
for _, node := range nodeIDlist {
nodeid, err := discover.HexID(node)
nodeid, err := enode.HexIDv0(node)
if err != nil {
return err
}
Expand Down
6 changes: 3 additions & 3 deletions cmd/ctool/ppos/slashing.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ package ppos
import (
"errors"

"gopkg.in/urfave/cli.v1"
"github.com/AlayaNetwork/Alaya-Go/p2p/enode"

"github.com/AlayaNetwork/Alaya-Go/p2p/discover"
"gopkg.in/urfave/cli.v1"
)

var (
Expand Down Expand Up @@ -67,7 +67,7 @@ func checkDuplicateSign(c *cli.Context) error {
if nodeIDstring == "" {
return errors.New("The reported node ID is not set")
}
nodeid, err := discover.HexID(nodeIDstring)
nodeid, err := enode.HexIDv0(nodeIDstring)
if err != nil {
return err
}
Expand Down
8 changes: 4 additions & 4 deletions cmd/ctool/ppos/staking.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ package ppos
import (
"errors"

"github.com/AlayaNetwork/Alaya-Go/p2p/enode"

"github.com/AlayaNetwork/Alaya-Go/common"

"gopkg.in/urfave/cli.v1"

"github.com/AlayaNetwork/Alaya-Go/p2p/discover"
)

var (
Expand Down Expand Up @@ -156,7 +156,7 @@ func getDelegateInfo(c *cli.Context) error {
if nodeIDstring == "" {
return errors.New("The verifier's node ID is not set")
}
nodeid, err := discover.HexID(nodeIDstring)
nodeid, err := enode.HexIDv0(nodeIDstring)
if err != nil {
return err
}
Expand All @@ -169,7 +169,7 @@ func getCandidateInfo(c *cli.Context) error {
if nodeIDstring == "" {
return errors.New("The verifier's node ID is not set")
}
nodeid, err := discover.HexID(nodeIDstring)
nodeid, err := enode.HexIDv0(nodeIDstring)
if err != nil {
return err
}
Expand Down
20 changes: 10 additions & 10 deletions cmd/ctool/test/addr.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[
"atp1k6cnw7smykrpyrlvwmyvzxr34femahrdu4lt5m",
"atp1m7f39g4ad66xazy36ltr7ar2zjad50tfv6ns32",
"atp1slmg0p92dup7enhdxp8jqkdjqa9kmjl6y3e3dn",
"atp14yvww49quk5ay0m7nfd8pvm0660h3wrx85rm0r",
"atp1v2nynex7w6ye5yew2s4v3gy555ts6844cj0gqv",
"atp1swayyl7mzmlut46g05dnm4289pw726fshd8u89",
"atp1t5exk2apc30jpu8xfjesj9mn573c4x82tz2q0v",
"atp12x95r6jjp225zy2s2kgj7gs3qm5q8rwtfthyrc",
"atp1kzrjajfarknmywf0zepahe8g0f9pzhae86nn9g",
"atp1xsejd4ks0se534xfmd228as3wtj5xzfrfzdftw"
"atp1af7ul6nr7y309szlq9c5k6d544pfcmsry9rl02",
"atp1yavh2xlkp8chye2pvrdtdjzzsq8wzwlxuve2yj",
"atp1lysxaxtptuzslhpcsft8xmaj35hzes5d7uwqnk",
"atp1gc2w7f0msfl8kyn5fwtepaa9y5k8y9gkzps7h6",
"atp12gct74l3s4a3n8gdhau6qfmsa44ud9harg2jly",
"atp13vgvpwnev6l336h9xjv43x6x6wuzu6qu69pyx4",
"atp1tsjqlduwqvz7zl3v97h2u5vtnwxku7s4zgxp75",
"atp192d8w7awsfczpgmx9l7a7wjzt8uvhzwn23fugk",
"atp12ms9epwmxxa2skdy9glj3vd9rrf2g3t5pl7vfw",
"atp1lkc77l9vt34wj53308x6qqqa97q95q30dcet9m"
]
Binary file modified cmd/ctool/test/privateKeys.txt
Binary file not shown.
Loading